VTK  9.4.20250302
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
32#ifndef vtkCMLMoleculeReader_h
33#define vtkCMLMoleculeReader_h
34
35#include "vtkIOChemistryModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkMolecule;
40
41class VTKIOCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 void SetOutput(vtkMolecule*) override;
55
57
63
64protected:
67
70
71 char* FileName;
72
73private:
75 void operator=(const vtkCMLMoleculeReader&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#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
static vtkCMLMoleculeReader * New()
vtkMolecule * GetOutput()
Get/Set the output (vtkMolecule) that the reader will fill.
a simple class to control print indentation
Definition vtkIndent.h:108
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