VTK  9.2.20221001
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
46 #include "vtkPolyDataAlgorithm.h"
47 
48 VTK_ABI_NAMESPACE_BEGIN
49 class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
50 {
51 public:
52  static vtkArcSource* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
60  vtkSetVector3Macro(Point1, double);
61  vtkGetVectorMacro(Point1, double, 3);
63 
65 
68  vtkSetVector3Macro(Point2, double);
69  vtkGetVectorMacro(Point2, double, 3);
71 
73 
78  vtkSetVector3Macro(Center, double);
79  vtkGetVectorMacro(Center, double, 3);
81 
83 
88  vtkSetVector3Macro(Normal, double);
89  vtkGetVectorMacro(Normal, double, 3);
91 
93 
98  vtkSetVector3Macro(PolarVector, double);
99  vtkGetVectorMacro(PolarVector, double, 3);
101 
103 
109  vtkSetClampMacro(Angle, double, -360.0, 360.0);
110  vtkGetMacro(Angle, double);
112 
114 
119  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
120  vtkGetMacro(Resolution, int);
122 
124 
130  vtkSetMacro(Negative, bool);
131  vtkGetMacro(Negative, bool);
132  vtkBooleanMacro(Negative, bool);
134 
136 
144  vtkSetMacro(UseNormalAndAngle, bool);
145  vtkGetMacro(UseNormalAndAngle, bool);
146  vtkBooleanMacro(UseNormalAndAngle, bool);
148 
150 
155  vtkSetMacro(OutputPointsPrecision, int);
156  vtkGetMacro(OutputPointsPrecision, int);
158 
159 protected:
160  vtkArcSource(int res = 1);
161  ~vtkArcSource() override = default;
162 
165  double Point1[3];
166  double Point2[3];
167  double Center[3];
168  double Normal[3];
169  double PolarVector[3];
170  double Angle;
172  bool Negative;
175 
176 private:
177  vtkArcSource(const vtkArcSource&) = delete;
178  void operator=(const vtkArcSource&) = delete;
179 };
180 
181 VTK_ABI_NAMESPACE_END
182 #endif
create a circular arc
Definition: vtkArcSource.h:50
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
bool UseNormalAndAngle
Definition: vtkArcSource.h:173
vtkArcSource(int res=1)
static vtkArcSource * New()
~vtkArcSource() override=default
int OutputPointsPrecision
Definition: vtkArcSource.h:174
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:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ Normal
Definition: vtkX3D.h:57
#define VTK_INT_MAX
Definition: vtkType.h:155