TTK
Loading...
Searching...
No Matches
ttkTopologicalSimplificationByPersistence.h
Go to the documentation of this file.
1
17
23
54
55#pragma once
56#include <ttkTopologicalSimplificationByPersistenceModule.h>
57
58// VTK Includes
59#include <ttkAlgorithm.h>
60
61// TTK Includes
63#include <ttkMacros.h>
64
65class TTKTOPOLOGICALSIMPLIFICATIONBYPERSISTENCE_EXPORT
67 : public ttkAlgorithm,
69private:
70 double PersistenceThreshold{0.0};
71 bool ThresholdIsAbsolute{false};
72 bool ComputePerturbation{false};
73 PAIR_TYPE PairType{PAIR_TYPE::EXTREMUM_SADDLE};
74
75public:
76 vtkSetMacro(PersistenceThreshold, double);
77 vtkGetMacro(PersistenceThreshold, double);
78 vtkSetMacro(ThresholdIsAbsolute, bool);
79 vtkGetMacro(ThresholdIsAbsolute, bool);
80 vtkSetMacro(ComputePerturbation, bool);
81 vtkGetMacro(ComputePerturbation, bool);
83 vtkGetEnumMacro(PairType, PAIR_TYPE);
84
87
88protected:
91
92 int FillInputPortInformation(int port, vtkInformation *info) override;
93 int FillOutputPortInformation(int port, vtkInformation *info) override;
94 int RequestData(vtkInformation *request,
95 vtkInformationVector **inputVector,
96 vtkInformationVector *outputVector) override;
97};
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
TTK VTK-filter that computes a persistence-based simplification of a scalar field.
static ttkTopologicalSimplificationByPersistence * New()
#define ttkSetEnumMacro(name, enumType)
Definition ttkMacros.h:38