TTK
Loading...
Searching...
No Matches
ttkPersistenceDiagramUtils.h
Go to the documentation of this file.
1#include <Debug.h>
3
4// VTK Module
5#include <ttkPersistenceDiagramModule.h>
6
7class vtkUnstructuredGrid;
8class vtkDataArray;
9
21TTKPERSISTENCEDIAGRAM_EXPORT int VTUToDiagram(ttk::DiagramType &diagram,
22 vtkUnstructuredGrid *vtu,
23 const ttk::Debug &dbg);
24
41TTKPERSISTENCEDIAGRAM_EXPORT int DiagramToVTU(vtkUnstructuredGrid *vtu,
42 const ttk::DiagramType &diagram,
43 vtkDataArray *const inputScalars,
44 const ttk::Debug &dbg,
45 const int dim,
46 const bool embedInDomain);
47
59TTKPERSISTENCEDIAGRAM_EXPORT int
60 ProjectDiagramInsideDomain(vtkUnstructuredGrid *const inputDiagram,
61 vtkUnstructuredGrid *const outputDiagram,
62 const ttk::Debug &dbg);
63
75TTKPERSISTENCEDIAGRAM_EXPORT int
76 ProjectDiagramIn2D(vtkUnstructuredGrid *const inputDiagram,
77 vtkUnstructuredGrid *const outputDiagram,
78 const ttk::Debug &dbg);
79
88TTKPERSISTENCEDIAGRAM_EXPORT int
89 TranslateDiagram(vtkUnstructuredGrid *const diagram,
90 const std::array<double, 3> &trans);
91
102TTKPERSISTENCEDIAGRAM_EXPORT int
103 ResetDiagramPosition(vtkUnstructuredGrid *const diagram,
104 const ttk::Debug &dbg);
Minimalist debugging class.
Definition Debug.h:88
std::vector< PersistencePair > DiagramType
Persistence Diagram type as a vector of Persistence pairs.
TTKPERSISTENCEDIAGRAM_EXPORT int VTUToDiagram(ttk::DiagramType &diagram, vtkUnstructuredGrid *vtu, const ttk::Debug &dbg)
Converts a Persistence Diagram in the VTK Unstructured Grid format (as generated by the ttkPersistenc...
TTKPERSISTENCEDIAGRAM_EXPORT int ProjectDiagramIn2D(vtkUnstructuredGrid *const inputDiagram, vtkUnstructuredGrid *const outputDiagram, const ttk::Debug &dbg)
Generate the 2D embedding of a given Persistence Diagram.
TTKPERSISTENCEDIAGRAM_EXPORT int ResetDiagramPosition(vtkUnstructuredGrid *const diagram, const ttk::Debug &dbg)
Translate back a canonical diagram into its original position.
TTKPERSISTENCEDIAGRAM_EXPORT int ProjectDiagramInsideDomain(vtkUnstructuredGrid *const inputDiagram, vtkUnstructuredGrid *const outputDiagram, const ttk::Debug &dbg)
Generate the spatial embedding of a given Persistence Diagram.
TTKPERSISTENCEDIAGRAM_EXPORT 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...
TTKPERSISTENCEDIAGRAM_EXPORT int TranslateDiagram(vtkUnstructuredGrid *const diagram, const std::array< double, 3 > &trans)
Translate a diagram to a new position.