Open CASCADE Technology
6.5.4
|
The abstract class Conic describes the common
behavior of conic curves in 3D space and, in
particular, their general characteristics. The Geom
package provides four concrete classes of conics:
Geom_Circle, Geom_Ellipse, Geom_Hyperbola and Geom_Parabola.
A conic is positioned in space with a right-handed
coordinate system (gp_Ax2 object), where:
More...
#include <Geom_Conic.hxx>
Public Member Functions | |
void | SetAxis (const gp_Ax1 &A1) |
Changes the orientation of the conic's plane. The normal axis to the plane is A1. The XAxis and the YAxis are recomputed. raised if the A1 is parallel to the XAxis of the conic. | |
void | SetLocation (const gp_Pnt &P) |
changes the location point of the conic. | |
void | SetPosition (const gp_Ax2 &A2) |
changes the local coordinate system of the conic. | |
gp_Ax1 | Axis () const |
Returns the "main Axis" of this conic. This axis is normal to the plane of the conic. | |
virtual Standard_Real | Eccentricity () const =0 |
Returns the eccentricity value of the conic e. e = 0 for a circle 0 < e < 1 for an ellipse (e = 0 if MajorRadius = MinorRadius) e > 1 for a hyperbola e = 1 for a parabola Exceptions Standard_DomainError in the case of a hyperbola if its major radius is null. | |
gp_Pnt | Location () const |
Returns the location point of the conic. For the circle, the ellipse and the hyperbola it is the center of the conic. For the parabola it is the Apex of the parabola. | |
const gp_Ax2 & | Position () const |
Returns the local coordinates system of the conic. The main direction of the Axis2Placement is normal to the plane of the conic. The X direction of the Axis2placement is in the plane of the conic and corresponds to the origin for the conic's parametric value u. | |
gp_Ax1 | XAxis () const |
Returns the XAxis of the conic. This axis defines the origin of parametrization of the conic. This axis is perpendicular to the Axis of the conic. This axis and the Yaxis define the plane of the conic. | |
gp_Ax1 | YAxis () const |
Returns the YAxis of the conic. The YAxis is perpendicular to the Xaxis. This axis and the Xaxis define the plane of the conic. | |
void | Reverse () |
Reverses the direction of parameterization of <me>. The local coordinate system of the conic is modified. | |
virtual Standard_Real | ReversedParameter (const Standard_Real U) const =0 |
Returns the parameter on the reversed curve for the point of parameter U on <me>. | |
GeomAbs_Shape | Continuity () const |
The continuity of the conic is Cn. | |
Standard_Boolean | IsCN (const Standard_Integer N) const |
Returns True. //! Raised if N < 0. | |
Protected Attributes | |
gp_Ax2 | pos |
gp_Ax1 Geom_Conic::Axis | ( | ) | const |
GeomAbs_Shape Geom_Conic::Continuity | ( | ) | const [virtual] |
Implements Geom_Curve.
virtual Standard_Real Geom_Conic::Eccentricity | ( | ) | const [pure virtual] |
Implemented in Geom_Hyperbola, Geom_Ellipse, Geom_Parabola, and Geom_Circle.
Standard_Boolean Geom_Conic::IsCN | ( | const Standard_Integer | N | ) | const [virtual] |
Implements Geom_Curve.
gp_Pnt Geom_Conic::Location | ( | ) | const |
const gp_Ax2& Geom_Conic::Position | ( | ) | const |
void Geom_Conic::Reverse | ( | ) | [virtual] |
Implements Geom_Curve.
virtual Standard_Real Geom_Conic::ReversedParameter | ( | const Standard_Real | U | ) | const [pure virtual] |
Implements Geom_Curve.
Implemented in Geom_Hyperbola, Geom_Ellipse, Geom_Parabola, and Geom_Circle.
void Geom_Conic::SetAxis | ( | const gp_Ax1 & | A1 | ) |
void Geom_Conic::SetLocation | ( | const gp_Pnt & | P | ) |
void Geom_Conic::SetPosition | ( | const gp_Ax2 & | A2 | ) |
gp_Ax1 Geom_Conic::XAxis | ( | ) | const |
gp_Ax1 Geom_Conic::YAxis | ( | ) | const |
gp_Ax2 Geom_Conic::pos [protected] |