Open CASCADE Technology 6.6.0
Public Member Functions
Geom_Axis2Placement Class Reference

Describes a right-handed coordinate system in 3D space.
A coordinate system is defined by:
More...

#include <Geom_Axis2Placement.hxx>

Inheritance diagram for Geom_Axis2Placement:
Inheritance graph
[legend]

Public Member Functions

 Geom_Axis2Placement (const gp_Ax2 &A2)
 Returns a transient copy of A2.

 Geom_Axis2Placement (const gp_Pnt &P, const gp_Dir &N, const gp_Dir &Vx)
 P is the origin of the axis placement, N is the main
direction of the axis placement and Vx is the "XDirection".
If the two directions N and Vx are not orthogonal the
"XDirection" is computed as follow :
XDirection = N ^ (Vx ^ N).
//! Raised if N and Vx are parallel.

void SetAx2 (const gp_Ax2 &A2)
 Assigns the origin and the three unit vectors of A2 to
this coordinate system.

void SetDirection (const gp_Dir &V)
 Changes the main direction of the axis placement.
The "Xdirection" is modified :
New XDirection = V ^ (Previous_Xdirection ^ V).
Raised if V and the previous "XDirection" are parallel
because it is impossible to calculate the new "XDirection"
and the new "YDirection".

void SetXDirection (const gp_Dir &Vx)
 Changes the "XDirection" of the axis placement, Vx is the
new "XDirection". If Vx is not normal to the main direction
then "XDirection" is computed as follow :
XDirection = Direction ^ ( Vx ^ Direction).
The main direction is not modified.
//! Raised if Vx and "Direction" are parallel.

void SetYDirection (const gp_Dir &Vy)
 Changes the "YDirection" of the axis placement, Vy is the
new "YDirection". If Vy is not normal to the main direction
then "YDirection" is computed as follow :
YDirection = Direction ^ ( Vy ^ Direction).
The main direction is not modified. The "XDirection" is
modified.
//! Raised if Vy and the main direction are parallel.

gp_Ax2 Ax2 () const
 Returns a non transient copy of <me>.

const gp_DirXDirection () const
 Returns the "XDirection". This is a unit vector.

const gp_DirYDirection () const
 Returns the "YDirection". This is a unit vector.

void Transform (const gp_Trsf &T)
 Transforms an axis placement with a Trsf.
The "Location" point, the "XDirection" and the
"YDirection" are transformed with T. The resulting
main "Direction" of <me> is the cross product between
the "XDirection" and the "YDirection" after transformation.

Handle_Geom_Geometry Copy () const
 Creates a new object which is a copy of this coordinate system.


Detailed Description


Constructor & Destructor Documentation

Geom_Axis2Placement::Geom_Axis2Placement ( const gp_Ax2 A2)
Geom_Axis2Placement::Geom_Axis2Placement ( const gp_Pnt P,
const gp_Dir N,
const gp_Dir Vx 
)

Member Function Documentation

gp_Ax2 Geom_Axis2Placement::Ax2 ( ) const
Handle_Geom_Geometry Geom_Axis2Placement::Copy ( ) const [virtual]

Implements Geom_Geometry.

void Geom_Axis2Placement::SetAx2 ( const gp_Ax2 A2)
void Geom_Axis2Placement::SetDirection ( const gp_Dir V) [virtual]

Implements Geom_AxisPlacement.

void Geom_Axis2Placement::SetXDirection ( const gp_Dir Vx)
void Geom_Axis2Placement::SetYDirection ( const gp_Dir Vy)
void Geom_Axis2Placement::Transform ( const gp_Trsf T) [virtual]

Implements Geom_Geometry.

const gp_Dir& Geom_Axis2Placement::XDirection ( ) const
const gp_Dir& Geom_Axis2Placement::YDirection ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines