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 
71  vtkSetVector3Macro(Normal,double);
72  vtkGetVectorMacro(Normal,double,3);
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:
124  vtkArcSource(int res=1);
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 
int OutputPointsPrecision
Definition: vtkArcSource.h:138
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
bool UseNormalAndAngle
Definition: vtkArcSource.h:137
create an arc between two end points
Definition: vtkArcSource.h:41
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.