TTK
Loading...
Searching...
No Matches
ttkLDistance.h
Go to the documentation of this file.
1
29#pragma once
30
31// VTK Module
32#include <ttkLDistanceModule.h>
33
34// ttk code includes
35#include <LDistance.h>
36#include <ttkAlgorithm.h>
37
38class TTKLDISTANCE_EXPORT ttkLDistance : public ttkAlgorithm,
39 protected ttk::LDistance {
40public:
41 static ttkLDistance *New();
42 vtkTypeMacro(ttkLDistance, ttkAlgorithm);
43
44 vtkSetMacro(DistanceType, const std::string &);
45 vtkGetMacro(DistanceType, std::string);
46
47 vtkSetMacro(DistanceFieldName, const std::string &);
48 vtkGetMacro(DistanceFieldName, std::string);
49
50 vtkGetMacro(result, double);
51
52protected:
54
55 int FillInputPortInformation(int port, vtkInformation *info) override;
56 int FillOutputPortInformation(int port, vtkInformation *info) override;
57 int RequestData(vtkInformation *request,
58 vtkInformationVector **inputVector,
59 vtkInformationVector *outputVector) override;
60
61private:
62 std::string DistanceType{"2"};
63 std::string DistanceFieldName{"L2-distance"};
64};
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 lDistance processing package.
static ttkLDistance * New()
TTK lDistance processing package.
Definition LDistance.h:26