VTK  9.2.6
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=========================================================================*/
92#ifndef vtkDiskSource_h
93#define vtkDiskSource_h
94
95#include "vtkFiltersSourcesModule.h" // For export macro
97
98class vtkTransform;
99
100class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
101{
102public:
104
110 void PrintSelf(ostream& os, vtkIndent indent) override;
112
114
117 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
118 vtkGetMacro(InnerRadius, double);
120
122
125 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
126 vtkGetMacro(OuterRadius, double);
128
130
133 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
134 vtkGetMacro(RadialResolution, int);
136
138
141 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
142 vtkGetMacro(CircumferentialResolution, int);
144
146
149 vtkSetVector3Macro(Center, double);
150 vtkGetVectorMacro(Center, double, 3);
152
154
157 vtkSetVector3Macro(Normal, double);
158 vtkGetVectorMacro(Normal, double, 3);
160
162
167 vtkSetMacro(OutputPointsPrecision, int);
168 vtkGetMacro(OutputPointsPrecision, int);
170
171protected:
173 ~vtkDiskSource() override = default;
174
179 double Center[3];
180 double Normal[3];
184
185private:
186 vtkDiskSource(const vtkDiskSource&) = delete;
187 void operator=(const vtkDiskSource&) = delete;
188};
189
190#endif
create a disk with hole in center
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate the class, obtain type information, and print the state of the object...
int OutputPointsPrecision
~vtkDiskSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double InnerRadius
vtkSmartPointer< vtkTransform > GetTransformation()
int CircumferentialResolution
static vtkDiskSource * New()
Standard methods to instantiate the class, obtain type information, and print the state of the object...
double OuterRadius
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:170
@ Normal
Definition: vtkX3D.h:51
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155