TTK
Loading...
Searching...
No Matches
ttkRipsComplex.h
Go to the documentation of this file.
1
29
30#pragma once
31
32// VTK Module
33#include <ttkRipsComplexModule.h>
34
35// TTK includes
36#include <RipsComplex.h>
37#include <ttkAlgorithm.h>
38
39class TTKRIPSCOMPLEX_EXPORT ttkRipsComplex : public ttkAlgorithm,
40 protected ttk::RipsComplex {
41
42public:
45
46 void SetScalarFields(const std::string &s) {
47 ScalarFields.push_back(s);
48 Modified();
49 }
50
52 ScalarFields.clear();
53 Modified();
54 }
55
56 vtkSetMacro(OutputDimension, int);
57 vtkGetMacro(OutputDimension, int);
58
59 vtkSetMacro(Epsilon, double);
60 vtkGetMacro(Epsilon, double);
61
62 vtkSetMacro(KeepAllDataArrays, bool);
63 vtkGetMacro(KeepAllDataArrays, bool);
64
65 vtkSetMacro(SelectFieldsWithRegexp, bool);
66 vtkGetMacro(SelectFieldsWithRegexp, bool);
67
68 vtkSetMacro(StdDev, double);
69 vtkGetMacro(StdDev, double);
70
71 vtkSetMacro(ComputeGaussianDensity, bool);
72 vtkGetMacro(ComputeGaussianDensity, bool);
73
74 vtkSetMacro(RegexpString, const std::string &);
75 vtkGetMacro(RegexpString, std::string);
76
77 vtkSetMacro(XColumn, const std::string &);
78 vtkGetMacro(XColumn, std::string);
79
80 vtkSetMacro(YColumn, const std::string &);
81 vtkGetMacro(YColumn, std::string);
82
83 vtkSetMacro(ZColumn, const std::string &);
84 vtkGetMacro(ZColumn, std::string);
85
86protected:
88
89 int FillInputPortInformation(int port, vtkInformation *info) override;
90 int FillOutputPortInformation(int port, vtkInformation *info) override;
91 int RequestData(vtkInformation *request,
92 vtkInformationVector **inputVector,
93 vtkInformationVector *outputVector) override;
94
95private:
96 bool KeepAllDataArrays{true};
97 bool SelectFieldsWithRegexp{false};
98 std::string RegexpString{".*"};
99 std::vector<std::string> ScalarFields{};
100 std::string XColumn{};
101 std::string YColumn{};
102 std::string ZColumn{};
103};
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
TTK VTK-filter that wraps the ttk::RipsComplex processing package.
void SetScalarFields(const std::string &s)
void ClearScalarFields()
static ttkRipsComplex * New()
TTK VTK-filter that computes a Rips complex.
Definition: RipsComplex.h:34