SHAPER  9.12.0
GeomAPI_Box Class Reference

Box in 3D. More...

Inheritance diagram for GeomAPI_Box:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Box (const std::shared_ptr< GeomAPI_Ax3 > &theCorner, const double theWidth, const double theDepth, const double theHeight)
 Creation of torus defined by center point, direction, major and minor radii. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Ax3axes () const
 Return axes of the box. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pntcorner () const
 Return base corner of the box. More...
 
GEOMAPI_EXPORT double width () const
 Return width of the box. More...
 
GEOMAPI_EXPORT double depth () const
 Return depth of the box. More...
 
GEOMAPI_EXPORT double height () const
 Return height of the box. More...
 
GEOMAPI_EXPORT bool isAxesAligned () const
 Return true is the box is aligned in main axes. 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

Box in 3D.

Constructor & Destructor Documentation

◆ GeomAPI_Box()

GeomAPI_Box::GeomAPI_Box ( const std::shared_ptr< GeomAPI_Ax3 > &  theCorner,
const double  theWidth,
const double  theDepth,
const double  theHeight 
)

Creation of torus defined by center point, direction, major and minor radii.

Member Function Documentation

◆ axes()

std::shared_ptr< GeomAPI_Ax3 > GeomAPI_Box::axes ( ) const

Return axes of the box.

◆ corner()

std::shared_ptr< GeomAPI_Pnt > GeomAPI_Box::corner ( ) const

Return base corner of the box.

◆ width()

double GeomAPI_Box::width ( ) const

Return width of the box.

◆ depth()

double GeomAPI_Box::depth ( ) const

Return depth of the box.

◆ height()

double GeomAPI_Box::height ( ) const

Return height of the box.

◆ isAxesAligned()

bool GeomAPI_Box::isAxesAligned ( ) const

Return true is the box is aligned in main axes.

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