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) 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() override {}
158 
161  double Point1[3];
162  double Point2[3];
163  double Center[3];
164  double Normal[3];
165  double PolarVector[3];
166  double Angle;
168  bool Negative;
171 
172 private:
173  vtkArcSource(const vtkArcSource&) = delete;
174  void operator=(const vtkArcSource&) = delete;
175 };
176 
177 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkArcSource::UseNormalAndAngle
bool UseNormalAndAngle
Definition: vtkArcSource.h:169
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Normal
Definition: vtkX3D.h:45
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkArcSource
create a circular arc
Definition: vtkArcSource.h:45
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkArcSource::Resolution
int Resolution
Definition: vtkArcSource.h:167
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkArcSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkArcSource.h:170
vtkArcSource::Negative
bool Negative
Definition: vtkArcSource.h:168
vtkArcSource::Angle
double Angle
Definition: vtkArcSource.h:166
vtkArcSource::~vtkArcSource
~vtkArcSource() override
Definition: vtkArcSource.h:157
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41