VTK
vtkCMLMoleculeReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCMLMoleculeReader.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 vtkCMLMoleculeReader_h
26 #define vtkCMLMoleculeReader_h
27 
28 #include "vtkDomainsChemistryModule.h" // For export macro
29 #include "vtkMoleculeAlgorithm.h"
30 
31 class vtkMolecule;
32 
33 class VTKDOMAINSCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
34 {
35 public:
36  static vtkCMLMoleculeReader *New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
45  void SetOutput(vtkMolecule *);
47 
49 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
55 
56 protected:
59 
63 
64  char *FileName;
65 
66 private:
67  vtkCMLMoleculeReader(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
68  void operator=(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
69 };
70 
71 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:90
Read a CML file and output a vtkMolecule object.
static vtkMoleculeAlgorithm * New()
virtual void SetOutput(vtkMolecule *d)
Get the output data object for a port on this algorithm.
Superclass for algorithms that operate on vtkMolecules.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkMolecule * GetOutput()
Get the output data object for a port on this algorithm.