VTK
vtkMoleculeReaderBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMoleculeReaderBase.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkMoleculeReaderBase_h
26 #define vtkMoleculeReaderBase_h
27 
28 #include "vtkIOGeometryModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class vtkCellArray;
32 class vtkFloatArray;
33 class vtkDataArray;
34 class vtkIdTypeArray;
36 class vtkPoints;
37 class vtkStringArray;
38 class vtkMolecule;
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  vtkSetStringMacro(FileName);
47  vtkGetStringMacro(FileName);
48 
50 
51  vtkSetMacro(BScale, double);
52  vtkGetMacro(BScale, double);
54 
56 
57  vtkSetMacro(HBScale, double);
58  vtkGetMacro(HBScale, double);
60 
61  vtkGetMacro(NumberOfAtoms, int);
62 
63 protected:
66 
67  char *FileName;
68  double BScale;
69  double HBScale;
71 
74 
75  int ReadMolecule(FILE *fp, vtkPolyData *output);
76  int MakeAtomType(const char *atype);
78 
91 
92  virtual void ReadSpecificMolecule(FILE* fp) = 0;
93 
94 private:
95  vtkMoleculeReaderBase(const vtkMoleculeReaderBase&); // Not implemented.
96  void operator=(const vtkMoleculeReaderBase&); // Not implemented.
97 };
98 
99 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkIOGeometryModule.h
vtkMoleculeReaderBase::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMoleculeReaderBase::SecondaryStructuresBegin
vtkUnsignedCharArray * SecondaryStructuresBegin
Definition: vtkMoleculeReaderBase.h:88
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkMoleculeReaderBase::SecondaryStructuresEnd
vtkUnsignedCharArray * SecondaryStructuresEnd
Definition: vtkMoleculeReaderBase.h:89
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkMoleculeReaderBase::Radii
vtkFloatArray * Radii
Definition: vtkMoleculeReaderBase.h:82
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkMoleculeReaderBase::AtomTypeStrings
vtkStringArray * AtomTypeStrings
Definition: vtkMoleculeReaderBase.h:84
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
VTKIOGEOMETRY_EXPORT
#define VTKIOGEOMETRY_EXPORT
Definition: vtkIOGeometryModule.h:15
vtkMoleculeReaderBase::MakeAtomType
int MakeAtomType(const char *atype)
vtkMoleculeReaderBase
read Molecular Data files
Definition: vtkMoleculeReaderBase.h:41
vtkMoleculeReaderBase::ReadMolecule
int ReadMolecule(FILE *fp, vtkPolyData *output)
vtkMoleculeReaderBase::ReadSpecificMolecule
virtual void ReadSpecificMolecule(FILE *fp)=0
vtkMoleculeReaderBase::Points
vtkPoints * Points
Definition: vtkMoleculeReaderBase.h:80
vtkPolyDataAlgorithm.h
vtkMoleculeReaderBase::Chain
vtkUnsignedCharArray * Chain
Definition: vtkMoleculeReaderBase.h:86
vtkMoleculeReaderBase::RGB
vtkUnsignedCharArray * RGB
Definition: vtkMoleculeReaderBase.h:81
vtkMoleculeReaderBase::NumberOfAtoms
int NumberOfAtoms
Definition: vtkMoleculeReaderBase.h:70
vtkMoleculeReaderBase::AtomType
vtkIdTypeArray * AtomType
Definition: vtkMoleculeReaderBase.h:83
vtkMoleculeReaderBase::SecondaryStructures
vtkUnsignedCharArray * SecondaryStructures
Definition: vtkMoleculeReaderBase.h:87
vtkMoleculeReaderBase::BScale
double BScale
Definition: vtkMoleculeReaderBase.h:68
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMoleculeReaderBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkMoleculeReaderBase::HBScale
double HBScale
Definition: vtkMoleculeReaderBase.h:69
vtkMoleculeReaderBase::~vtkMoleculeReaderBase
~vtkMoleculeReaderBase()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkMolecule
class describing a molecule
Definition: vtkMolecule.h:89
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkMoleculeReaderBase::FileName
char * FileName
Definition: vtkMoleculeReaderBase.h:67
vtkMoleculeReaderBase::Residue
vtkIdTypeArray * Residue
Definition: vtkMoleculeReaderBase.h:85
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkMoleculeReaderBase::MakeBonds
int MakeBonds(vtkPoints *, vtkIdTypeArray *, vtkCellArray *)
vtkMoleculeReaderBase::vtkMoleculeReaderBase
vtkMoleculeReaderBase()
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:45
vtkMoleculeReaderBase::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *)
vtkMoleculeReaderBase::Molecule
vtkMolecule * Molecule
Definition: vtkMoleculeReaderBase.h:79
vtkMoleculeReaderBase::IsHetatm
vtkUnsignedCharArray * IsHetatm
Definition: vtkMoleculeReaderBase.h:90
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44