SHAPER  9.12.0
GeomAPI_Ax2 Class Reference

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

Inheritance diagram for GeomAPI_Ax2:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Ax2 ()
 Default constructor. More...
 
GEOMAPI_EXPORT GeomAPI_Ax2 (std::shared_ptr< GeomAPI_Pnt > theOrigin, std::shared_ptr< GeomAPI_Dir > theN, std::shared_ptr< GeomAPI_Dir > theVX)
 Constructor. More...
 
GEOMAPI_EXPORT GeomAPI_Ax2 (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
 
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_Ax2() [1/3]

GeomAPI_Ax2::GeomAPI_Ax2 ( )

Default constructor.

◆ GeomAPI_Ax2() [2/3]

GeomAPI_Ax2::GeomAPI_Ax2 ( std::shared_ptr< GeomAPI_Pnt theOrigin,
std::shared_ptr< GeomAPI_Dir theN,
std::shared_ptr< GeomAPI_Dir theVX 
)

Constructor.

Parameters
[in]theOriginpoint of origin.
[in]theNdirection of axis.
[in]theVXx direction of axis.

◆ GeomAPI_Ax2() [3/3]

GeomAPI_Ax2::GeomAPI_Ax2 ( 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_Ax2::setOrigin ( const std::shared_ptr< GeomAPI_Pnt > &  theOrigin)

Sets origin point.

◆ origin()

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

◆ setDir()

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

Sets direction vector.

◆ dir()

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

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