VTK
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
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:159
create a sector of a disk
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.