A planar disk in the XY plane.
#include <mrpt/opengl/CDisk.h>
Public Member Functions | |
void | setDiskRadius (float outRadius, float inRadius=0) |
float | getInRadius () const |
float | getOutRadius () const |
void | setSlicesCount (uint32_t N) |
Default=50. | |
void | setLoopsCount (uint32_t N) |
Default=4. | |
void | render_dl () const |
Render. | |
virtual bool | traceRay (const mrpt::poses::CPose3D &o, double &dist) const |
Ray tracing. | |
Static Public Member Functions | |
static CDiskPtr | Create (float radiusOut, float radiusIn, uint32_t slices=50, uint32_t loops=4) |
Protected Attributes | |
float | m_radiusIn |
float | m_radiusOut |
uint32_t | m_nSlices |
uint32_t | m_nLoops |
Private Member Functions | |
CDisk () | |
Constructor. | |
CDisk (float rOut, float rIn, uint32_t slices, uint32_t loops) | |
virtual | ~CDisk () |
Private, virtual destructor: only can be deleted from smart pointers. | |
RTTI stuff | |
typedef CDiskPtr | SmartPtr |
static mrpt::utils::CLASSINIT | _init_CDisk |
static mrpt::utils::TRuntimeClassId | classCDisk |
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 CDiskPtr | Create () |
mrpt::opengl::CDisk::CDisk | ( | ) | [inline, private] |
mrpt::opengl::CDisk::CDisk | ( | float | rOut, |
float | rIn, | ||
uint32_t | slices, | ||
uint32_t | loops | ||
) | [inline, private] |
virtual mrpt::opengl::CDisk::~CDisk | ( | ) | [inline, private, virtual] |
static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CDisk::_GetBaseClass | ( | ) | [static, protected] |
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
static CDiskPtr mrpt::opengl::CDisk::Create | ( | ) | [static] |
static CDiskPtr mrpt::opengl::CDisk::Create | ( | float | radiusOut, |
float | radiusIn, | ||
uint32_t | slices = 50 , |
||
uint32_t | loops = 4 |
||
) | [inline, static] |
Definition at line 80 of file CDisk.h.
References mrpt::opengl::CDisk.
static mrpt::utils::CObject* mrpt::opengl::CDisk::CreateObject | ( | ) | [static] |
virtual mrpt::utils::CObject* mrpt::opengl::CDisk::duplicate | ( | ) | const [virtual] |
Returns a copy of the object, indepently of its class.
Implements mrpt::utils::CObject.
virtual const mrpt::utils::TRuntimeClassId* mrpt::opengl::CDisk::GetRuntimeClass | ( | ) | const [virtual] |
Returns information about the class of an object in runtime.
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CDisk::render_dl | ( | ) | const [virtual] |
Render.
Implements mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CDisk::setDiskRadius | ( | float | outRadius, |
float | inRadius = 0 |
||
) | [inline] |
Definition at line 63 of file CDisk.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CDisk::setLoopsCount | ( | uint32_t | N | ) | [inline] |
Default=4.
Definition at line 69 of file CDisk.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CDisk::setSlicesCount | ( | uint32_t | N | ) | [inline] |
Default=50.
Definition at line 68 of file CDisk.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
virtual bool mrpt::opengl::CDisk::traceRay | ( | const mrpt::poses::CPose3D & | o, |
double & | dist | ||
) | const [virtual] |
Ray tracing.
Reimplemented from mrpt::opengl::CRenderizable.
mrpt::utils::CLASSINIT mrpt::opengl::CDisk::_init_CDisk [static, protected] |
const mrpt::utils::TRuntimeClassId* mrpt::opengl::CDisk::classinfo [static] |
uint32_t mrpt::opengl::CDisk::m_nLoops [protected] |
uint32_t mrpt::opengl::CDisk::m_nSlices [protected] |
float mrpt::opengl::CDisk::m_radiusIn [protected] |
float mrpt::opengl::CDisk::m_radiusOut [protected] |
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011 |