VTK: Filters/Modeling/vtkSectorSource.h Source File

| VTK 9.3.1

vtkSectorSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkSectorSource_h
16 #define vtkSectorSource_h
17
18 #include "vtkFiltersModelingModule.h" // For export macro
19 #include "vtkPolyDataAlgorithm.h"
20
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKFILTERSMODELING_EXPORT vtkSectorSource : public vtkPolyDataAlgorithm
23 {
24 public:
25 static vtkSectorSource* New();
26 vtkTypeMacro(vtkSectorSource, vtkPolyDataAlgorithm);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
30
33 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
34 vtkGetMacro(InnerRadius, double);
36
38
41 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
42 vtkGetMacro(OuterRadius, double);
44
46
49 vtkSetClampMacro(ZCoord, double, 0.0, VTK_DOUBLE_MAX);
50 vtkGetMacro(ZCoord, double);
52
54
57 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
58 vtkGetMacro(RadialResolution, int);
60
62
65 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
66 vtkGetMacro(CircumferentialResolution, int);
68
70
73 vtkSetClampMacro(StartAngle, double, 0.0, VTK_DOUBLE_MAX);
74 vtkGetMacro(StartAngle, double);
76
78
81 vtkSetClampMacro(EndAngle, double, 0.0, VTK_DOUBLE_MAX);
82 vtkGetMacro(EndAngle, double);
84
85 protected:
86 vtkSectorSource();
87 ~vtkSectorSource() override = default;
88
89 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
90 double InnerRadius;
91 double OuterRadius;
92 double ZCoord;
93 int RadialResolution;
94 int CircumferentialResolution;
95 double StartAngle;
96 double EndAngle;
97
98 private:
99 vtkSectorSource(const vtkSectorSource&) = delete;
100 void operator=(const vtkSectorSource&) = delete;
101 };
102
103 VTK_ABI_NAMESPACE_END
104 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkSectorSource
create a sector of a disk
Definition: vtkSectorSource.h:23
vtkSectorSource::vtkSectorSource
vtkSectorSource()
vtkSectorSource::InnerRadius
double InnerRadius
Definition: vtkSectorSource.h:90
vtkSectorSource::StartAngle
double StartAngle
Definition: vtkSectorSource.h:95
vtkSectorSource::CircumferentialResolution
int CircumferentialResolution
Definition: vtkSectorSource.h:94
vtkSectorSource::EndAngle
double EndAngle
Definition: vtkSectorSource.h:96
vtkSectorSource::New
static vtkSectorSource * New()
vtkSectorSource::~vtkSectorSource
~vtkSectorSource() override=default
vtkSectorSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSectorSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSectorSource::RadialResolution
int RadialResolution
Definition: vtkSectorSource.h:93
vtkSectorSource::ZCoord
double ZCoord
Definition: vtkSectorSource.h:92
vtkSectorSource::OuterRadius
double OuterRadius
Definition: vtkSectorSource.h:91
vtkPolyDataAlgorithm.h
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:144