TTK
Loading...
Searching...
No Matches
ttkTopologicalCompressionWriter.h
Go to the documentation of this file.
1
14
15#pragma once
16
17// TTK
19#include <ttkAlgorithm.h>
20
21// VTK Module
22#include <ttkTopologicalCompressionWriterModule.h>
23
24class vtkImageData;
25
26class TTKTOPOLOGICALCOMPRESSIONWRITER_EXPORT ttkTopologicalCompressionWriter
27 : public ttkAlgorithm,
29
30public:
32
34
35 vtkSetStringMacro(FileName);
36 vtkGetStringMacro(FileName);
37
38 vtkGetMacro(Tolerance, double);
39 vtkSetMacro(Tolerance, double);
40
41 vtkGetMacro(MaximumError, double);
42 vtkSetMacro(MaximumError, double);
43
44 vtkGetMacro(ZFPTolerance, double);
45 vtkSetMacro(ZFPTolerance, double);
46
47 vtkGetMacro(ZFPOnly, bool);
48 vtkSetMacro(ZFPOnly, bool);
49
50 vtkGetMacro(CompressionType, int);
51 vtkSetMacro(CompressionType, int);
52
53 vtkGetMacro(NbSegments, int);
54 vtkSetMacro(NbSegments, int);
55
56 vtkGetMacro(NbVertices, int);
57 vtkSetMacro(NbVertices, int);
58
59 vtkGetMacro(SQMethod, std::string);
60 vtkSetMacro(SQMethod, const std::string &);
61
62 vtkSetMacro(Subdivide, bool);
63 vtkGetMacro(Subdivide, bool);
64
65 vtkSetMacro(UseTopologicalSimplification, bool);
66 vtkGetMacro(UseTopologicalSimplification, bool);
67
68 inline void SetSQMethodPV(int c) {
69 if(c == 1) {
70 SetSQMethod("r");
71 } else if(c == 2) {
72 SetSQMethod("d");
73 } else if(c == 0) {
74 SetSQMethod("");
75 }
76 }
77
78 // expose vtkWriter methods (duck-typing)
79 int Write();
80 vtkDataObject *GetInput();
81 void SetInputData(vtkDataObject *input);
82
83protected:
84 // Regular writer management.
86 int FillInputPortInformation(int port, vtkInformation *info) override;
87
88private:
89 // Writer parameters.
90 char *FileName{};
91};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
void SetInputData(vtkDataSet *)
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
VTK-filter that wraps the topologicalCompressionWriter processing package.
static ttkTopologicalCompressionWriter * New()
TTK topologicalCompression processing package.
void Write(FILE *fm, T data) const