VTK  9.3.20240417
vtkXYZMolReader2.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
17 #ifndef vtkXYZMolReader2_h
18 #define vtkXYZMolReader2_h
19 
20 #include "vtkIOChemistryModule.h" // For export macro
21 #include "vtkMoleculeAlgorithm.h"
22 
23 #include <istream> // for std::istream
24 #include <vector> // for std::vector
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkMolecule;
28 
29 class VTKIOCHEMISTRY_EXPORT vtkXYZMolReader2 : public vtkMoleculeAlgorithm
30 {
31 public:
32  static vtkXYZMolReader2* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
41  void SetOutput(vtkMolecule*) override;
43 
45 
51 
52 protected:
54  ~vtkXYZMolReader2() override = default;
55 
58 
60  std::vector<istream::pos_type> FilePositions; // to store beginning of each step
61  std::vector<double> TimeSteps;
62 
63 private:
64  vtkXYZMolReader2(const vtkXYZMolReader2&) = delete;
65  void operator=(const vtkXYZMolReader2&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
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
read Molecular Data files
std::string FileName
vtkMolecule * GetOutput()
Get/Set the output (vtkMolecule) that the reader will fill.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
~vtkXYZMolReader2() override=default
std::vector< istream::pos_type > FilePositions
vtkSetStdStringFromCharMacro(FileName)
Get/Set the name of the XYZ Molecule file.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetOutput(vtkMolecule *) override
Get/Set the output (vtkMolecule) that the reader will fill.
vtkGetCharFromStdStringMacro(FileName)
Get/Set the name of the XYZ Molecule file.
static vtkXYZMolReader2 * New()
std::vector< double > TimeSteps
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ string
Definition: vtkX3D.h:490