TTK
Loading...
Searching...
No Matches
ttkRipsPersistenceDiagram.h
Go to the documentation of this file.
1
21
22#pragma once
23
24// VTK Module
25#include <ttkRipsPersistenceDiagramModule.h>
26
27// VTK Includes
28#include <vtkUnstructuredGrid.h>
29
30// TTK Includes
32#include <ttkAlgorithm.h>
33
34class TTKRIPSPERSISTENCEDIAGRAM_EXPORT ttkRipsPersistenceDiagram
35 : public ttkAlgorithm, // we inherit from the generic ttkAlgorithm class
36 protected ttk::RipsPersistenceDiagram { // and we inherit from the base
37 // class
38private:
39 int DiagramToVTU(
40 vtkUnstructuredGrid *vtu,
41 const std::vector<std::vector<ripser::pers_pair_t>> &diagram);
42
43public:
46
47 vtkSetMacro(SimplexMaximumDimension, int);
48 vtkGetMacro(SimplexMaximumDimension, int);
49
50 vtkSetMacro(SimplexMaximumDiameter, double);
51 vtkGetMacro(SimplexMaximumDiameter, double);
52
53 vtkSetMacro(InputIsDistanceMatrix, int);
54 vtkGetMacro(InputIsDistanceMatrix, int);
55
56protected:
58 ~ttkRipsPersistenceDiagram() override = default;
59
60 int FillInputPortInformation(int port, vtkInformation *info) override;
61
62 int FillOutputPortInformation(int port, vtkInformation *info) override;
63
64 int RequestData(vtkInformation *request,
65 vtkInformationVector **inputVector,
66 vtkInformationVector *outputVector) override;
67};
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 ttk::RipsPersistenceDiagram module.
static ttkRipsPersistenceDiagram * New()
~ttkRipsPersistenceDiagram() override=default
TTK base class that computes the persistence diagram of a Rips complex.
int DiagramToVTU(vtkUnstructuredGrid *vtu, const ttk::DiagramType &diagram, vtkDataArray *const inputScalars, const ttk::Debug &dbg, const int dim, const bool embedInDomain)
Converts a Persistence Diagram in the ttk::DiagramType format to the VTK Unstructured Grid format (as...