TTK
Loading...
Searching...
No Matches
ttkPersistentGenerators.h
Go to the documentation of this file.
1
41
42#pragma once
43
44// VTK includes
45#include <vtkDataArray.h>
46#include <vtkPolyData.h>
47
48// VTK Module
49#include <ttkPersistentGeneratorsModule.h>
50
51// ttk code includes
53#include <ttkAlgorithm.h>
54#include <ttkMacros.h>
55
56class TTKPERSISTENTGENERATORS_EXPORT ttkPersistentGenerators
57 : public ttkAlgorithm,
59
60public:
62
64
65 vtkSetMacro(PruneHandlesGenerators, bool);
66 vtkGetMacro(PruneHandlesGenerators, bool);
67
68 vtkSetMacro(ForceInputOffsetScalarField, bool);
69 vtkGetMacro(ForceInputOffsetScalarField, bool);
70
71protected:
73
74 int RequestData(vtkInformation *request,
75 vtkInformationVector **inputVector,
76 vtkInformationVector *outputVector) override;
77
78 int FillInputPortInformation(int port, vtkInformation *info) override;
79 int FillOutputPortInformation(int port, vtkInformation *info) override;
80
81private:
82 template <typename triangulationType>
83 int dispatch(vtkPolyData *output,
84 vtkDataArray *const inputScalarsArray,
85 const SimplexId *const inputOrder,
86 const triangulationType &triangulation);
87
88 bool ForceInputOffsetScalarField{false};
89};
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 for the computation of persistent generators.
static ttkPersistentGenerators * New()
TTK PersistentGenerators processing package.