VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
29 #ifndef __vtkDiskSource_h
30 #define __vtkDiskSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkDiskSource *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetClampMacro(InnerRadius,double,0.0,VTK_DOUBLE_MAX)
45  vtkGetMacro(InnerRadius,double);
47 
49 
50  vtkSetClampMacro(OuterRadius,double,0.0,VTK_DOUBLE_MAX)
51  vtkGetMacro(OuterRadius,double);
53 
55 
56  vtkSetClampMacro(RadialResolution,int,1,VTK_INT_MAX)
57  vtkGetMacro(RadialResolution,int);
59 
61 
62  vtkSetClampMacro(CircumferentialResolution,int,3,VTK_INT_MAX)
63  vtkGetMacro(CircumferentialResolution,int);
65 
66 protected:
67  vtkDiskSource();
68  ~vtkDiskSource() {};
69 
70  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
71  double InnerRadius;
72  double OuterRadius;
75 
76 private:
77  vtkDiskSource(const vtkDiskSource&); // Not implemented.
78  void operator=(const vtkDiskSource&); // Not implemented.
79 };
80 
81 #endif
int CircumferentialResolution
Definition: vtkDiskSource.h:74
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
double InnerRadius
Definition: vtkDiskSource.h:71
Superclass for algorithms that produce only polydata as output.
double OuterRadius
Definition: vtkDiskSource.h:72
create a disk with hole in center
Definition: vtkDiskSource.h:35