Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions

mrpt::opengl::CSphere Class Reference


Detailed Description

A solid or wire-frame sphere.

See also:
opengl::COpenGLScene
mrpt::opengl::CSphere
preview_CSphere.png

Definition at line 52 of file CSphere.h.

#include <mrpt/opengl/CSphere.h>

Inheritance diagram for mrpt::opengl::CSphere:
Inheritance graph
[legend]

List of all members.

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::CObjectduplicate () const
 Returns a copy of the object, indepently of its class.
static mrpt::utils::CObjectCreateObject ()
static CSpherePtr Create ()

Member Typedef Documentation

A typedef for the associated smart pointer

Definition at line 54 of file CSphere.h.


Constructor & Destructor Documentation

mrpt::opengl::CSphere::CSphere ( float  radius = 1.0f,
int  nDivsLongitude = 20,
int  nDivsLatitude = 20 
) [inline, private]

Constructor.

Definition at line 91 of file CSphere.h.

virtual mrpt::opengl::CSphere::~CSphere (  ) [inline, private, virtual]

Private, virtual destructor: only can be deleted from smart pointers.

Definition at line 104 of file CSphere.h.


Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CSphere::_GetBaseClass (  ) [static, protected]
static CSpherePtr mrpt::opengl::CSphere::Create (  ) [static]
static CSpherePtr mrpt::opengl::CSphere::Create ( float  radius,
int  nDivsLongitude = 20,
int  nDivsLatitude = 20 
) [inline, static]

Class factory.

Definition at line 73 of file CSphere.h.

References mrpt::opengl::CSphere.

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().

float mrpt::opengl::CSphere::getRadius (  ) const [inline]

Definition at line 63 of file CSphere.h.

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]
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]
See also:
CRenderizableDisplayList

Reimplemented from mrpt::opengl::CRenderizableDisplayList.

Definition at line 70 of file CSphere.h.

virtual bool mrpt::opengl::CSphere::traceRay ( const mrpt::poses::CPose3D o,
double &  dist 
) const [virtual]

Ray tracing.

Reimplemented from mrpt::opengl::CRenderizable.


Member Data Documentation

Definition at line 54 of file CSphere.h.

Definition at line 54 of file CSphere.h.

Definition at line 54 of file CSphere.h.

Definition at line 59 of file CSphere.h.

Definition at line 58 of file CSphere.h.

Definition at line 58 of file CSphere.h.

Definition at line 57 of file CSphere.h.




Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:46:17 UTC 2011