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 =========================================================================*/
35 #ifndef vtkArcSource_h
36 #define vtkArcSource_h
37 
38 #include "vtkFiltersSourcesModule.h" // For export macro
39 #include "vtkPolyDataAlgorithm.h"
40 
42 {
43 public:
44  static vtkArcSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetVector3Macro(Point1,double);
51  vtkGetVectorMacro(Point1,double,3);
53 
55 
56  vtkSetVector3Macro(Point2,double);
57  vtkGetVectorMacro(Point2,double,3);
59 
61 
64  vtkSetVector3Macro(Center,double);
65  vtkGetVectorMacro(Center,double,3);
67 
69 
74 
76 
78  vtkSetVector3Macro(PolarVector,double);
79  vtkGetVectorMacro(PolarVector,double,3);
81 
83 
85  vtkSetClampMacro(Angle,double,-360.0,360.0);
86  vtkGetMacro(Angle,double);
88 
90 
92  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
93  vtkGetMacro(Resolution,int);
95 
97 
99  vtkSetMacro(Negative, bool);
100  vtkGetMacro(Negative, bool);
101  vtkBooleanMacro(Negative, bool);
103 
105 
109  vtkSetMacro(UseNormalAndAngle, bool);
110  vtkGetMacro(UseNormalAndAngle, bool);
111  vtkBooleanMacro(UseNormalAndAngle, bool);
113 
115 
119  vtkSetMacro(OutputPointsPrecision,int);
120  vtkGetMacro(OutputPointsPrecision,int);
122 
123 protected:
126 
129  double Point1[3];
130  double Point2[3];
131  double Center[3];
132  double Normal[3];
133  double PolarVector[3];
134  double Angle;
136  bool Negative;
139 
140 private:
141  vtkArcSource(const vtkArcSource&); // Not implemented.
142  void operator=(const vtkArcSource&); // Not implemented.
143 };
144 
145 #endif
146 
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkArcSource::UseNormalAndAngle
bool UseNormalAndAngle
Definition: vtkArcSource.h:137
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:45
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkArcSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkArcSource
create an arc between two end points
Definition: vtkArcSource.h:42
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkgl::res
GLuint res
Definition: vtkgl.h:16902
vtkArcSource::Resolution
int Resolution
Definition: vtkArcSource.h:135
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkArcSource::New
static vtkArcSource * New()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkArcSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkArcSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkArcSource.h:138
vtkArcSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkArcSource::Negative
bool Negative
Definition: vtkArcSource.h:136
vtkArcSource::Angle
double Angle
Definition: vtkArcSource.h:134
vtkArcSource::~vtkArcSource
~vtkArcSource()
Definition: vtkArcSource.h:125
vtkArcSource::vtkArcSource
vtkArcSource(int res=1)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44