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