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 
72  virtual int FillOutputPortInformation(int, vtkInformation *);
74 
75  int ReadMolecule(FILE *fp, vtkPolyData *output);
76  int MakeAtomType(const char *atype);
77  int MakeBonds(vtkPoints*, vtkIdTypeArray*, vtkCellArray*);
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
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:88
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
a vtkAbstractArray subclass for strings
vtkUnsignedCharArray * IsHetatm
read Molecular Data files
dynamic, self-adjusting array of vtkIdType
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
#define VTKIOGEOMETRY_EXPORT
vtkUnsignedCharArray * SecondaryStructures
void PrintSelf(ostream &os, vtkIndent indent)
vtkUnsignedCharArray * SecondaryStructuresEnd
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkStringArray * AtomTypeStrings
vtkUnsignedCharArray * SecondaryStructuresBegin
dynamic, self-adjusting array of unsigned char
object to represent cell connectivity
Definition: vtkCellArray.h:49
vtkUnsignedCharArray * RGB
vtkUnsignedCharArray * Chain
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38