VTK  9.0.1
vtkEllipseArcSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEllipseArcSource.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 =========================================================================*/
30 #ifndef vtkEllipseArcSource_h
31 #define vtkEllipseArcSource_h
32 
33 #include "vtkFiltersSourcesModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKFILTERSSOURCES_EXPORT vtkEllipseArcSource : public vtkPolyDataAlgorithm
37 {
38 public:
39  static vtkEllipseArcSource* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  vtkSetVector3Macro(Center, double);
49  vtkGetVectorMacro(Center, double, 3);
51 
53 
57  vtkSetVector3Macro(Normal, double);
58  vtkGetVectorMacro(Normal, double, 3);
60 
62 
67  vtkSetVector3Macro(MajorRadiusVector, double);
68  vtkGetVectorMacro(MajorRadiusVector, double, 3);
70 
72 
76  vtkSetClampMacro(StartAngle, double, -360.0, 360.0);
77  vtkGetMacro(StartAngle, double);
79 
81 
85  vtkSetClampMacro(SegmentAngle, double, 0.0, 360.0);
86  vtkGetMacro(SegmentAngle, double);
88 
90 
95  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
96  vtkGetMacro(Resolution, int);
98 
100 
104  vtkSetMacro(Close, bool);
105  vtkGetMacro(Close, bool);
106  vtkBooleanMacro(Close, bool);
108 
110 
116  vtkSetMacro(OutputPointsPrecision, int);
117  vtkGetMacro(OutputPointsPrecision, int);
119 
121 
126  vtkSetClampMacro(Ratio, double, 0.001, 100.0);
127  vtkGetMacro(Ratio, double);
129 
130 protected:
132  ~vtkEllipseArcSource() override {}
133 
135 
136  double Center[3];
137  double Normal[3];
138  double MajorRadiusVector[3];
139  double StartAngle;
140  double SegmentAngle;
142  double Ratio;
143  bool Close;
145 
146 private:
147  vtkEllipseArcSource(const vtkEllipseArcSource&) = delete;
148  void operator=(const vtkEllipseArcSource&) = delete;
149 };
150 
151 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:51
vtkEllipseArcSource::Resolution
int Resolution
Definition: vtkEllipseArcSource.h:141
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkEllipseArcSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkEllipseArcSource.h:144
vtkEllipseArcSource::~vtkEllipseArcSource
~vtkEllipseArcSource() override
Definition: vtkEllipseArcSource.h:132
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkEllipseArcSource::StartAngle
double StartAngle
Definition: vtkEllipseArcSource.h:139
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkEllipseArcSource::SegmentAngle
double SegmentAngle
Definition: vtkEllipseArcSource.h:140
vtkEllipseArcSource
create an elliptical arc
Definition: vtkEllipseArcSource.h:36
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkEllipseArcSource::Ratio
double Ratio
Definition: vtkEllipseArcSource.h:142
vtkEllipseArcSource::Close
bool Close
Definition: vtkEllipseArcSource.h:143
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41