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=========================================================================*/
27#ifndef vtkDiskSource_h
28#define vtkDiskSource_h
29
30#include "vtkFiltersSourcesModule.h" // For export macro
32
33class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
34{
35public:
36 static vtkDiskSource* New();
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
45 vtkGetMacro(InnerRadius, double);
47
49
52 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
53 vtkGetMacro(OuterRadius, double);
55
57
60 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
61 vtkGetMacro(RadialResolution, int);
63
65
68 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
69 vtkGetMacro(CircumferentialResolution, int);
71
73
78 vtkSetMacro(OutputPointsPrecision, int);
79 vtkGetMacro(OutputPointsPrecision, int);
81
82protected:
84 ~vtkDiskSource() override = default;
85
92
93private:
94 vtkDiskSource(const vtkDiskSource&) = delete;
95 void operator=(const vtkDiskSource&) = delete;
96};
97
98#endif
create a disk with hole in center
Definition: vtkDiskSource.h:34
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
Definition: vtkDiskSource.h:91
~vtkDiskSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double InnerRadius
Definition: vtkDiskSource.h:87
int CircumferentialResolution
Definition: vtkDiskSource.h:90
static vtkDiskSource * New()
double OuterRadius
Definition: vtkDiskSource.h:88
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.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155