TTK
Loading...
Searching...
No Matches
ttkContourTreeAlignment.h
Go to the documentation of this file.
1
54
55#pragma once
56
57// VTK Module
58#include <ttkContourTreeAlignmentModule.h>
59
60// VTK includes
61#include <ttkAlgorithm.h>
62#include <vtkInformation.h>
63
64// TTK includes
66
67class TTKCONTOURTREEALIGNMENT_EXPORT ttkContourTreeAlignment
68 : public ttkAlgorithm,
70
71public:
72 // VTK stuff
75
76 // auto generated setters and getters
77 vtkSetMacro(RandomSeed, int);
78 vtkGetMacro(RandomSeed, int);
79 vtkSetMacro(MatchTime, bool);
80 vtkGetMacro(MatchTime, bool);
81 vtkSetMacro(ArcMatchMode, int);
82 vtkGetMacro(ArcMatchMode, int);
83 vtkSetMacro(AlignmenttreeType, int);
84 vtkGetMacro(AlignmenttreeType, int);
85 vtkSetMacro(WeightCombinatorialMatch, float);
86 vtkGetMacro(WeightCombinatorialMatch, float);
87 vtkSetMacro(WeightArcMatch, float);
88 vtkGetMacro(WeightArcMatch, float);
89 vtkSetMacro(WeightScalarValueMatch, float);
90 vtkGetMacro(WeightScalarValueMatch, float);
91 vtkSetMacro(ExportJSON, bool);
92 vtkGetMacro(ExportJSON, bool);
93 vtkSetMacro(ExportPath, const std::string &);
94 vtkGetMacro(ExportPath, std::string);
95
96protected:
97 // Specify the input data type of each input port
98 int FillInputPortInformation(int port, vtkInformation *info) override;
99
100 // Specify the data object type of each output port
101 int FillOutputPortInformation(int port, vtkInformation *info) override;
102
103 // Pass VTK data to the base code and convert base code output to VTK
104 int RequestData(vtkInformation *request,
105 vtkInformationVector **inputVector,
106 vtkInformationVector *outputVector) override;
107
108 // filter constructor and destructor
110 ~ttkContourTreeAlignment() override = default;
111 ;
112
113private:
114 // filter parameters
115 int RandomSeed{1};
116 bool MatchTime{false};
117 int AlignmenttreeType{0};
118 bool ExportJSON{false};
119 std::string ExportPath{""};
120 int ArcMatchMode{2};
121 float WeightCombinatorialMatch{0};
122 float WeightArcMatch{1};
123 float WeightScalarValueMatch{0};
124};
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 an alignment for a multiblock of contourtrees.
~ttkContourTreeAlignment() override=default
static ttkContourTreeAlignment * New()
TTK contourTreeAlignment processing package.