A solid or wire-frame sphere.
#include <mrpt/opengl/CSphere.h>
Public Member Functions | |
void | setRadius (float r) |
float | getRadius () const |
void | setNumberDivsLongitude (int N) |
void | setNumberDivsLatitude (int N) |
void | enableRadiusIndependentOfEyeDistance (bool v=true) |
virtual bool | should_skip_display_list_cache () const |
void | render_dl () const |
Render. | |
virtual bool | traceRay (const mrpt::poses::CPose3D &o, double &dist) const |
Ray tracing. | |
Static Public Member Functions | |
static CSpherePtr | Create (float radius, int nDivsLongitude=20, int nDivsLatitude=20) |
Class factory. | |
Protected Attributes | |
float | m_radius |
int | m_nDivsLongitude |
int | m_nDivsLatitude |
bool | m_keepRadiusIndependentEyeDistance |
Private Member Functions | |
CSphere (float radius=1.0f, int nDivsLongitude=20, int nDivsLatitude=20) | |
Constructor. | |
virtual | ~CSphere () |
Private, virtual destructor: only can be deleted from smart pointers. | |
RTTI stuff | |
typedef CSpherePtr | SmartPtr |
static mrpt::utils::CLASSINIT | _init_CSphere |
static mrpt::utils::TRuntimeClassId | classCSphere |
static const mrpt::utils::TRuntimeClassId * | classinfo |
static const mrpt::utils::TRuntimeClassId * | _GetBaseClass () |
virtual const mrpt::utils::TRuntimeClassId * | GetRuntimeClass () const |
Returns information about the class of an object in runtime. | |
virtual mrpt::utils::CObject * | duplicate () const |
Returns a copy of the object, indepently of its class. | |
static mrpt::utils::CObject * | CreateObject () |
static CSpherePtr | Create () |
mrpt::opengl::CSphere::CSphere | ( | float | radius = 1.0f , |
int | nDivsLongitude = 20 , |
||
int | nDivsLatitude = 20 |
||
) | [inline, private] |
virtual mrpt::opengl::CSphere::~CSphere | ( | ) | [inline, private, virtual] |
static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CSphere::_GetBaseClass | ( | ) | [static, protected] |
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
static CSpherePtr mrpt::opengl::CSphere::Create | ( | ) | [static] |
static CSpherePtr mrpt::opengl::CSphere::Create | ( | float | radius, |
int | nDivsLongitude = 20 , |
||
int | nDivsLatitude = 20 |
||
) | [inline, static] |
static mrpt::utils::CObject* mrpt::opengl::CSphere::CreateObject | ( | ) | [static] |
virtual mrpt::utils::CObject* mrpt::opengl::CSphere::duplicate | ( | ) | const [virtual] |
Returns a copy of the object, indepently of its class.
Implements mrpt::utils::CObject.
void mrpt::opengl::CSphere::enableRadiusIndependentOfEyeDistance | ( | bool | v = true | ) | [inline] |
Definition at line 67 of file CSphere.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
virtual const mrpt::utils::TRuntimeClassId* mrpt::opengl::CSphere::GetRuntimeClass | ( | ) | const [virtual] |
Returns information about the class of an object in runtime.
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CSphere::render_dl | ( | ) | const [virtual] |
Render.
Implements mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CSphere::setNumberDivsLatitude | ( | int | N | ) | [inline] |
Definition at line 66 of file CSphere.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CSphere::setNumberDivsLongitude | ( | int | N | ) | [inline] |
Definition at line 65 of file CSphere.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CSphere::setRadius | ( | float | r | ) | [inline] |
Definition at line 62 of file CSphere.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
virtual bool mrpt::opengl::CSphere::should_skip_display_list_cache | ( | ) | const [inline, virtual] |
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
virtual bool mrpt::opengl::CSphere::traceRay | ( | const mrpt::poses::CPose3D & | o, |
double & | dist | ||
) | const [virtual] |
Ray tracing.
Reimplemented from mrpt::opengl::CRenderizable.
mrpt::utils::CLASSINIT mrpt::opengl::CSphere::_init_CSphere [static, protected] |
const mrpt::utils::TRuntimeClassId* mrpt::opengl::CSphere::classinfo [static] |
bool mrpt::opengl::CSphere::m_keepRadiusIndependentEyeDistance [protected] |
int mrpt::opengl::CSphere::m_nDivsLatitude [protected] |
int mrpt::opengl::CSphere::m_nDivsLongitude [protected] |
float mrpt::opengl::CSphere::m_radius [protected] |
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011 |