VTK  9.2.6
vtkVASPTessellationReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVASPTessellationReader.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 
27 #ifndef vtkVASPTessellationReader_h
28 #define vtkVASPTessellationReader_h
29 
30 #include "vtkIOChemistryModule.h" // For export macro
31 #include "vtkMoleculeAlgorithm.h"
32 
33 namespace vtksys
34 {
35 class RegularExpression;
36 }
37 
39 
40 class VTKIOCHEMISTRY_EXPORT vtkVASPTessellationReader : public vtkMoleculeAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  vtkSetFilePathMacro(FileName);
52  vtkGetFilePathMacro(FileName);
54 
55 protected:
57  ~vtkVASPTessellationReader() override;
58 
59  int RequestData(vtkInformation* request, vtkInformationVector** inInfoVecs,
60  vtkInformationVector* outInfoVec) override;
61  int RequestInformation(vtkInformation* request, vtkInformationVector** inInfoVecs,
62  vtkInformationVector* outInfoVec) override;
64 
71  bool NextTimeStep(std::istream& in, double& time);
72 
79  size_t SelectTimeStepIndex(vtkInformation* info);
80 
81  bool ReadTimeStep(std::istream& in, vtkMolecule* molecule, vtkUnstructuredGrid* voronoi);
82 
83  char* FileName;
84 
85  vtksys::RegularExpression* TimeParser;
86  vtksys::RegularExpression* LatticeParser;
87  vtksys::RegularExpression* AtomCountParser;
88  vtksys::RegularExpression* AtomParser;
89  vtksys::RegularExpression* ParenExtract;
90 
91 private:
93  void operator=(const vtkVASPTessellationReader&) = delete;
94 };
95 
96 #endif // vtkVASPTessellationReader_h
vtksys::RegularExpression * ParenExtract
vtksys::RegularExpression * AtomCountParser
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:94
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:39
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