VTK  9.4.20241222
vtkVASPTessellationReader.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
3
15#ifndef vtkVASPTessellationReader_h
16#define vtkVASPTessellationReader_h
17
18#include "vtkIOChemistryModule.h" // For export macro
20
21namespace vtksys
22{
23class RegularExpression;
24}
25
26VTK_ABI_NAMESPACE_BEGIN
27
29
30class VTKIOCHEMISTRY_EXPORT vtkVASPTessellationReader : public vtkMoleculeAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
44
45protected:
48
50 vtkInformationVector* outInfoVec) override;
52 vtkInformationVector* outInfoVec) override;
53 int FillOutputPortInformation(int port, vtkInformation* info) override;
54
61 bool NextTimeStep(std::istream& in, double& time);
62
70
71 bool ReadTimeStep(std::istream& in, vtkMolecule* molecule, vtkUnstructuredGrid* voronoi);
72
73 char* FileName;
74
75 vtksys::RegularExpression* TimeParser;
76 vtksys::RegularExpression* LatticeParser;
77 vtksys::RegularExpression* AtomCountParser;
78 vtksys::RegularExpression* AtomParser;
79 vtksys::RegularExpression* ParenExtract;
80
81private:
83 void operator=(const vtkVASPTessellationReader&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif // vtkVASPTessellationReader_h
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
dataset represents arbitrary combinations of all possible cell types
Read NPT_Z_TESSELLATE.out files.
static vtkVASPTessellationReader * New()
~vtkVASPTessellationReader() override
int RequestInformation(vtkInformation *request, vtkInformationVector **inInfoVecs, vtkInformationVector *outInfoVec) override
size_t SelectTimeStepIndex(vtkInformation *info)
Called by RequestData to determine which timestep to read.
bool NextTimeStep(std::istream &in, double &time)
Advance in to the start of the data for the next timestep.
vtkGetFilePathMacro(FileName)
The name of the file to read.
vtksys::RegularExpression * LatticeParser
vtksys::RegularExpression * AtomCountParser
vtksys::RegularExpression * ParenExtract
bool ReadTimeStep(std::istream &in, vtkMolecule *molecule, vtkUnstructuredGrid *voronoi)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkSetFilePathMacro(FileName)
The name of the file to read.
int RequestData(vtkInformation *request, vtkInformationVector **inInfoVecs, vtkInformationVector *outInfoVec) override
This is called by the superclass.
vtksys::RegularExpression * TimeParser
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtksys::RegularExpression * AtomParser