TTK
Loading...
Searching...
No Matches
ttkScalarFieldCriticalPoints.h
Go to the documentation of this file.
1
72#pragma once
73
74// VTK Module
75#include <ttkScalarFieldCriticalPointsModule.h>
76
77// VTK Includes
78#include <ttkAlgorithm.h>
79#include <ttkMacros.h>
80
81// ttk baseCode includes
83
84// in this example, this wrapper takes a data-set on the input and produces a
85// data-set on the output - to adapt.
86// see the documentation of the vtkAlgorithm class to decide from which VTK
87// class your wrapper should inherit.
88class TTKSCALARFIELDCRITICALPOINTS_EXPORT ttkScalarFieldCriticalPoints
89 : public ttkAlgorithm,
91
92public:
94
96
97 vtkGetMacro(VertexBoundary, bool);
98 vtkSetMacro(VertexBoundary, bool);
99
100 vtkGetMacro(VertexIds, bool);
101 vtkSetMacro(VertexIds, bool);
102
103 vtkGetMacro(VertexScalars, bool);
104 vtkSetMacro(VertexScalars, bool);
105
106 vtkGetMacro(ForceInputOffsetScalarField, bool);
107 vtkSetMacro(ForceInputOffsetScalarField, bool);
108
110 vtkGetEnumMacro(BackEnd, BACKEND);
111
112 vtkGetMacro(StartingResolutionLevel, int);
113 vtkSetMacro(StartingResolutionLevel, int);
114
115 vtkGetMacro(StoppingResolutionLevel, int);
116 vtkSetMacro(StoppingResolutionLevel, int);
117
118 vtkGetMacro(IsResumable, bool);
119 vtkSetMacro(IsResumable, bool);
120
121 vtkGetMacro(TimeLimit, double);
122 vtkSetMacro(TimeLimit, double);
123
124protected:
126
128
129 int FillInputPortInformation(int port, vtkInformation *info) override;
130
131 int FillOutputPortInformation(int port, vtkInformation *info) override;
132
133 int RequestData(vtkInformation *request,
134 vtkInformationVector **inputVector,
135 vtkInformationVector *outputVector) override;
136
137private:
138 bool ForceInputOffsetScalarField{false};
139 bool VertexIds{true}, VertexScalars{true}, VertexBoundary{true};
140
141 std::vector<std::vector<std::pair<ttk::SimplexId, ttk::SimplexId>>>
142 vertexLinkEdgeList_;
143 std::vector<std::pair<ttk::SimplexId, char>> criticalPoints_;
144};
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 for the computation of critical points in PL scalar fields defined on PL manifolds.
static ttkScalarFieldCriticalPoints * New()
~ttkScalarFieldCriticalPoints() override
TTK processing package for the computation of critical points in PL scalar fields defined on PL manif...
std::vector< std::pair< SimplexId, char > > * criticalPoints_
#define ttkSetEnumMacro(name, enumType)
Definition ttkMacros.h:38