VTK  9.1.0
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=========================================================================*/
39#ifndef vtkArcSource_h
40#define vtkArcSource_h
41
42#include "vtkFiltersSourcesModule.h" // For export macro
44
45class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
46{
47public:
48 static vtkArcSource* New();
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 vtkSetVector3Macro(Point1, double);
57 vtkGetVectorMacro(Point1, double, 3);
59
61
64 vtkSetVector3Macro(Point2, double);
65 vtkGetVectorMacro(Point2, double, 3);
67
69
74 vtkSetVector3Macro(Center, double);
75 vtkGetVectorMacro(Center, double, 3);
77
79
84 vtkSetVector3Macro(Normal, double);
85 vtkGetVectorMacro(Normal, double, 3);
87
89
94 vtkSetVector3Macro(PolarVector, double);
95 vtkGetVectorMacro(PolarVector, double, 3);
97
99
105 vtkSetClampMacro(Angle, double, -360.0, 360.0);
106 vtkGetMacro(Angle, double);
108
110
115 vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
116 vtkGetMacro(Resolution, int);
118
120
126 vtkSetMacro(Negative, bool);
127 vtkGetMacro(Negative, bool);
128 vtkBooleanMacro(Negative, bool);
130
132
140 vtkSetMacro(UseNormalAndAngle, bool);
141 vtkGetMacro(UseNormalAndAngle, bool);
142 vtkBooleanMacro(UseNormalAndAngle, bool);
144
146
151 vtkSetMacro(OutputPointsPrecision, int);
152 vtkGetMacro(OutputPointsPrecision, int);
154
155protected:
156 vtkArcSource(int res = 1);
157 ~vtkArcSource() override = default;
158
161 double Point1[3];
162 double Point2[3];
163 double Center[3];
164 double Normal[3];
165 double PolarVector[3];
166 double Angle;
171
172private:
173 vtkArcSource(const vtkArcSource&) = delete;
174 void operator=(const vtkArcSource&) = delete;
175};
176
177#endif
create a circular arc
Definition: vtkArcSource.h:46
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
bool UseNormalAndAngle
Definition: vtkArcSource.h:169
vtkArcSource(int res=1)
static vtkArcSource * New()
~vtkArcSource() override=default
int OutputPointsPrecision
Definition: vtkArcSource.h:170
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: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