SHAPER
9.12.0
|
Ellipse in 3D. More...
Public Member Functions | |
GEOMAPI_EXPORT | GeomAPI_Ellipse () |
Constructs an epty ellipse. More... | |
GEOMAPI_EXPORT | GeomAPI_Ellipse (const std::shared_ptr< GeomAPI_Ax2 > &theAx2, double theMajorRadius, double theMinorRadius) |
Constructs an ellipse with major and minor radiuses, where theAx2 locates the ellipse and defines its orientation in 3D space such that: . More... | |
GEOMAPI_EXPORT | GeomAPI_Ellipse (std::shared_ptr< GeomAPI_Curve > theCurve) |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | center () const |
Returns center of the ellipse. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | firstFocus () const |
Returns first focus of the ellipse. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | secondFocus () const |
Returns second focus of the ellipse. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > | normal () const |
Return orthogonal direction to the ellipse's plane. More... | |
GEOMAPI_EXPORT double | minorRadius () const |
Returns minor radius of the ellipse. More... | |
GEOMAPI_EXPORT double | majorRadius () const |
Returns major radius of the ellipse. More... | |
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt > | project (const std::shared_ptr< GeomAPI_Pnt > &thePoint) const |
Project point on ellipse. More... | |
GEOMAPI_EXPORT const bool | parameter (const std::shared_ptr< GeomAPI_Pnt > thePoint, const double theTolerance, double &theParameter) const |
Computes the parameter of a given point on an ellipse. More... | |
template<class T > | |
T * | implPtr () |
Returns the pointer to the impl. More... | |
template<class T > | |
const T * | implPtr () const |
Returns the pointer to the impl. More... | |
template<class T > | |
const T & | impl () const |
Returns the reference object of the impl. More... | |
template<class T > | |
void | setImpl (T *theImpl) |
Updates the impl (deletes the old one) More... | |
GEOMAPI_EXPORT bool | empty () const |
Returns true if the impl is empty. More... | |
Ellipse in 3D.
|
inline |
Constructs an epty ellipse.
GeomAPI_Ellipse::GeomAPI_Ellipse | ( | const std::shared_ptr< GeomAPI_Ax2 > & | theAx2, |
double | theMajorRadius, | ||
double | theMinorRadius | ||
) |
Constructs an ellipse with major and minor radiuses, where theAx2 locates the ellipse and defines its orientation in 3D space such that:
.
std::shared_ptr< GeomAPI_Pnt > GeomAPI_Ellipse::center | ( | ) | const |
Returns center of the ellipse.
GeomPointPtr GeomAPI_Ellipse::firstFocus | ( | ) | const |
Returns first focus of the ellipse.
GeomPointPtr GeomAPI_Ellipse::secondFocus | ( | ) | const |
Returns second focus of the ellipse.
std::shared_ptr< GeomAPI_Dir > GeomAPI_Ellipse::normal | ( | ) | const |
Return orthogonal direction to the ellipse's plane.
double GeomAPI_Ellipse::minorRadius | ( | ) | const |
Returns minor radius of the ellipse.
double GeomAPI_Ellipse::majorRadius | ( | ) | const |
Returns major radius of the ellipse.
const std::shared_ptr< GeomAPI_Pnt > GeomAPI_Ellipse::project | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint | ) | const |
Project point on ellipse.
const bool GeomAPI_Ellipse::parameter | ( | const std::shared_ptr< GeomAPI_Pnt > | thePoint, |
const double | theTolerance, | ||
double & | theParameter | ||
) | const |
Computes the parameter of a given point on an ellipse.
The point must be located either on the circle itself or relatively to the latter at a distance less than the tolerance value. Return FALSE if the point is beyond the tolerance limit or if computation fails. Max Tolerance value is currently limited to 1.e-4
[in] | thePoint | point of origin. |
[in] | theTolerance | tolerance of computation. |
[out] | theParameter | resulting parameter. |
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.