VTK  9.2.6
vtkXYZMolReader2.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXYZMolReader2.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
29#ifndef vtkXYZMolReader2_h
30#define vtkXYZMolReader2_h
31
32#include "vtkIOChemistryModule.h" // For export macro
34
35#include <istream> // for std::istream
36#include <vector> // for std::vector
37
38class vtkMolecule;
39
40class VTKIOCHEMISTRY_EXPORT vtkXYZMolReader2 : public vtkMoleculeAlgorithm
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
52 void SetOutput(vtkMolecule*) override;
54
56
62
63protected:
65 ~vtkXYZMolReader2() override = default;
66
69
70 std::string FileName = "";
71 std::vector<istream::pos_type> FilePositions; // to store beginning of each step
72 std::vector<double> TimeSteps;
73
74private:
75 vtkXYZMolReader2(const vtkXYZMolReader2&) = delete;
76 void operator=(const vtkXYZMolReader2&) = delete;
77};
78
79#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
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:95
read Molecular Data files
static vtkXYZMolReader2 * New()
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.
vtkMolecule * GetOutput()
Get/Set the output (vtkMolecule) that the reader will fill.
std::vector< double > TimeSteps
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.