TTK
Loading...
Searching...
No Matches
ttkLDistanceMatrix.h
Go to the documentation of this file.
1
15
16#pragma once
17
18// VTK Module
19#include <ttkLDistanceMatrixModule.h>
20
21// TTK code includes
22#include <LDistanceMatrix.h>
23#include <ttkAlgorithm.h>
24
25class TTKLDISTANCEMATRIX_EXPORT ttkLDistanceMatrix
26 : public ttkAlgorithm,
27 protected ttk::LDistanceMatrix {
28
29public:
31
33
34 vtkSetMacro(DistanceType, const std::string &);
35 vtkGetMacro(DistanceType, std::string);
36
37protected:
39 ~ttkLDistanceMatrix() override = default;
40
41 int FillInputPortInformation(int port, vtkInformation *info) override;
42 int FillOutputPortInformation(int port, vtkInformation *info) override;
43
44 template <typename T>
45 int dispatch(std::vector<std::vector<double>> &distanceMatrix,
46 const std::vector<vtkDataSet *> &inputData,
47 const size_t nPoints);
48
49 int RequestData(vtkInformation *request,
50 vtkInformationVector **inputVector,
51 vtkInformationVector *outputVector) override;
52};
Baseclass of all VTK filters that wrap ttk modules.
Definition: ttkAlgorithm.h:34
virtual int RequestData(vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector))
Definition: ttkAlgorithm.h:390
int FillInputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:404
int FillOutputPortInformation(int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override
Definition: ttkAlgorithm.h:419
Computes a distance matrix using LDistance between several input datasets with the same number of poi...
static ttkLDistanceMatrix * New()
~ttkLDistanceMatrix() override=default