CAD Exchanger SDK
cadex::ModelData_Axis1Placement Class Reference

Defines an axis placement as a combination of point and direction. More...

Public Member Functions

 ModelData_Axis1Placement ()
 Constructor. More...
 
 ModelData_Axis1Placement (const ModelData_Point &theLocation, const ModelData_Direction &theDirection)
 Constructor. More...
 
 ModelData_Axis1Placement (const gp_Ax1 &)
 Constructor.
 
 operator const gp_Ax1 & () const
 
 operator gp_Ax1 & ()
 
const ModelData_PointLocation () const
 Returns an origin point. More...
 
const ModelData_DirectionDirection () const
 Returns a direction value. More...
 
bool IsCoaxial (const ModelData_Axis1Placement &theOther, double theAngularTolerance, double theDistanceTolerance, bool theAllowOpposite=false)
 Returns true if this axis placement is coaxial to theOther. More...
 
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. More...
 
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_Axis1PlacementOX ()
 Returns an OX axis. More...
 
static const ModelData_Axis1PlacementOY ()
 Returns an OY axis. More...
 
static const ModelData_Axis1PlacementOZ ()
 Returns an OZ axis. More...
 

Detailed Description

Defines an axis placement as a combination of point and direction.

Examples:
modeling/brepfeatures/main.cxx.

Constructor & Destructor Documentation

◆ ModelData_Axis1Placement() [1/2]

cadex::ModelData_Axis1Placement::ModelData_Axis1Placement ( )

Constructor.

Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).

◆ ModelData_Axis1Placement() [2/2]

cadex::ModelData_Axis1Placement::ModelData_Axis1Placement ( const ModelData_Point theLocation,
const ModelData_Direction theDirection 
)

Constructor.

Creates an axis from origin point and direction.

Member Function Documentation

◆ Direction()

const ModelData_Direction & cadex::ModelData_Axis1Placement::Direction ( ) const

Returns a direction value.

Returns the value specified in the constructor.

◆ IsCoaxial()

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.

◆ Location()

const ModelData_Point & cadex::ModelData_Axis1Placement::Location ( ) const

Returns an origin point.

Returns the value specified in the constructor.

◆ OX()

const ModelData_Axis1Placement & cadex::ModelData_Axis1Placement::OX ( )
static

Returns an OX axis.

Creates an axis from point (0., 0., 0.) and direction (1., 0., 0.).

◆ OY()

const ModelData_Axis1Placement & cadex::ModelData_Axis1Placement::OY ( )
static

Returns an OY axis.

Creates an axis from point (0., 0., 0.) and direction (0., 1., 0.).

◆ OZ()

const ModelData_Axis1Placement & cadex::ModelData_Axis1Placement::OZ ( )
static

Returns an OZ axis.

Creates an axis from point (0., 0., 0.) and direction (0., 0., 1.).

◆ Transformed()

ModelData_Axis1Placement cadex::ModelData_Axis1Placement::Transformed ( const ModelData_Transformation theTransformation) const
inline

Returns an axis which is transformed with a transformation matrix.

See also
Transform().