TTK
Loading...
Searching...
No Matches
ttkBottleneckDistance.h
Go to the documentation of this file.
1
20#pragma once
21
22// TTK includes
23#include <BottleneckDistance.h>
24#include <ttkAlgorithm.h>
25#include <ttkBottleneckDistanceModule.h>
26
27class vtkUnstructuredGrid;
28
29class TTKBOTTLENECKDISTANCE_EXPORT ttkBottleneckDistance
30 : public ttkAlgorithm,
31 protected ttk::BottleneckDistance {
32
33public:
35
37
38 vtkSetMacro(Tolerance, double);
39 vtkGetMacro(Tolerance, double);
40
41 vtkSetMacro(PX, double);
42 vtkGetMacro(PX, double);
43
44 vtkSetMacro(PY, double);
45 vtkGetMacro(PY, double);
46
47 vtkSetMacro(PZ, double);
48 vtkGetMacro(PZ, double);
49
50 vtkSetMacro(PE, double);
51 vtkGetMacro(PE, double);
52
53 vtkSetMacro(PS, double);
54 vtkGetMacro(PS, double);
55
56 vtkSetMacro(UseOutputMatching, bool);
57 vtkGetMacro(UseOutputMatching, bool);
58
59 vtkSetMacro(WassersteinMetric, const std::string &);
60 vtkGetMacro(WassersteinMetric, std::string);
61
62 vtkSetMacro(DistanceAlgorithm, const std::string &);
63 vtkGetMacro(DistanceAlgorithm, std::string);
64
65 vtkSetMacro(PVAlgorithm, int);
66 vtkGetMacro(PVAlgorithm, int);
67
68 vtkSetMacro(UseGeometricSpacing, bool);
69 vtkGetMacro(UseGeometricSpacing, bool);
70
71 vtkSetMacro(Spacing, double);
72 vtkGetMacro(Spacing, double);
73
74 double Getresult() {
75 return this->distance_;
76 }
77
78 int FillInputPortInformation(int port, vtkInformation *info) override;
79 int FillOutputPortInformation(int port, vtkInformation *info) override;
80 int RequestData(vtkInformation * /*request*/,
81 vtkInformationVector **inputVector,
82 vtkInformationVector *outputVector) override;
83
84protected:
86
87private:
88 double Spacing{0.0};
89 bool UseOutputMatching{false};
90 bool UseGeometricSpacing{false};
91};
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 wraps the bottleneckDistance processing package.
static ttkBottleneckDistance * New()