TTK
Loading...
Searching...
No Matches
ttkContourTree.h
Go to the documentation of this file.
1
55
56#pragma once
57
58// VTK includes
59#include <vtkSmartPointer.h>
60
61// VTK module
62#include <ttkContourTreeModule.h>
63
64// ttk code includes
65#include <FTMTree.h>
66#include <ttkAlgorithm.h>
67#include <ttkMergeTreeBase.h>
69
70class vtkDataSet;
71
72class TTKCONTOURTREE_EXPORT ttkContourTree : public ttkAlgorithm,
73 public ttkMergeTreeBase {
74
75public:
77
79
82 vtkGetMacro(ForceInputOffsetScalarField, bool);
83 vtkSetMacro(ForceInputOffsetScalarField, bool);
85
86 // Parameters uses a structure, we can't use vtkMacro on them
87
90 void SetWithSegmentation(const bool segm) {
91 params_.segm = segm;
92 Modified();
93 }
94 bool GetWithSegmentation() const {
95 return params_.segm;
96 }
98
102 void SetWithNormalize(const bool norm) {
103 params_.normalize = norm;
104 Modified();
105 }
106 bool GetWithNormalize() const {
107 return params_.normalize;
108 }
110
114 void SetWithAdvStats(const bool adv) {
115 params_.advStats = adv;
116 Modified();
117 }
118 bool GetWithAdvStats() const {
119 return params_.advStats;
120 }
122
126 params_.samplingLvl = lvl;
127 Modified();
128 }
130 return params_.samplingLvl;
131 }
133
134 int preconditionTriangulation();
135 int getScalars();
136 int getOffsets();
137
138protected:
140
141 // vtkDataSetAlgorithm methods
142 int FillInputPortInformation(int port, vtkInformation *info) override;
143 int FillOutputPortInformation(int port, vtkInformation *info) override;
144 int RequestData(vtkInformation *request,
145 vtkInformationVector **inputVector,
146 vtkInformationVector *outputVector) override;
147
148private:
149};
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 filter for the computation of contour trees.
void SetSuperArcSamplingLevel(int lvl)
control the sampling level of the superarc. By default: 0
bool GetWithSegmentation() const
bool GetWithAdvStats() const
int GetSuperArcSamplingLevel() const
bool GetWithNormalize() const
static ttkContourTree * New()
void SetWithAdvStats(const bool adv)
Compute additional information on the segmentation like the span and size (in nb of vertex) of each r...
void SetWithSegmentation(const bool segm)
control if the output should contains the segmentation information
void SetWithNormalize(const bool norm)
if true, a post process pass will ensure NodesId have a deterministic order