Defines a right-hand axis placement in 3D. More...
Public Member Functions | |
ModelData_Axis2Placement () | |
Constructor. | |
ModelData_Axis2Placement (const ModelData_Point &theLocation, const ModelData_Direction &theAxis, const ModelData_Direction &theRefDirection) | |
Constructor. | |
ModelData_Axis2Placement (const gp_Ax2 &) | |
Constructor. | |
operator const gp_Ax2 & () const | |
operator gp_Ax2 & () | |
const ModelData_Point & | Location () const |
Returns a location point of the axis placement. | |
const ModelData_Direction & | Axis () const |
Returns a Z-direction of the axis placement. | |
const ModelData_Direction & | XDirection () const |
Returns a X-direction of the axis placement. | |
const ModelData_Direction & | YDirection () const |
Returns a Y-direction of the axis placement. | |
void | Transform (const ModelData_Transformation &theTransformation) |
Transforms the axis with a transformation matrix. | |
ModelData_Axis2Placement | Transformed (const ModelData_Transformation &theTransformation) const |
Returns an axis which is transformed with a transformation matrix. | |
void | Mirror (const ModelData_Point &theAxis) |
void | Mirror (const ModelData_Axis1Placement &theAxis) |
void | Mirror (const ModelData_Axis2Placement &theAxis) |
template<typename T > | |
ModelData_Axis2Placement | Mirrored (const T &theRef) const |
void | Rotate (const ModelData_Axis1Placement &theAxis, double theAngle) |
ModelData_Axis2Placement | Rotated (const ModelData_Axis1Placement &theAxis, double theAngle) |
void | Translate (const ModelData_Vector &theVector) |
ModelData_Axis2Placement | Translated (const ModelData_Vector &theVector) |
Static Public Member Functions | |
static ModelData_Axis2Placement & | XOY () |
Returns an axis placement with axes aligned with main ones. | |
static ModelData_Axis2Placement & | YOZ () |
static ModelData_Axis2Placement & | ZOX () |
Defines a right-hand axis placement in 3D.
An axis placement is defined by a location point, a Z-direction and a reference direction (XRef).
The following image depicts an example of an axis placement:
The Z-direction defines a plane perpendicular to Z. Other directions are defined as follows:
X,Y,Z axes always define a right-hand axis placement.
cadex::ModelData_Axis2Placement::ModelData_Axis2Placement | ( | ) |
Constructor.
Creates an axis placement with axes aligned with main ones. Creates an object equal to one returned by XOY().
const ModelData_Direction & cadex::ModelData_Axis2Placement::Axis | ( | ) | const |
Returns a Z-direction of the axis placement.
|
inline |
Returns an axis which is transformed with a transformation matrix.
const ModelData_Direction & cadex::ModelData_Axis2Placement::XDirection | ( | ) | const |
Returns a X-direction of the axis placement.
const ModelData_Direction & cadex::ModelData_Axis2Placement::YDirection | ( | ) | const |
Returns a Y-direction of the axis placement.