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