VTK  9.1.0
vtkEllipseArcSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkEllipseArcSource.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 vtkEllipseArcSource_h
31#define vtkEllipseArcSource_h
32
33#include "vtkFiltersSourcesModule.h" // For export macro
35
36class VTKFILTERSSOURCES_EXPORT vtkEllipseArcSource : public vtkPolyDataAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
48 vtkSetVector3Macro(Center, double);
49 vtkGetVectorMacro(Center, double, 3);
51
53
57 vtkSetVector3Macro(Normal, double);
58 vtkGetVectorMacro(Normal, double, 3);
60
62
67 vtkSetVector3Macro(MajorRadiusVector, double);
68 vtkGetVectorMacro(MajorRadiusVector, double, 3);
70
72
76 vtkSetClampMacro(StartAngle, double, -360.0, 360.0);
77 vtkGetMacro(StartAngle, double);
79
81
85 vtkSetClampMacro(SegmentAngle, double, 0.0, 360.0);
86 vtkGetMacro(SegmentAngle, double);
88
90
95 vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
96 vtkGetMacro(Resolution, int);
98
100
104 vtkSetMacro(Close, bool);
105 vtkGetMacro(Close, bool);
106 vtkBooleanMacro(Close, bool);
108
110
116 vtkSetMacro(OutputPointsPrecision, int);
117 vtkGetMacro(OutputPointsPrecision, int);
119
121
126 vtkSetClampMacro(Ratio, double, 0.001, 100.0);
127 vtkGetMacro(Ratio, double);
129
130protected:
132 ~vtkEllipseArcSource() override = default;
133
135
136 double Center[3];
137 double Normal[3];
138 double MajorRadiusVector[3];
142 double Ratio;
143 bool Close;
145
146private:
148 void operator=(const vtkEllipseArcSource&) = delete;
149};
150
151#endif
create an elliptical arc
~vtkEllipseArcSource() override=default
static vtkEllipseArcSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
#define VTK_INT_MAX
Definition: vtkType.h:155