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 =========================================================================*/
39 #ifndef vtkArcSource_h
40 #define vtkArcSource_h
41 
42 #include "vtkFiltersSourcesModule.h" // For export macro
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
46 {
47 public:
48  static vtkArcSource *New();
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_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 
155 protected:
156  vtkArcSource(int res=1);
157  ~vtkArcSource() VTK_OVERRIDE {}
158 
160  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
161  double Point1[3];
162  double Point2[3];
163  double Center[3];
164  double Normal[3];
165  double PolarVector[3];
166  double Angle;
167  int Resolution;
168  bool Negative;
169  bool UseNormalAndAngle;
170  int OutputPointsPrecision;
171 
172 private:
173  vtkArcSource(const vtkArcSource&) VTK_DELETE_FUNCTION;
174  void operator=(const vtkArcSource&) VTK_DELETE_FUNCTION;
175 };
176 
177 #endif
~vtkArcSource() override
Definition: vtkArcSource.h:157
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:157
create a circular arc
Definition: vtkArcSource.h:45
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.