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 =========================================================================*/
36 #ifndef vtkArcSource_h
37 #define vtkArcSource_h
38 
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
43 {
44 public:
45  static vtkArcSource *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkSetVector3Macro(Point1,double);
52  vtkGetVectorMacro(Point1,double,3);
54 
56 
57  vtkSetVector3Macro(Point2,double);
58  vtkGetVectorMacro(Point2,double,3);
60 
62 
65  vtkSetVector3Macro(Center,double);
66  vtkGetVectorMacro(Center,double,3);
68 
70 
73  vtkSetVector3Macro(Normal,double);
74  vtkGetVectorMacro(Normal,double,3);
76 
78 
81  vtkSetVector3Macro(PolarVector,double);
82  vtkGetVectorMacro(PolarVector,double,3);
84 
86 
90  vtkSetClampMacro(Angle,double,-360.0,360.0);
91  vtkGetMacro(Angle,double);
93 
95 
98  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
99  vtkGetMacro(Resolution,int);
101 
103 
107  vtkSetMacro(Negative, bool);
108  vtkGetMacro(Negative, bool);
109  vtkBooleanMacro(Negative, bool);
111 
113 
118  vtkSetMacro(UseNormalAndAngle, bool);
119  vtkGetMacro(UseNormalAndAngle, bool);
120  vtkBooleanMacro(UseNormalAndAngle, bool);
122 
124 
128  vtkSetMacro(OutputPointsPrecision,int);
129  vtkGetMacro(OutputPointsPrecision,int);
131 
132 protected:
133  vtkArcSource(int res=1);
135 
138  double Point1[3];
139  double Point2[3];
140  double Center[3];
141  double Normal[3];
142  double PolarVector[3];
143  double Angle;
145  bool Negative;
148 
149 private:
150  vtkArcSource(const vtkArcSource&); // Not implemented.
151  void operator=(const vtkArcSource&); // Not implemented.
152 };
153 
154 #endif
int OutputPointsPrecision
Definition: vtkArcSource.h:147
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:130
bool UseNormalAndAngle
Definition: vtkArcSource.h:146
create a circular arc between two end points
Definition: vtkArcSource.h:42
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.