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=========================================================================*/
36#ifndef vtkDiskSource_h
37#define vtkDiskSource_h
38
39#include "vtkFiltersSourcesModule.h" // For export macro
41
42class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
43{
44public:
45 static vtkDiskSource* New();
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
53 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
54 vtkGetMacro(InnerRadius, double);
56
58
61 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
62 vtkGetMacro(OuterRadius, double);
64
66
69 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
70 vtkGetMacro(RadialResolution, int);
72
74
77 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
78 vtkGetMacro(CircumferentialResolution, int);
80
82
87 vtkSetMacro(OutputPointsPrecision, int);
88 vtkGetMacro(OutputPointsPrecision, int);
90
91protected:
93 ~vtkDiskSource() override = default;
94
101
102private:
103 vtkDiskSource(const vtkDiskSource&) = delete;
104 void operator=(const vtkDiskSource&) = delete;
105};
106
107#endif
create a disk with hole in center
Definition: vtkDiskSource.h:43
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
Definition: vtkDiskSource.h:96
int CircumferentialResolution
Definition: vtkDiskSource.h:99
static vtkDiskSource * New()
double OuterRadius
Definition: vtkDiskSource.h:97
a simple class to control print indentation
Definition: vtkIndent.h:43
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