5#include <ttkPersistenceDiagramModule.h>
7class vtkUnstructuredGrid;
22 vtkUnstructuredGrid *vtu,
41TTKPERSISTENCEDIAGRAM_EXPORT
int DiagramToVTU(vtkUnstructuredGrid *vtu,
43 vtkDataArray *
const inputScalars,
46 const bool embedInDomain);
59TTKPERSISTENCEDIAGRAM_EXPORT
int
61 vtkUnstructuredGrid *
const outputDiagram,
75TTKPERSISTENCEDIAGRAM_EXPORT
int
77 vtkUnstructuredGrid *
const outputDiagram,
88TTKPERSISTENCEDIAGRAM_EXPORT
int
90 const std::array<double, 3> &trans);
102TTKPERSISTENCEDIAGRAM_EXPORT
int
Minimalist debugging class.
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.