VTK  9.0.1
vtkSectorSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkSectorSource.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. 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
31 #include "vtkPolyDataAlgorithm.h"
32 
33 class VTKFILTERSMODELING_EXPORT vtkSectorSource : public vtkPolyDataAlgorithm
34 {
35 public:
36  static vtkSectorSource* New();
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 
96 protected:
98  ~vtkSectorSource() override {}
99 
101  double InnerRadius;
102  double OuterRadius;
103  double ZCoord;
106  double StartAngle;
107  double EndAngle;
108 
109 private:
110  vtkSectorSource(const vtkSectorSource&) = delete;
111  void operator=(const vtkSectorSource&) = delete;
112 };
113 
114 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkSectorSource
create a sector of a disk
Definition: vtkSectorSource.h:33
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSectorSource::OuterRadius
double OuterRadius
Definition: vtkSectorSource.h:102
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSectorSource::CircumferentialResolution
int CircumferentialResolution
Definition: vtkSectorSource.h:105
vtkPolyDataAlgorithm.h
vtkSectorSource::EndAngle
double EndAngle
Definition: vtkSectorSource.h:107
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSectorSource::~vtkSectorSource
~vtkSectorSource() override
Definition: vtkSectorSource.h:98
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkSectorSource::StartAngle
double StartAngle
Definition: vtkSectorSource.h:106
vtkSectorSource::RadialResolution
int RadialResolution
Definition: vtkSectorSource.h:104
vtkSectorSource::ZCoord
double ZCoord
Definition: vtkSectorSource.h:103
vtkSectorSource::InnerRadius
double InnerRadius
Definition: vtkSectorSource.h:101
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41