TTK
Loading...
Searching...
No Matches
ttkTopologicalSimplification.h
Go to the documentation of this file.
1
120
121#pragma once
122
123// VTK Module
124#include <ttkTopologicalSimplificationModule.h>
125
126// ttk code includes
128#include <ttkAlgorithm.h>
129
130class vtkDataArray;
131
132class TTKTOPOLOGICALSIMPLIFICATION_EXPORT ttkTopologicalSimplification
133 : public ttkAlgorithm,
135
136public:
139
140 vtkSetMacro(ForceInputOffsetScalarField, bool);
141 vtkGetMacro(ForceInputOffsetScalarField, bool);
142
143 vtkSetMacro(ConsiderIdentifierAsBlackList, bool);
144 vtkGetMacro(ConsiderIdentifierAsBlackList, bool);
145
146 vtkSetMacro(AddPerturbation, bool);
147 vtkGetMacro(AddPerturbation, bool);
148
149 vtkSetMacro(ForceInputVertexScalarField, bool);
150 vtkGetMacro(ForceInputVertexScalarField, bool);
151
152 vtkSetMacro(UseLTS, bool);
153 vtkGetMacro(UseLTS, bool);
154
155 vtkSetMacro(PersistenceThreshold, double);
156 vtkGetMacro(PersistenceThreshold, double);
157
158protected:
160
161 int FillInputPortInformation(int port, vtkInformation *info) override;
162 int FillOutputPortInformation(int port, vtkInformation *info) override;
163 int RequestData(vtkInformation *request,
164 vtkInformationVector **inputVector,
165 vtkInformationVector *outputVector) override;
166
167private:
168 bool ForceInputVertexScalarField{false};
169 bool ForceInputOffsetScalarField{false};
170 bool ConsiderIdentifierAsBlackList{false};
171 bool AddPerturbation{false};
172 bool UseLTS{true};
173 double PersistenceThreshold{0};
174};
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 for the topological simplification of scalar data.
static ttkTopologicalSimplification * New()
TTK processing package for the topological simplification of scalar data.