TTK
Loading...
Searching...
No Matches
ttkSphereFromPoint.h
Go to the documentation of this file.
1
17
18#pragma once
19
20// VTK includes
21
22// VTK Module
23#include <ttkSphereFromPointModule.h>
24
25// ttk code includes
26#include <ttkAlgorithm.h>
27
28class vtkAppendPolyData;
29class vtkSphereSource;
30
31class TTKSPHEREFROMPOINT_EXPORT ttkSphereFromPoint : public ttkAlgorithm {
32
33public:
35
36 // macros
38
39 vtkSetMacro(EndPhi, int);
40
41 vtkSetMacro(EndTheta, int);
42
43 vtkSetMacro(PhiResolution, int);
44
45 vtkSetMacro(Radius, double);
46
47 vtkSetMacro(StartPhi, int);
48
49 vtkSetMacro(StartTheta, int);
50
51 vtkSetMacro(ThetaResolution, int);
52
53 // /// Over-ride the input data type to vtkDataSet.
54 // int FillOutputPortInformation(int port, vtkInformation *info) override {
55 // info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkPolyData");
56 // return 1;
57 // }
58
59protected:
61
62 ~ttkSphereFromPoint() override;
63
64 int FillInputPortInformation(int port, vtkInformation *info) override;
65
66 int FillOutputPortInformation(int port, vtkInformation *info) override;
67
68 int RequestData(vtkInformation *request,
69 vtkInformationVector **inputVector,
70 vtkInformationVector *outputVector) override;
71
72private:
73 int ThetaResolution{20}, StartTheta{0}, EndTheta{360}, PhiResolution{20},
74 StartPhi{0}, EndPhi{180};
75 double Radius{0.5};
76
77 vtkAppendPolyData *masterAppender_;
78 std::vector<vtkAppendPolyData *> appenderList_;
79 std::vector<vtkSphereSource *> sphereList_;
80 std::vector<std::vector<vtkDataArray *>> dataArrayList_;
81};
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 produces sphere-only glyphs.
static ttkSphereFromPoint * New()