VTK
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 class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
49 {
50 public:
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 
158 protected:
159  vtkArcSource(int res=1);
160  ~vtkArcSource() override {}
161 
164  double Point1[3];
165  double Point2[3];
166  double Center[3];
167  double Normal[3];
168  double PolarVector[3];
169  double Angle;
171  bool Negative;
174 
175 private:
176  vtkArcSource(const vtkArcSource&) = delete;
177  void operator=(const vtkArcSource&) = delete;
178 };
179 
180 #endif
~vtkArcSource() override
Definition: vtkArcSource.h:160
int OutputPointsPrecision
Definition: vtkArcSource.h:173
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:159
bool UseNormalAndAngle
Definition: vtkArcSource.h:172
create a circular arc
Definition: vtkArcSource.h:48
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.