VTK  9.1.0
vtkSectorSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkSectorSource.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
27#ifndef vtkSectorSource_h
28#define vtkSectorSource_h
29
30#include "vtkFiltersModelingModule.h" // For export macro
32
33class VTKFILTERSMODELING_EXPORT vtkSectorSource : public vtkPolyDataAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
45 vtkGetMacro(InnerRadius, double);
47
49
52 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
53 vtkGetMacro(OuterRadius, double);
55
57
60 vtkSetClampMacro(ZCoord, double, 0.0, VTK_DOUBLE_MAX);
61 vtkGetMacro(ZCoord, double);
63
65
68 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
69 vtkGetMacro(RadialResolution, int);
71
73
76 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
77 vtkGetMacro(CircumferentialResolution, int);
79
81
84 vtkSetClampMacro(StartAngle, double, 0.0, VTK_DOUBLE_MAX);
85 vtkGetMacro(StartAngle, double);
87
89
92 vtkSetClampMacro(EndAngle, double, 0.0, VTK_DOUBLE_MAX);
93 vtkGetMacro(EndAngle, double);
95
96protected:
98 ~vtkSectorSource() override = default;
99
103 double ZCoord;
107 double EndAngle;
108
109private:
110 vtkSectorSource(const vtkSectorSource&) = delete;
111 void operator=(const vtkSectorSource&) = delete;
112};
113
114#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create a sector of a disk
static vtkSectorSource * New()
~vtkSectorSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155