VTK  9.1.0
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=========================================================================*/
86#ifndef vtkDiskSource_h
87#define vtkDiskSource_h
88
89#include "vtkFiltersSourcesModule.h" // For export macro
91
92class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
93{
94public:
95 static vtkDiskSource* New();
97 void PrintSelf(ostream& os, vtkIndent indent) override;
98
100
103 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
104 vtkGetMacro(InnerRadius, double);
106
108
111 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
112 vtkGetMacro(OuterRadius, double);
114
116
119 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
120 vtkGetMacro(RadialResolution, int);
122
124
127 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
128 vtkGetMacro(CircumferentialResolution, int);
130
132
137 vtkSetMacro(OutputPointsPrecision, int);
138 vtkGetMacro(OutputPointsPrecision, int);
140
141protected:
143 ~vtkDiskSource() override = default;
144
151
152private:
153 vtkDiskSource(const vtkDiskSource&) = delete;
154 void operator=(const vtkDiskSource&) = delete;
155};
156
157#endif
create a disk with hole in center
Definition: vtkDiskSource.h:93
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
~vtkDiskSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double InnerRadius
int CircumferentialResolution
static vtkDiskSource * New()
double OuterRadius
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155