TTK
Loading...
Searching...
No Matches
ttkDelaunayRipsPersistenceDiagram.h
Go to the documentation of this file.
1
27
28#pragma once
29
30// VTK Module
31#include <ttkDelaunayRipsPersistenceDiagramModule.h>
32
33// VTK Includes
34#include <ttkMacros.h>
35#include <vtkUnstructuredGrid.h>
36
37// TTK Includes
39#include <ttkAlgorithm.h>
40
41class TTKDELAUNAYRIPSPERSISTENCEDIAGRAM_EXPORT ttkDelaunayRipsPersistenceDiagram
42 : public ttkAlgorithm, // we inherit from the generic ttkAlgorithm class
43 protected ttk::DelaunayRipsPersistenceDiagram { // and we inherit from the
44 // base
45 // class
46private:
47 bool KeepAllDataArrays{true};
48 bool SelectFieldsWithRegexp{false};
49 std::string RegexpString{".*"};
50 std::vector<std::string> ScalarFields{};
51
52public:
55
56 void SetScalarFields(const std::string &s) {
57 ScalarFields.push_back(s);
58 Modified();
59 }
60
62 ScalarFields.clear();
63 Modified();
64 }
65
66 vtkSetMacro(KeepAllDataArrays, bool);
67 vtkGetMacro(KeepAllDataArrays, bool);
68
69 vtkSetMacro(SelectFieldsWithRegexp, bool);
70 vtkGetMacro(SelectFieldsWithRegexp, bool);
71
72 vtkSetMacro(RegexpString, const std::string &);
73 vtkGetMacro(RegexpString, std::string);
74
75protected:
78
79 int FillInputPortInformation(int port, vtkInformation *info) override;
80
81 int FillOutputPortInformation(int port, vtkInformation *info) override;
82
83 int RequestData(vtkInformation *request,
84 vtkInformationVector **inputVector,
85 vtkInformationVector *outputVector) override;
86};
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
~ttkDelaunayRipsPersistenceDiagram() override=default
static ttkDelaunayRipsPersistenceDiagram * New()
TTK base class that computes the persistence diagram of a Delaunay-Rips filtration.