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
13#ifndef vtkCMLMoleculeReader_h
14#define vtkCMLMoleculeReader_h
15
16#include "vtkIOChemistryModule.h" // For export macro
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkMolecule;
21
22class VTKIOCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
23{
24public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
30
34 void SetOutput(vtkMolecule*) override;
36
38
44
45protected:
48
51
52 char* FileName;
53
54private:
56 void operator=(const vtkCMLMoleculeReader&) = delete;
57};
58
59VTK_ABI_NAMESPACE_END
60#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:29
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