TTK
Loading...
Searching...
No Matches
ttkTopologicalCompression.h
Go to the documentation of this file.
1
35
36#pragma once
37
38// ttk code includes
40#include <ttkAlgorithm.h>
41
42// VTK Module
43#include <ttkTopologicalCompressionModule.h>
44
45class TTKTOPOLOGICALCOMPRESSION_EXPORT ttkTopologicalCompression
46 : public ttkAlgorithm,
48
49public:
52
53 vtkSetMacro(Tolerance, double);
54 vtkGetMacro(Tolerance, double);
55
56 vtkSetMacro(MaximumError, double);
57 vtkGetMacro(MaximumError, double);
58
59 vtkSetMacro(CompressionType, int);
60 vtkGetMacro(CompressionType, int);
61
62 vtkSetMacro(SQMethod, const std::string &);
63 vtkGetMacro(SQMethod, std::string);
64
65 vtkSetMacro(Subdivide, bool);
66 vtkGetMacro(Subdivide, bool);
67
68 vtkSetMacro(UseTopologicalSimplification, bool);
69 vtkGetMacro(UseTopologicalSimplification, bool);
70
71 inline void SetSQMethodPV(int c) {
72 if(c == 1) {
73 SetSQMethod("r");
74 } else if(c == 2) {
75 SetSQMethod("d");
76 } else {
77 SetSQMethod("");
78 }
79 }
80
81protected:
83
84 int FillInputPortInformation(int port, vtkInformation *info) override;
85 int FillOutputPortInformation(int port, vtkInformation *info) override;
86 int RequestData(vtkInformation *request,
87 vtkInformationVector **inputVector,
88 vtkInformationVector *outputVector) override;
89};
Baseclass of all VTK filters that wrap ttk modules.
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
static ttkTopologicalCompression * New()
TTK topologicalCompression processing package.