TTK
Loading...
Searching...
No Matches
ttkRangePolygon.h
Go to the documentation of this file.
1
53
54#pragma once
55
56// VTK includes -- to adapt
57
58// VTK Module
59#include <ttkRangePolygonModule.h>
60
61// ttk code includes
62#include <ScalarFieldSmoother.h>
63#include <ttkAlgorithm.h>
64
65class vtkUnstructuredGrid;
66
67class TTKRANGEPOLYGON_EXPORT ttkRangePolygon : public ttkAlgorithm {
68
69public:
71
73
74 vtkGetMacro(ClosedLoop, bool);
75 vtkSetMacro(ClosedLoop, bool);
76
77 vtkGetMacro(NumberOfIterations, int);
78 vtkSetMacro(NumberOfIterations, int);
79
80 // int FillOutputPortInformation(int port, vtkInformation *info) override {
81 // info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkUnstructuredGrid");
82 // return 1;
83 // }
84
85protected:
87
88 ~ttkRangePolygon() override;
89
90 int FillInputPortInformation(int port, vtkInformation *info) override;
91
92 int FillOutputPortInformation(int port, vtkInformation *info) override;
93
94 int RequestData(vtkInformation *request,
95 vtkInformationVector **inputVector,
96 vtkInformationVector *outputVector) override;
97
98private:
99 bool ClosedLoop{false};
100 int NumberOfIterations{0};
101
102 int processPoints(vtkUnstructuredGrid *input, vtkUnstructuredGrid *output);
103
104 int processTriangles(vtkUnstructuredGrid *input, vtkUnstructuredGrid *output);
105};
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 which produces a valid range polygon for fiber surface extraction.
~ttkRangePolygon() override
static ttkRangePolygon * New()