SHAPER  9.12.0
GeomAPI_Cylinder Class Reference

Cylindrical surface in 3D. More...

Inheritance diagram for GeomAPI_Cylinder:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Cylinder (const std::shared_ptr< GeomAPI_Pnt > &theLocation, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theRadius)
 Creation of infinite cylinder defined by location, axis and radius. More...
 
GEOMAPI_EXPORT GeomAPI_Cylinder (const std::shared_ptr< GeomAPI_Pnt > &theLocation, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theRadius, const double theHeight)
 Creation of cylinder defined by location, axis, radius and height. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pntlocation () const
 Return location of the cylinder. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Diraxis () const
 Return axis of the cylinder. More...
 
GEOMAPI_EXPORT double radius () const
 Return radius of the cylinder. More...
 
GEOMAPI_EXPORT double height () const
 Return height of the cylinder or Precision::Infinite() if the cylinder is infinite. More...
 
GEOMAPI_EXPORT bool isInfinite () const
 Return true is the cylinder is infinite. More...
 
GEOMAPI_EXPORT bool isCoincident (const std::shared_ptr< GeomAPI_Cylinder > theCylinder, const double theTolerance=1.e-7)
 Returns true if cylinders have same axis and radii. 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

Cylindrical surface in 3D.

Constructor & Destructor Documentation

◆ GeomAPI_Cylinder() [1/2]

GeomAPI_Cylinder::GeomAPI_Cylinder ( const std::shared_ptr< GeomAPI_Pnt > &  theLocation,
const std::shared_ptr< GeomAPI_Dir > &  theAxis,
const double  theRadius 
)

Creation of infinite cylinder defined by location, axis and radius.

◆ GeomAPI_Cylinder() [2/2]

GeomAPI_Cylinder::GeomAPI_Cylinder ( const std::shared_ptr< GeomAPI_Pnt > &  theLocation,
const std::shared_ptr< GeomAPI_Dir > &  theAxis,
const double  theRadius,
const double  theHeight 
)

Creation of cylinder defined by location, axis, radius and height.

Member Function Documentation

◆ location()

std::shared_ptr< GeomAPI_Pnt > GeomAPI_Cylinder::location ( ) const

Return location of the cylinder.

◆ axis()

std::shared_ptr< GeomAPI_Dir > GeomAPI_Cylinder::axis ( ) const

Return axis of the cylinder.

◆ radius()

double GeomAPI_Cylinder::radius ( ) const

Return radius of the cylinder.

◆ height()

double GeomAPI_Cylinder::height ( ) const

Return height of the cylinder or Precision::Infinite() if the cylinder is infinite.

◆ isInfinite()

bool GeomAPI_Cylinder::isInfinite ( ) const

Return true is the cylinder is infinite.

◆ isCoincident()

bool GeomAPI_Cylinder::isCoincident ( const std::shared_ptr< GeomAPI_Cylinder theCylinder,
const double  theTolerance = 1.e-7 
)

Returns true if cylinders have same axis and radii.

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