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
35
36class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
37{
38public:
39 static vtkDiskSource *New();
41 void PrintSelf(ostream& os, vtkIndent indent) VTK_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
85protected:
87 ~vtkDiskSource() VTK_OVERRIDE {}
88
95
96private:
97 vtkDiskSource(const vtkDiskSource&) VTK_DELETE_FUNCTION;
98 void operator=(const vtkDiskSource&) VTK_DELETE_FUNCTION;
99};
100
101#endif
create a disk with hole in center
Definition: vtkDiskSource.h:37
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
Definition: vtkDiskSource.h:94
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double InnerRadius
Definition: vtkDiskSource.h:90
int CircumferentialResolution
Definition: vtkDiskSource.h:93
static vtkDiskSource * New()
double OuterRadius
Definition: vtkDiskSource.h:91
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
#define VTK_INT_MAX
Definition: vtkType.h:153