VTK  9.3.1
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
19 #include "vtkMoleculeAlgorithm.h"
20 
21 namespace vtksys
22 {
23 class RegularExpression;
24 }
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 
29 
30 class VTKIOCHEMISTRY_EXPORT vtkVASPTessellationReader : public vtkMoleculeAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkSetFilePathMacro(FileName);
42  vtkGetFilePathMacro(FileName);
44 
45 protected:
47  ~vtkVASPTessellationReader() override;
48 
49  int RequestData(vtkInformation* request, vtkInformationVector** inInfoVecs,
50  vtkInformationVector* outInfoVec) override;
51  int RequestInformation(vtkInformation* request, vtkInformationVector** inInfoVecs,
52  vtkInformationVector* outInfoVec) override;
54 
61  bool NextTimeStep(std::istream& in, double& time);
62 
69  size_t SelectTimeStepIndex(vtkInformation* info);
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 
81 private:
83  void operator=(const vtkVASPTessellationReader&) = delete;
84 };
85 
86 VTK_ABI_NAMESPACE_END
87 #endif // vtkVASPTessellationReader_h
vtksys::RegularExpression * ParenExtract
vtksys::RegularExpression * AtomCountParser
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:83
static vtkMoleculeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtksys::RegularExpression * AtomParser
Superclass for algorithms that operate on vtkMolecules.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
vtksys::RegularExpression * TimeParser
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
Read NPT_Z_TESSELLATE.out files.
vtksys::RegularExpression * LatticeParser