Defines an axis placement as a combination of point and direction. More...
Public Member Functions | |
ModelData_Axis1Placement () | |
Constructor. | |
ModelData_Axis1Placement (const ModelData_Point &theLocation, const ModelData_Direction &theDirection) | |
Constructor. | |
ModelData_Axis1Placement (const gp_Ax1 &) | |
Constructor. | |
operator const gp_Ax1 & () const | |
operator gp_Ax1 & () | |
const ModelData_Point & | Location () const |
Returns an origin point. | |
const ModelData_Direction & | Direction () const |
Returns a direction value. | |
bool | IsCoaxial (const ModelData_Axis1Placement &theOther, double theAngularTolerance, double theDistanceTolerance, bool theAllowOpposite=false) |
Returns true if this axis placement is coaxial to theOther. | |
void | Transform (const ModelData_Transformation &theTransformation) |
Transforms the axis with a transformation matrix. | |
ModelData_Axis1Placement | Transformed (const ModelData_Transformation &theTransformation) const |
Returns an axis which is transformed with a transformation matrix. | |
void | Mirror (const ModelData_Point &thePoint) |
void | Mirror (const ModelData_Axis1Placement &theAxis) |
void | Mirror (const ModelData_Axis2Placement &theAxis) |
template<typename T > | |
ModelData_Axis1Placement | Mirrored (const T &theRef) const |
void | Rotate (const ModelData_Axis1Placement &theAxis, double theAngle) |
ModelData_Axis1Placement | Rotated (const ModelData_Axis1Placement &theAxis, double theAngle) |
void | Translate (const ModelData_Vector &theVector) |
ModelData_Axis1Placement | Translated (const ModelData_Vector &theVector) |
Static Public Member Functions | |
static const ModelData_Axis1Placement & | OX () |
Returns an OX axis. | |
static const ModelData_Axis1Placement & | OY () |
Returns an OY axis. | |
static const ModelData_Axis1Placement & | OZ () |
Returns an OZ axis. | |
Defines an axis placement as a combination of point and direction.
cadex::ModelData_Axis1Placement::ModelData_Axis1Placement | ( | ) |
Constructor.
Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).
cadex::ModelData_Axis1Placement::ModelData_Axis1Placement | ( | const ModelData_Point & | theLocation, |
const ModelData_Direction & | theDirection | ||
) |
Constructor.
Creates an axis from origin point and direction.
const ModelData_Direction & cadex::ModelData_Axis1Placement::Direction | ( | ) | const |
Returns a direction value.
Returns the value specified in the constructor.
bool cadex::ModelData_Axis1Placement::IsCoaxial | ( | const ModelData_Axis1Placement & | theOther, |
double | theAngularTolerance, | ||
double | theDistanceTolerance, | ||
bool | theAllowOpposite = false |
||
) |
Returns true if this axis placement is coaxial to theOther.
Returns true if angle between axes is less than theAngularTolerance and distances between each axis origins and another axis is less than theDistanceTolerance. If theAllowOpposite is true then also checks if the angle is equal to PI within theAngularTolerance.
const ModelData_Point & cadex::ModelData_Axis1Placement::Location | ( | ) | const |
Returns an origin point.
Returns the value specified in the constructor.
|
static |
Returns an OX axis.
Creates an axis from point (0., 0., 0.) and direction (1., 0., 0.).
|
static |
Returns an OY axis.
Creates an axis from point (0., 0., 0.) and direction (0., 1., 0.).
|
static |
Returns an OZ axis.
Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).
|
inline |
Returns an axis which is transformed with a transformation matrix.