TTK
Loading...
Searching...
No Matches
ttkRipsPersistenceGenerators.cpp File Reference
#include <ttkRipsPersistenceDiagram.h>
#include <ttkRipsPersistenceGenerators.h>
#include <vtkCellData.h>
#include <vtkDoubleArray.h>
#include <vtkInformation.h>
#include <vtkTable.h>
#include <regex>

Go to the source code of this file.

Typedefs

using EdgeParametrization = std::unordered_map<ttk::rpd::Edge, double, boost::hash<ttk::rpd::Edge>>
 

Functions

 vtkStandardNewMacro (ttkRipsPersistenceGenerators)
 
void GeneratorsToVTU (vtkUnstructuredGrid *vtu, vtkPoints *inputPoints, const std::vector< ttk::rpd::Generator1 > &generators1, bool parametrize)
 Converts a vector of 1-dimensional persistent generators in the ttk::rpd::Generator format to the VTK Unstructured Grid format.
 

Typedef Documentation

◆ EdgeParametrization

using EdgeParametrization = std::unordered_map<ttk::rpd::Edge, double, boost::hash<ttk::rpd::Edge>>

Definition at line 13 of file ttkRipsPersistenceGenerators.cpp.

Function Documentation

◆ GeneratorsToVTU()

void GeneratorsToVTU ( vtkUnstructuredGrid * vtu,
vtkPoints * inputPoints,
const std::vector< ttk::rpd::Generator1 > & generators1,
bool parametrize = true )

Converts a vector of 1-dimensional persistent generators in the ttk::rpd::Generator format to the VTK Unstructured Grid format.

Parameters
[out]vtuOutput VTK Unstructured Grid
[in]inputPointsvtkPoints used to embed the generators
[in]generators1Vector of ttk::rpd::Generator1 to be converted
[in]parametrizeWhether to parametrize the generators

Definition at line 39 of file ttkRipsPersistenceGenerators.cpp.

◆ vtkStandardNewMacro()

vtkStandardNewMacro ( ttkRipsPersistenceGenerators )