VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
32 #ifndef __vtkArcSource_h
33 #define __vtkArcSource_h
34 
35 #include "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class VTKFILTERSSOURCES_EXPORT vtkArcSource : public vtkPolyDataAlgorithm
39 {
40 public:
41  static vtkArcSource *New();
42  vtkTypeMacro(vtkArcSource,vtkPolyDataAlgorithm);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetVector3Macro(Point1,double);
48  vtkGetVectorMacro(Point1,double,3);
50 
52 
53  vtkSetVector3Macro(Point2,double);
54  vtkGetVectorMacro(Point2,double,3);
56 
58 
61  vtkSetVector3Macro(Center,double);
62  vtkGetVectorMacro(Center,double,3);
64 
66 
68  vtkSetVector3Macro(Normal,double);
69  vtkGetVectorMacro(Normal,double,3);
71 
73 
75  vtkSetVector3Macro(PolarVector,double);
76  vtkGetVectorMacro(PolarVector,double,3);
78 
80 
82  vtkSetClampMacro(Angle,double,-360.0,360.0);
83  vtkGetMacro(Angle,double);
85 
87 
89  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
90  vtkGetMacro(Resolution,int);
92 
94 
96  vtkSetMacro(Negative, bool);
97  vtkGetMacro(Negative, bool);
98  vtkBooleanMacro(Negative, bool);
100 
102 
106  vtkSetMacro(UseNormalAndAngle, bool);
107  vtkGetMacro(UseNormalAndAngle, bool);
108  vtkBooleanMacro(UseNormalAndAngle, bool);
110 
111 protected:
112  vtkArcSource(int res=1);
114 
115  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
116  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
117  double Point1[3];
118  double Point2[3];
119  double Center[3];
120  double Normal[3];
121  double PolarVector[3];
122  double Angle;
124  bool Negative;
126 
127 private:
128  vtkArcSource(const vtkArcSource&); // Not implemented.
129  void operator=(const vtkArcSource&); // Not implemented.
130 };
131 
132 #endif
133 
bool UseNormalAndAngle
Definition: vtkArcSource.h:125
create an arc between two end points
Definition: vtkArcSource.h:38