GeometricObjects Interface CATEllipse
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATEllipse
Interface representing an ellipse.
A CATEllipse is created by the CreateEllipse
method of the CATGeoFactory interface
and deleted with the Remove method.
A CATEllipse is defined with:
CATMathPlane | (O,U,V) |
The axis system |
double | A |
The half length of the major axis |
double | B |
The half length of the minor axis |
CATAngle | iStart |
The low angle limitation |
CATAngle | iEnd |
The high angle limitation |
with 0 <= iStart < CAT2PI,
iStart < iEnd <= iStart + CAT2PI, B <= A.
The direction of the major axis is the first direction of the plane.
The angles are measured from the major axis.
The parametric equation of the ellipse on its plane is:
X=a*cos(theta), Y=b*sin(theta).
Notice that the CATSurParam (on the ellipse plane) associated with (X,Y)
may not correspond to theta. So, do not make any assumption on the
internal ellipse parameterization.
The ellipse equation
in its axis system is X²/A² + Y²/B² = 1.
Method Index
- o
GetEndAngle()
- Returns the end limitation of the ellipse arc angle.
- o
GetMajorAxis()
- Returns the half length of the ellipse major axis.
- o
GetMinorAxis()
- Returns the half length of the ellipse minor axis.
- o
GetStartAngle()
- Returns the start limitation of the ellipse arc angle.
- o
Set(double,double,CATMathPlane&,CATAngle,CATAngle)
- Modifies the ellipse characteristics.
- o
SetMajorAxis(double)
- Modifies the half length of the ellipse major axis.
- o
SetMinorAxis(double)
- Modifies the half length of the ellipse minor axis.
Methods
o GetEndAngle
public virtual GetEndAngle( | ) |
-
Returns the end limitation of the ellipse arc angle.
- Returns:
- The last limitation angle.
o GetMajorAxis
public virtual GetMajorAxis( | ) |
-
Returns the half length of the ellipse major axis.
- Returns:
- The half length of the major axis
o GetMinorAxis
public virtual GetMinorAxis( | ) |
-
Returns the half length of the ellipse minor axis.
- Returns:
- The half length of the minor axis
o GetStartAngle
public virtual GetStartAngle( | ) |
-
Returns the start limitation of the ellipse arc angle.
- Returns:
- The first limitation angle.
o Set
public virtual Set( | const | iMajorAxis, |
| const | iMinorAxis, |
| const | iSupport, |
| const | iStart, |
| const | iEnd) |
-
Modifies the ellipse characteristics.
- Parameters:
-
- iMajorAxis
- The half length of the major axis.
- iMinorAxis
- The half length of the minor axis.
- iSupport
- The new plane. The ellipse center will be at the origin of iSupport.
- iStart
- The first angle (in radian) limitation, measured from the first direction of the plane.
- iEnd
- The end angle (in radian) limitation, measured from the first direction of the plane.
o SetMajorAxis
public virtual SetMajorAxis( | | iNewMajorAxis) |
-
Modifies the half length of the ellipse major axis.
- Parameters:
-
- iNewMajorAxis
- The half length of the major axis.
o SetMinorAxis
public virtual SetMinorAxis( | | iNewMinorAxis) |
-
Modifies the half length of the ellipse minor axis.
- Parameters:
-
- iNewMinorAxis
- The half length of the minor axis.
This object is included in the file: CATEllipse.h
If needed, your Imakefile.mk should include the module: CATGMGeometricInterfaces
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.