VTK  9.2.6
vtkArcSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArcSource.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 vtkArcSource_h
43#define vtkArcSource_h
44
45#include "vtkFiltersSourcesModule.h" // For export macro
47
48class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
49{
50public:
51 static vtkArcSource* New();
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetVector3Macro(Point1, double);
60 vtkGetVectorMacro(Point1, double, 3);
62
64
67 vtkSetVector3Macro(Point2, double);
68 vtkGetVectorMacro(Point2, double, 3);
70
72
77 vtkSetVector3Macro(Center, double);
78 vtkGetVectorMacro(Center, double, 3);
80
82
87 vtkSetVector3Macro(Normal, double);
88 vtkGetVectorMacro(Normal, double, 3);
90
92
97 vtkSetVector3Macro(PolarVector, double);
98 vtkGetVectorMacro(PolarVector, double, 3);
100
102
108 vtkSetClampMacro(Angle, double, -360.0, 360.0);
109 vtkGetMacro(Angle, double);
111
113
118 vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
119 vtkGetMacro(Resolution, int);
121
123
129 vtkSetMacro(Negative, bool);
130 vtkGetMacro(Negative, bool);
131 vtkBooleanMacro(Negative, bool);
133
135
143 vtkSetMacro(UseNormalAndAngle, bool);
144 vtkGetMacro(UseNormalAndAngle, bool);
145 vtkBooleanMacro(UseNormalAndAngle, bool);
147
149
154 vtkSetMacro(OutputPointsPrecision, int);
155 vtkGetMacro(OutputPointsPrecision, int);
157
158protected:
159 vtkArcSource(int res = 1);
160 ~vtkArcSource() override = default;
161
164 double Point1[3];
165 double Point2[3];
166 double Center[3];
167 double Normal[3];
168 double PolarVector[3];
169 double Angle;
174
175private:
176 vtkArcSource(const vtkArcSource&) = delete;
177 void operator=(const vtkArcSource&) = delete;
178};
179
180#endif
create a circular arc
Definition: vtkArcSource.h:49
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
bool UseNormalAndAngle
Definition: vtkArcSource.h:172
vtkArcSource(int res=1)
static vtkArcSource * New()
~vtkArcSource() override=default
int OutputPointsPrecision
Definition: vtkArcSource.h:173
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:40
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