58 std::string TimeVariableName{
""};
61 bool DoResampleToImage =
false;
67 std::vector<vtkUnstructuredGrid *> treesNodes;
68 std::vector<vtkUnstructuredGrid *> treesArcs;
69 std::vector<vtkDataSet *> treesSegmentation;
71 std::vector<std::vector<int>> treesNodeCorrMesh;
72 std::vector<double> emptyTreeDistances;
73 std::vector<ttk::ftm::MergeTree<double>> keyFrames;
74 std::vector<int> removed;
76 void setDataVisualization(
int numInputs) {
78 treesNodes = std::vector<vtkUnstructuredGrid *>(numInputs);
79 treesArcs = std::vector<vtkUnstructuredGrid *>(numInputs);
80 treesSegmentation = std::vector<vtkDataSet *>(numInputs);
83 void resetDataVisualization() {
84 setDataVisualization(0);
85 treesNodeCorrMesh = std::vector<std::vector<int>>();
86 emptyTreeDistances = std::vector<double>();
87 keyFrames = std::vector<ttk::ftm::MergeTree<double>>();
88 removed = std::vector<int>();
91 bool isDataVisualizationFilled() {
92 return treesNodeCorrMesh.size() != 0 and keyFrames.size() != 0
93 and emptyTreeDistances.size() != 0 and removed.size() != 0;
103 epsilon1UseFarthestSaddle_ = epsilon1UseFarthestSaddle;
105 resetDataVisualization();
112 epsilonTree1_ = epsilonTree1;
114 resetDataVisualization();
121 epsilon2Tree1_ = epsilon2Tree1;
123 resetDataVisualization();
130 epsilon3Tree1_ = epsilon3Tree1;
132 resetDataVisualization();
139 persistenceThreshold_ = persistenceThreshold;
141 resetDataVisualization();
148 useMinMaxPair_ = useMinMaxPair;
150 resetDataVisualization();
157 deleteMultiPersPairs_ = doDelete;
159 resetDataVisualization();
167 assignmentSolverID_ = assignmentSolver;
169 resetDataVisualization();
176 removalPercentage_ = removePerc;
178 resetDataVisualization();
185 useL2Distance_ = useL2;
187 resetDataVisualization();
194 useCustomTimeVariable_ = useCustomTime;
196 resetDataVisualization();
203 int idx,
int port,
int connection,
int fieldAssociation,
const char *name) {
204 SetInputArrayToProcess(idx, port, connection, fieldAssociation, name);
205 TimeVariableName = std::string(name);
207 resetDataVisualization();
209 vtkGetMacro(TimeVariableName, std::string);
243 vtkInformationVector **inputVector,
244 vtkInformationVector *outputVector)
override;
246 template <
class dataType>
247 int run(vtkInformationVector *outputVector,
250 template <
class dataType>
254 template <
class dataType>
255 int runOutput(vtkInformationVector *outputVector,