TTK
Loading...
Searching...
No Matches
ttkBarycentricSubdivision.h
Go to the documentation of this file.
1
21#pragma once
22
23// VTK Module
24#include <ttkBarycentricSubdivisionModule.h>
25
26// TTK code includes
28#include <ttkAlgorithm.h>
29
30class vtkUnstructuredGrid;
31
32template <typename T>
33class vtkSmartPointer;
34
35class TTKBARYCENTRICSUBDIVISION_EXPORT ttkBarycentricSubdivision
36 : public ttkAlgorithm,
38
39public:
41 vtkGetMacro(SubdivisionLevel, unsigned int);
42 vtkSetMacro(SubdivisionLevel, unsigned int);
43
45
46protected:
48
49 int FillInputPortInformation(int port, vtkInformation *info) override;
50 int FillOutputPortInformation(int port, vtkInformation *info) override;
51 int RequestData(vtkInformation *request,
52 vtkInformationVector **inputVector,
53 vtkInformationVector *outputVector) override;
54
59 AllocateScalarField(vtkDataArray *const inputScalarField,
60 int ntuples) const;
61
62 int InterpolateScalarFields(vtkDataSet *const input,
63 vtkUnstructuredGrid *const output,
64 ttk::Triangulation &inputTriangulation) const;
65
66private:
67 // number of subdivisions
68 unsigned int SubdivisionLevel{1};
69};
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 that wraps the ttk::BarycentricSubdivision processing package.
static ttkBarycentricSubdivision * New()
Subdivise a triangulation according to triangle barycenter.
Triangulation is a class that provides time and memory efficient traversal methods on triangulations ...