-
Notifications
You must be signed in to change notification settings - Fork 15
/
vtkCPVTKOutputPipeline.h
53 lines (39 loc) · 1.43 KB
/
vtkCPVTKOutputPipeline.h
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 VTKCPVTKOUTPUTPIPELINE_H
#define VTKCPVTKOUTPUTPIPELINE_H
#include <vtkCPPipeline.h>
#include <vtkCPDataDescription.h>
#include <string>
// Implements a simple ParaView Catalyst pipeline that
// writes AMR grid output in VTK file format. These
// types of grids are not currently supported by
// built-in vtkCPXMLPWriterPipeline
class vtkCPVTKOutputPipeline: public vtkCPPipeline
{
public:
// Standard VTK members
static vtkCPVTKOutputPipeline* New();
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkTypeMacro(vtkCPVTKOutputPipeline,vtkCPPipeline);
// Callback function: work out if we should produce output for this call
// and let Catalyst know by returning 1 (yes) or 0 (no)
int RequestDataDescription(vtkCPDataDescription* dataDescription) override;
int CoProcess(vtkCPDataDescription* dataDescription) override;
vtkSetMacro(OutputFrequency, int);
vtkGetMacro(OutputFrequency, int);
vtkSetMacro(OutputTimeInterval, double);
vtkGetMacro(OutputTimeInterval, double);
vtkSetMacro(FileName, std::string);
vtkGetMacro(FileName, std::string);
vtkCPVTKOutputPipeline(const vtkCPVTKOutputPipeline&) = delete;
vtkCPVTKOutputPipeline& operator=(const vtkCPVTKOutputPipeline&) = delete;
protected:
vtkCPVTKOutputPipeline();
virtual ~vtkCPVTKOutputPipeline();
private:
int OutputFrequency;
double OutputTimeInterval;
double LastOutputTime;
bool TimeTrigger;
std::string FileName;
};
#endif