VTK  9.1.0
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 "vtkIOChemistryModule.h" // For export macro
26 #include "vtkMoleculeAlgorithm.h"
27 
28 class vtkMolecule;
29 
30 class VTKIOCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
42  void SetOutput(vtkMolecule*) override;
44 
46 
52 
53 protected:
56 
59 
60  char* FileName;
61 
62 private:
64  void operator=(const vtkCMLMoleculeReader&) = delete;
65 };
66 
67 #endif
Read a CML file and output a vtkMolecule object.
void SetOutput(vtkMolecule *) override
Get/Set the output (vtkMolecule) that the reader will fill.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Get/Set the name of the CML file.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkGetFilePathMacro(FileName)
Get/Set the name of the CML file.
~vtkCMLMoleculeReader() override
vtkMolecule * GetOutput()
Get/Set the output (vtkMolecule) that the reader will fill.
static vtkCMLMoleculeReader * New()
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that operate on vtkMolecules.
class describing a molecule
Definition: vtkMolecule.h:92