VTK
vtkDiskSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDiskSource.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 =========================================================================*/
30 #ifndef vtkDiskSource_h
31 #define vtkDiskSource_h
32 
33 #include "vtkFiltersSourcesModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
37 {
38 public:
39  static vtkDiskSource *New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetClampMacro(InnerRadius,double,0.0,VTK_DOUBLE_MAX)
48  vtkGetMacro(InnerRadius,double);
50 
52 
55  vtkSetClampMacro(OuterRadius,double,0.0,VTK_DOUBLE_MAX)
56  vtkGetMacro(OuterRadius,double);
58 
60 
63  vtkSetClampMacro(RadialResolution,int,1,VTK_INT_MAX)
64  vtkGetMacro(RadialResolution,int);
66 
68 
71  vtkSetClampMacro(CircumferentialResolution,int,3,VTK_INT_MAX)
72  vtkGetMacro(CircumferentialResolution,int);
74 
76 
81  vtkSetMacro(OutputPointsPrecision,int);
82  vtkGetMacro(OutputPointsPrecision,int);
84 
85 protected:
86  vtkDiskSource();
87  ~vtkDiskSource() override {}
88 
90  double InnerRadius;
91  double OuterRadius;
95 
96 private:
97  vtkDiskSource(const vtkDiskSource&) = delete;
98  void operator=(const vtkDiskSource&) = delete;
99 };
100 
101 #endif
int CircumferentialResolution
Definition: vtkDiskSource.h:93
#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
int OutputPointsPrecision
Definition: vtkDiskSource.h:94
static vtkPolyDataAlgorithm * New()
double InnerRadius
Definition: vtkDiskSource.h:90
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
double OuterRadius
Definition: vtkDiskSource.h:91
create a disk with hole in center
Definition: vtkDiskSource.h:36
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.