SHAPER  9.12.0
GeomAPI_Ax1 Class Reference

The class represents an axis in 3D space. More...

Inheritance diagram for GeomAPI_Ax1:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Ax1 ()
 Default constructor. More...
 
GEOMAPI_EXPORT GeomAPI_Ax1 (std::shared_ptr< GeomAPI_Pnt > theOrigin, std::shared_ptr< GeomAPI_Dir > theDir)
 Constructor. More...
 
GEOMAPI_EXPORT void setOrigin (const std::shared_ptr< GeomAPI_Pnt > &theOrigin)
 Sets origin point. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pntorigin () const
 
GEOMAPI_EXPORT void setDir (const std::shared_ptr< GeomAPI_Dir > &theDir)
 Sets direction vector. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dirdir () const
 
GEOMAPI_EXPORT void reverse ()
 Reverses the unit vector of this axis and assigns the result to this axis. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Ax1reversed ()
 
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

The class represents an axis in 3D space.

Constructor & Destructor Documentation

◆ GeomAPI_Ax1() [1/2]

GeomAPI_Ax1::GeomAPI_Ax1 ( )

Default constructor.

◆ GeomAPI_Ax1() [2/2]

GeomAPI_Ax1::GeomAPI_Ax1 ( std::shared_ptr< GeomAPI_Pnt theOrigin,
std::shared_ptr< GeomAPI_Dir theDir 
)

Constructor.

Parameters
[in]theOriginpoint of origin.
[in]theDirdirection of axis.

Member Function Documentation

◆ setOrigin()

void GeomAPI_Ax1::setOrigin ( const std::shared_ptr< GeomAPI_Pnt > &  theOrigin)

Sets origin point.

◆ origin()

std::shared_ptr< GeomAPI_Pnt > GeomAPI_Ax1::origin ( ) const
Returns
the plane origin point.

◆ setDir()

void GeomAPI_Ax1::setDir ( const std::shared_ptr< GeomAPI_Dir > &  theDir)

Sets direction vector.

◆ dir()

std::shared_ptr< GeomAPI_Dir > GeomAPI_Ax1::dir ( ) const
Returns
direction vector.

◆ reverse()

void GeomAPI_Ax1::reverse ( )

Reverses the unit vector of this axis and assigns the result to this axis.

◆ reversed()

std::shared_ptr< GeomAPI_Ax1 > GeomAPI_Ax1::reversed ( )
Returns
reversed unit vector of this axis.

◆ 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.