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=========================================================================*/
30#ifndef vtkDiskSource_h
31#define vtkDiskSource_h
32
33#include "vtkFiltersSourcesModule.h" // For export macro
35
36class vtkTransform;
37
38class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
39{
40public:
42
46 static vtkDiskSource* New();
48 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
55 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
56 vtkGetMacro(InnerRadius, double);
58
60
63 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
64 vtkGetMacro(OuterRadius, double);
66
68
71 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
72 vtkGetMacro(RadialResolution, int);
74
76
79 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
80 vtkGetMacro(CircumferentialResolution, int);
82
84
87 vtkSetVector3Macro(Center, double);
88 vtkGetVectorMacro(Center, double, 3);
90
92
95 vtkSetVector3Macro(Normal, double);
96 vtkGetVectorMacro(Normal, double, 3);
98
100
105 vtkSetMacro(OutputPointsPrecision, int);
106 vtkGetMacro(OutputPointsPrecision, int);
108
109protected:
111 ~vtkDiskSource() override = default;
112
117 double Center[3];
118 double Normal[3];
122
123private:
124 vtkDiskSource(const vtkDiskSource&) = delete;
125 void operator=(const vtkDiskSource&) = delete;
126};
127
128#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...
~vtkDiskSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSmartPointer< vtkTransform > GetTransformation()
int CircumferentialResolution
static vtkDiskSource * New()
Standard methods to instantiate the class, obtain type information, and print the state of the object...
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
Hold a reference to a vtkObjectBase instance.
describes linear transformations via a 4x4 matrix
#define VTK_DOUBLE_MAX
Definition vtkType.h:165
#define VTK_INT_MAX
Definition vtkType.h:155