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 =========================================================================*/
29 #ifndef vtkDiskSource_h
30 #define vtkDiskSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
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 
67 
71  vtkSetMacro(OutputPointsPrecision,int);
72  vtkGetMacro(OutputPointsPrecision,int);
74 
75 protected:
76  vtkDiskSource();
77  ~vtkDiskSource() {}
78 
80  double InnerRadius;
81  double OuterRadius;
85 
86 private:
87  vtkDiskSource(const vtkDiskSource&); // Not implemented.
88  void operator=(const vtkDiskSource&); // Not implemented.
89 };
90 
91 #endif
int CircumferentialResolution
Definition: vtkDiskSource.h:83
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
int OutputPointsPrecision
Definition: vtkDiskSource.h:84
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
double InnerRadius
Definition: vtkDiskSource.h:80
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
double OuterRadius
Definition: vtkDiskSource.h:81
create a disk with hole in center
Definition: vtkDiskSource.h:35
Store zero or more vtkInformation instances.