VTK  9.1.0
vtkVASPAnimationReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkVASPAnimationReader.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=========================================================================*/
15
24#ifndef vtkVASPAnimationReader_h
25#define vtkVASPAnimationReader_h
26
27#include "vtkIOChemistryModule.h" // For export macro
29#include "vtkVector.h" // For vtkVector3f
30
31namespace vtksys
32{
33class RegularExpression;
34}
35
36class VTKIOCHEMISTRY_EXPORT vtkVASPAnimationReader : public vtkMoleculeAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
50
51protected:
54
56 vtkInformationVector* outInfoVec) override;
58 vtkInformationVector* outInfoVec) override;
59
66 bool NextTimeStep(std::istream& in, double& time);
67
75
76 bool ReadMolecule(std::istream& in, vtkMolecule* molecule);
77
78 char* FileName;
79
80 vtksys::RegularExpression* TimeParser;
81 vtksys::RegularExpression* LatticeParser;
82 vtksys::RegularExpression* AtomCountParser;
83 vtksys::RegularExpression* AtomParser;
84
85private:
87 void operator=(const vtkVASPAnimationReader&) = delete;
88};
89
90#endif // vtkVASPAnimationReader_h
a simple class to control print indentation
Definition: vtkIndent.h:113
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:111
Reader for VASP animation files.
int RequestData(vtkInformation *request, vtkInformationVector **inInfoVecs, vtkInformationVector *outInfoVec) override
This is called by the superclass.
static vtkVASPAnimationReader * New()
int RequestInformation(vtkInformation *request, vtkInformationVector **inInfoVecs, vtkInformationVector *outInfoVec) override
vtkGetFilePathMacro(FileName)
The name of the file to read.
vtksys::RegularExpression * LatticeParser
bool NextTimeStep(std::istream &in, double &time)
Advance in to the start of the data for the next timestep.
vtksys::RegularExpression * TimeParser
vtksys::RegularExpression * AtomCountParser
vtksys::RegularExpression * AtomParser
bool ReadMolecule(std::istream &in, vtkMolecule *molecule)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkVASPAnimationReader() override
size_t SelectTimeStepIndex(vtkInformation *info)
Called by RequestData to determine which timestep to read.
vtkSetFilePathMacro(FileName)
The name of the file to read.
@ info
Definition: vtkX3D.h:382
@ time
Definition: vtkX3D.h:503