TTK
Loading...
Searching...
No Matches
ttkPersistenceDiagramDictionaryDecoding.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#include "ttkMacros.h"
25#include <vtkInformation.h>
26#include <vtkInformationVector.h>
27#include <vtkMultiBlockDataSet.h>
28#include <vtkTable.h>
29#include <vtkUnstructuredGrid.h>
30// VTK Module
31#include <ttkPersistenceDiagramDictionaryDecodingModule.h>
32
33// VTK Includes
34#include <ttkAlgorithm.h>
35
36// TTK Base Includes
38
39class TTKPERSISTENCEDIAGRAMDICTIONARYDECODING_EXPORT
41 : public ttkAlgorithm,
43
44private:
45public:
48
49 vtkGetMacro(Spacing, double);
50 vtkSetMacro(Spacing, double);
51
52 vtkGetMacro(ShowAtoms, int);
53 vtkSetMacro(ShowAtoms, int);
54
55 vtkGetMacro(ProgBarycenter, int);
56 vtkSetMacro(ProgBarycenter, int);
57
59 vtkGetEnumMacro(ProjMet, BACKEND);
60
61protected:
64
65 int FillInputPortInformation(int port, vtkInformation *info) override;
66
67 int FillOutputPortInformation(int port, vtkInformation *info) override;
68
69 void GetOutputDiagrams(vtkMultiBlockDataSet *output,
70 vtkTable *output_coordinates,
71 const std::vector<ttk::DiagramType> &diags,
72 std::vector<ttk::DiagramType> &atoms,
73 vtkTable *weights_vtk,
74 const std::vector<std::vector<double>> &weights,
75 const double spacing,
76 const double maxPersistence) const;
77
78 // double GetPersistenceOfGlobalPair(const ttk::DiagramType &diagram) const;
79
80 int RequestData(vtkInformation *request,
81 vtkInformationVector **inputVector,
82 vtkInformationVector *outputVector) override;
83
84 double Spacing{};
85 int ShowAtoms{1};
86 bool ComputePoints{false};
87};
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
~ttkPersistenceDiagramDictionaryDecoding() override=default
void GetOutputDiagrams(vtkMultiBlockDataSet *output, vtkTable *output_coordinates, const std::vector< ttk::DiagramType > &diags, std::vector< ttk::DiagramType > &atoms, vtkTable *weights_vtk, const std::vector< std::vector< double > > &weights, const double spacing, const double maxPersistence) const
static ttkPersistenceDiagramDictionaryDecoding * New()
TTK processing package for the computation of a Dictionary of Persistence Diagrams and barycentric we...
#define ttkSetEnumMacro(name, enumType)
Definition ttkMacros.h:38