VTK
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 "vtkDomainsChemistryModule.h" // For export macro
32
33namespace vtksys {
34class RegularExpression;
35}
36
38
39class VTKDOMAINSCHEMISTRY_EXPORT vtkVASPTessellationReader
41{
42public:
45 virtual void PrintSelf(ostream &os, vtkIndent indent);
46
48
51 vtkSetStringMacro(FileName)
54
55protected:
58
59 virtual int RequestData(vtkInformation *request,
60 vtkInformationVector **inInfoVecs,
61 vtkInformationVector *outInfoVec);
62 virtual int RequestInformation(vtkInformation *request,
63 vtkInformationVector **inInfoVecs,
64 vtkInformationVector *outInfoVec);
65 virtual int FillOutputPortInformation(int port, vtkInformation *info);
66
73 bool NextTimeStep(std::istream &in, double &time);
74
81 size_t SelectTimeStepIndex(vtkInformation *info);
82
83 bool ReadTimeStep(std::istream &in, vtkMolecule *molecule,
84 vtkUnstructuredGrid *voronoi);
85
86 char *FileName;
87
88 vtksys::RegularExpression *TimeParser;
89 vtksys::RegularExpression *LatticeParser;
90 vtksys::RegularExpression *AtomCountParser;
91 vtksys::RegularExpression *AtomParser;
92 vtksys::RegularExpression *ParenExtract;
93
94private:
95 vtkVASPTessellationReader(const vtkVASPTessellationReader&) VTK_DELETE_FUNCTION;
96 void operator=(const vtkVASPTessellationReader&) VTK_DELETE_FUNCTION;
97};
98
99#endif // vtkVASPTessellationReader_h
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:91
dataset represents arbitrary combinations of all possible cell types
Read NPT_Z_TESSELLATE.out files.
static vtkVASPTessellationReader * New()
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ time
Definition: vtkX3D.h:497
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.