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=========================================================================*/
42#ifndef vtkDiskSource_h
43#define vtkDiskSource_h
44
45#include "vtkFiltersSourcesModule.h" // For export macro
47
48class vtkTransform;
49
50class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
51{
52public:
54
58 static vtkDiskSource* New();
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64
67 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
68 vtkGetMacro(InnerRadius, double);
70
72
75 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
76 vtkGetMacro(OuterRadius, double);
78
80
83 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
84 vtkGetMacro(RadialResolution, int);
86
88
91 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
92 vtkGetMacro(CircumferentialResolution, int);
94
96
99 vtkSetVector3Macro(Center, double);
100 vtkGetVectorMacro(Center, double, 3);
102
104
107 vtkSetVector3Macro(Normal, double);
108 vtkGetVectorMacro(Normal, double, 3);
110
112
117 vtkSetMacro(OutputPointsPrecision, int);
118 vtkGetMacro(OutputPointsPrecision, int);
120
121protected:
123 ~vtkDiskSource() override = default;
124
129 double Center[3];
130 double Normal[3];
134
135private:
136 vtkDiskSource(const vtkDiskSource&) = delete;
137 void operator=(const vtkDiskSource&) = delete;
138};
139
140#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:49
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