VTK  9.3.0
vtkCMLMoleculeReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkCMLMoleculeReader_h
23 #define vtkCMLMoleculeReader_h
24 
25 #include "vtkIOChemistryModule.h" // For export macro
26 #include "vtkMoleculeAlgorithm.h"
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkMolecule;
30 
31 class VTKIOCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
43  void SetOutput(vtkMolecule*) override;
45 
47 
53 
54 protected:
57 
60 
61  char* FileName;
62 
63 private:
65  void operator=(const vtkCMLMoleculeReader&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #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:38
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:84