TTK
Loading...
Searching...
No Matches
ttkCinemaWriter.h
Go to the documentation of this file.
1
16
17#pragma once
18
19// VTK includes
20#include <ttkAlgorithm.h>
21#include <ttkMacros.h>
22
23// VTK Module
24#include <ttkCinemaWriterModule.h>
25
26// TTK Writer
28
29class TTKCINEMAWRITER_EXPORT ttkCinemaWriter : public ttkAlgorithm {
30public:
31 enum class FORMAT { VTK = 0, PNG = 1, TTK = 2 };
32
33private:
34 std::string DatabasePath{""};
35 int CompressionLevel{5};
36 bool IterateMultiBlock{true};
37 bool ForwardInput{true};
38 FORMAT Format{FORMAT::VTK};
39
40 // topological compression
41 double Tolerance{1.0};
42 double MaximumError{};
43 double ZFPTolerance{50};
46 int SQMethodPV{};
47 bool ZFPOnly{false};
48 bool Subdivide{false};
49 bool UseTopologicalSimplification{true};
50
51public:
54
55 vtkSetMacro(DatabasePath, const std::string &);
56 vtkGetMacro(DatabasePath, std::string);
57
59 vtkGetEnumMacro(Format, FORMAT);
60
61 vtkSetMacro(CompressionLevel, int);
62 vtkGetMacro(CompressionLevel, int);
63
64 vtkSetMacro(IterateMultiBlock, bool);
65 vtkGetMacro(IterateMultiBlock, bool);
66
67 vtkSetMacro(ForwardInput, bool);
68 vtkGetMacro(ForwardInput, bool);
69
70 vtkGetMacro(Tolerance, double);
71 vtkSetMacro(Tolerance, double);
72 vtkGetMacro(MaximumError, double);
73 vtkSetMacro(MaximumError, double);
74 vtkGetMacro(ZFPTolerance, double);
75 vtkSetMacro(ZFPTolerance, double);
76 vtkGetMacro(ZFPOnly, bool);
77 vtkSetMacro(ZFPOnly, bool);
78 vtkGetMacro(CompressionType, int);
79 vtkSetMacro(CompressionType, int);
80 vtkGetMacro(Subdivide, bool);
81 vtkSetMacro(Subdivide, bool);
82 vtkGetMacro(UseTopologicalSimplification, bool);
83 vtkSetMacro(UseTopologicalSimplification, bool);
84 vtkSetMacro(SQMethodPV, int);
85
86 int DeleteDatabase();
87 int GetLockFilePath(std::string &path);
88 int InitializeLockFile();
89
90protected:
92 ~ttkCinemaWriter() override;
93
94 int ValidateDatabasePath();
95 int ProcessDataProduct(vtkDataObject *input);
96
97 int FillInputPortInformation(int port, vtkInformation *info) override;
98 int FillOutputPortInformation(int port, vtkInformation *info) override;
99
100 int RequestData(vtkInformation *request,
101 vtkInformationVector **inputVector,
102 vtkInformationVector *outputVector) override;
103};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:419
TTK VTK-filter that writes input to disk.
static ttkCinemaWriter * New()
~ttkCinemaWriter() override
#define ttkSetEnumMacro(name, enumType)
Definition: ttkMacros.h:38