-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVTKSnapshotWriter.h
More file actions
53 lines (47 loc) · 1.28 KB
/
VTKSnapshotWriter.h
File metadata and controls
53 lines (47 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _GCM_VTK_SNAPSHOT_WRITER_H
#define _GCM_VTK_SNAPSHOT_WRITER_H 1
#include "string"
#include <vector>
#include <fstream>
#include <sstream>
#include <getopt.h>
#include <stdlib.h>
#include "Utils.h"
using std::string;
using std::vector;
using std::ofstream;
using std::stringstream;
#include <vtkUnstructuredGrid.h>
#include <vtkXMLUnstructuredGridWriter.h>
#include <vtkUnstructuredGridWriter.h>
#include <vtkTetra.h>
#include <vtkTriangle.h>
#include <vtkDoubleArray.h>
#include <vtkIntArray.h>
#include <vtkPointData.h>
//#include <vtkstd/string>
//#include "../meshtypes/TetrMesh_1stOrder.h"
#include "Mesh.h"
#include "SnapshotWriter.h"
class VTKSnapshotWriter: public SnapshotWriter
{
public:
VTKSnapshotWriter();
VTKSnapshotWriter(const char *param);
~VTKSnapshotWriter();
string* get_snapshot_writer_type();
int dump_vtk(Mesh* tetr_mesh, int snap_num);
int dump_external_mesh_vtk(Mesh* tetr_mesh, int snap_num);
int dump_vtk (string fileName, Mesh* tetr_mesh, int snap_num);
//int dump_vtk(int snap_num);
int dump_tetr_mesh(Mesh* tetr_mesh, int zone_num, int snap_num);
//void dump(int snap_num);
void parseArgs(int argc, char **argv);
int init();
string getFileName (int zoneNum, int snapNum);
protected:
string snapshot_writer_type;
string fname;
string resultdir;
};
#endif