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 =========================================================================*/
22 #ifndef vtkCMLMoleculeReader_h
23 #define vtkCMLMoleculeReader_h
24 
25 #include "vtkDomainsChemistryModule.h" // For export macro
26 #include "vtkMoleculeAlgorithm.h"
27 
28 class vtkMolecule;
29 
30 class VTKDOMAINSCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
31 {
32 public:
33  static vtkCMLMoleculeReader *New();
35  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
36 
38 
42  void SetOutput(vtkMolecule *) VTK_OVERRIDE;
44 
46 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
53 protected:
55  ~vtkCMLMoleculeReader() VTK_OVERRIDE;
56 
57  int RequestData(vtkInformation *, vtkInformationVector **,
58  vtkInformationVector *) VTK_OVERRIDE;
59  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
60 
61  char *FileName;
62 
63 private:
64  vtkCMLMoleculeReader(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
65  void operator=(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
66 };
67 
68 #endif
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:87
Read a CML file and output a vtkMolecule object.
static vtkMoleculeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Store zero or more vtkInformation instances.
vtkMolecule * GetOutput()
Get the output data object for a port on this algorithm.