SHAPER  9.12.0
GeomAPI_Trsf Class Reference

Keep the transformation matrix coefficients. More...

Inheritance diagram for GeomAPI_Trsf:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Trsf ()
 Keeps no transformation, it may be set by setImpl. More...
 
GEOMAPI_EXPORT GeomAPI_Trsf (void *theTrsf)
 Takes the pointer to existing transformation. More...
 
GEOMAPI_EXPORT void setTranslation (const std::shared_ptr< GeomAPI_Ax1 > theAxis, const double theDistance)
 Sets a translation transformation. More...
 
GEOMAPI_EXPORT void setTranslation (const double theDx, const double theDy, const double theDz)
 Sets a translation transformation using three coordinates. More...
 
GEOMAPI_EXPORT void setTranslation (const std::shared_ptr< GeomAPI_Pnt > theStartPoint, const std::shared_ptr< GeomAPI_Pnt > theEndPoint)
 Sets a translation transformation using two points. More...
 
GEOMAPI_EXPORT void setRotation (const std::shared_ptr< GeomAPI_Ax1 > theAxis, const double theAngle)
 Sets a rotation transformation. More...
 
GEOMAPI_EXPORT void setRotation (const std::shared_ptr< GeomAPI_Pnt > theCenterPoint, const std::shared_ptr< GeomAPI_Pnt > theStartPoint, const std::shared_ptr< GeomAPI_Pnt > theEndPoint)
 Sets a rotation transformation using three points. More...
 
GEOMAPI_EXPORT void setSymmetry (const std::shared_ptr< GeomAPI_Pnt > thePoint)
 Sets a point symmetry transformation. More...
 
GEOMAPI_EXPORT void setSymmetry (const std::shared_ptr< GeomAPI_Ax1 > theAxis)
 Sets an axis symmetry transformation. More...
 
GEOMAPI_EXPORT void setSymmetry (const std::shared_ptr< GeomAPI_Ax2 > thePlane)
 Sets a plane symmetry transformation. More...
 
GEOMAPI_EXPORT void setScale (const std::shared_ptr< GeomAPI_Pnt > &theCenter, const double theScale)
 Sets the scaling transformation. More...
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

Keep the transformation matrix coefficients.

Constructor & Destructor Documentation

◆ GeomAPI_Trsf() [1/2]

GeomAPI_Trsf::GeomAPI_Trsf ( )

Keeps no transformation, it may be set by setImpl.

◆ GeomAPI_Trsf() [2/2]

GeomAPI_Trsf::GeomAPI_Trsf ( void *  theTrsf)

Takes the pointer to existing transformation.

Member Function Documentation

◆ setTranslation() [1/3]

void GeomAPI_Trsf::setTranslation ( const std::shared_ptr< GeomAPI_Ax1 theAxis,
const double  theDistance 
)

Sets a translation transformation.

Parameters
[in]theAxistranslation axis.
[in]theDistancetranslation distance.

◆ setTranslation() [2/3]

void GeomAPI_Trsf::setTranslation ( const double  theDx,
const double  theDy,
const double  theDz 
)

Sets a translation transformation using three coordinates.

Parameters
[in]theDxx coordinate of the translation vector
[in]theDyy coordinate of the translation vector
[in]theDzz coordinate of the translation vector

◆ setTranslation() [3/3]

void GeomAPI_Trsf::setTranslation ( const std::shared_ptr< GeomAPI_Pnt theStartPoint,
const std::shared_ptr< GeomAPI_Pnt theEndPoint 
)

Sets a translation transformation using two points.

Parameters
[in]theStartPointStart point of the translation vector.
[in]theEndPointEnd point of the translation vector.

◆ setRotation() [1/2]

void GeomAPI_Trsf::setRotation ( const std::shared_ptr< GeomAPI_Ax1 theAxis,
const double  theAngle 
)

Sets a rotation transformation.

Parameters
[in]theAxisrotation axis.
[in]theAnglerotation angle(in degree).

◆ setRotation() [2/2]

void GeomAPI_Trsf::setRotation ( const std::shared_ptr< GeomAPI_Pnt theCenterPoint,
const std::shared_ptr< GeomAPI_Pnt theStartPoint,
const std::shared_ptr< GeomAPI_Pnt theEndPoint 
)

Sets a rotation transformation using three points.

Parameters
[in]theCenterPointrotation center.
[in]theStartPointstart rotation point.
[in]theEndPointend rotation point.

◆ setSymmetry() [1/3]

void GeomAPI_Trsf::setSymmetry ( const std::shared_ptr< GeomAPI_Pnt thePoint)

Sets a point symmetry transformation.

Parameters
[in]thePointsymmetry point.

◆ setSymmetry() [2/3]

void GeomAPI_Trsf::setSymmetry ( const std::shared_ptr< GeomAPI_Ax1 theAxis)

Sets an axis symmetry transformation.

Parameters
[in]theAxissymmetry axis.

◆ setSymmetry() [3/3]

void GeomAPI_Trsf::setSymmetry ( const std::shared_ptr< GeomAPI_Ax2 thePlane)

Sets a plane symmetry transformation.

Parameters
[in]thePlanesymmetry plane.

◆ setScale()

void GeomAPI_Trsf::setScale ( const std::shared_ptr< GeomAPI_Pnt > &  theCenter,
const double  theScale 
)

Sets the scaling transformation.

Parameters
[in]theCenterscaling origin.
[in]theScalescaling factor.

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inlineinherited

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inlineinherited

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inlineinherited

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inlineinherited

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const
inherited

Returns true if the impl is empty.