VTK  9.3.1
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
13 #ifndef vtkCMLMoleculeReader_h
14 #define vtkCMLMoleculeReader_h
15 
16 #include "vtkIOChemistryModule.h" // For export macro
17 #include "vtkMoleculeAlgorithm.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkMolecule;
21 
22 class VTKIOCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
23 {
24 public:
25  static vtkCMLMoleculeReader* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  void SetOutput(vtkMolecule*) override;
36 
38 
41  vtkSetFilePathMacro(FileName);
42  vtkGetFilePathMacro(FileName);
44 
45 protected:
47  ~vtkCMLMoleculeReader() override;
48 
50  int FillOutputPortInformation(int, vtkInformation*) override;
51 
52  char* FileName;
53 
54 private:
56  void operator=(const vtkCMLMoleculeReader&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:83
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.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
vtkMolecule * GetOutput()
Get the output data object for a port on this algorithm.