ls1-MarDyn
ls1-MarDyn molecular dynamics code
VTKGridWriterImplementation.h
1/*
2 * VTKGridWriterImplementation.h
3 *
4 * @Date: 20.09.2010
5 * @Author: eckhardw
6 */
7
8#ifndef VTKGRIDWRITERIMPLEMENTATION_H_
9#define VTKGRIDWRITERIMPLEMENTATION_H_
10
11#include <string>
12#include <vector>
13
14class VTKGridCell;
15class VTKFile_t;
16
24
25private:
26
28 VTKFile_t* _vtkFile;
29
31 VTKFile_t* _parallelVTKFile;
32
34 unsigned int _numCellsPlotted;
35
37 unsigned int _numVerticesPlotted;
38
40 int _rank;
41
42 const std::vector<double>* _processorSpeeds;
43
44public:
45
49 VTKGridWriterImplementation(int rank, const std::vector<double>* processorSpeeds = nullptr);
50
52
53 void initializeVTKFile();
54
60 void plotCell(VTKGridCell& molecule);
61
62 void writeVTKFile(const std::string& fileName);
63
70 void initializeParallelVTKFile(const std::vector<std::string>& fileNames);
71
72
78 void writeParallelVTKFile(const std::string& fileName);
79
80 bool isVTKFileInitialized();
81
82 bool isParallelVTKFileInitialized();
83
84 unsigned int getNumCellsPlotted();
85
86 unsigned int getNumVerticesPlotted();
87};
88
89#endif /* VTKGRIDWRITERIMPLEMENTATION_H_ */
Class corresponding to the VTKFile_t schema type.
Definition: vtk-punstructured.h:1096
Definition: VTKGridCell.h:16
Definition: VTKGridWriterImplementation.h:23
void initializeVTKFile()
Definition: VTKGridWriterImplementation.cpp:36
void plotCell(VTKGridCell &molecule)
Definition: VTKGridWriterImplementation.cpp:78
VTKGridWriterImplementation(int rank, const std::vector< double > *processorSpeeds=nullptr)
Definition: VTKGridWriterImplementation.cpp:18
void initializeParallelVTKFile(const std::vector< std::string > &fileNames)
Definition: VTKGridWriterImplementation.cpp:148
void writeParallelVTKFile(const std::string &fileName)
Definition: VTKGridWriterImplementation.cpp:190
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270