#include <mrpt/opengl/COpenGLStandardObject.h>

Public Member Functions | |
| virtual void | render () const |
| Render. | |
| virtual bool | traceRay (const mrpt::poses::CPose3D &o, float &dist) const |
| Ray Tracing. | |
| void | enable (_GLENUM flag) |
| Enable some openGL flag. | |
| void | disable (_GLENUM flag) |
| Disable some openGL flag. | |
| bool | isEnabled (_GLENUM flag) const |
| Check whether an openGL will be enabled during the rendering of this object. | |
| void | getEnabledFlags (std::vector< _GLENUM > &v) const |
| Get a list of all currently enabled openGL flags. | |
| void | setFlags (const std::vector< _GLENUM > &v) |
| Set the list of all openGL flags. | |
| void | setNormal (const float(&n)[3]) |
| Set the normal vector to this object. | |
| void | getNormal (float(&n)[3]) const |
| Gets the normal vector to this object. | |
Static Public Member Functions | |
| static COpenGLStandardObjectPtr | Create (_GLENUM t, const std::vector< TPoint3D > &v, uint32_t cs=0, const vector< _GLENUM > &en=vector< _GLENUM >()) |
| Creation of object from type, vertices, chunk size and a list of enabled openGL flags. | |
Protected Attributes | |
| _GLENUM | type |
| OpenGL identifier of the object type. | |
| vector< TPoint3D > | vertices |
| Set of points in which consists this object. | |
| uint32_t | chunkSize |
| Granularity of the openGL elements. | |
| vector< _GLENUM > | enabled |
| Set of openGL properties enabled in the rendering of this object. | |
| float | normal [3] |
Private Member Functions | |
| COpenGLStandardObject (_GLENUM t, const std::vector< TPoint3D > &v, uint32_t cs, const vector< _GLENUM > &en) | |
| Constructor with all the information. | |
| COpenGLStandardObject () | |
| Baic empty constructor, initializes to default. | |
| virtual | ~COpenGLStandardObject () |
| Destructor. | |
Definition at line 46 of file COpenGLStandardObject.h.
| mrpt::opengl::COpenGLStandardObject::COpenGLStandardObject | ( | ) | [inline, private] |
Baic empty constructor, initializes to default.
Definition at line 137 of file COpenGLStandardObject.h.
| virtual mrpt::opengl::COpenGLStandardObject::~COpenGLStandardObject | ( | ) | [inline, private, virtual] |
| static COpenGLStandardObjectPtr mrpt::opengl::COpenGLStandardObject::Create | ( | _GLENUM | t, | |
| const std::vector< TPoint3D > & | v, | |||
| uint32_t | cs = 0, |
|||
| const vector< _GLENUM > & | en = vector<_GLENUM>() | |||
| ) | [inline, static] |
Creation of object from type, vertices, chunk size and a list of enabled openGL flags.
| std::logic_error | if the number of vertices is not an exact multiple of the chunk size. |
Definition at line 81 of file COpenGLStandardObject.h.
References mrpt::opengl::COpenGLStandardObject.
| void mrpt::opengl::COpenGLStandardObject::disable | ( | _GLENUM | flag | ) | [inline] |
| void mrpt::opengl::COpenGLStandardObject::enable | ( | _GLENUM | flag | ) | [inline] |
| void mrpt::opengl::COpenGLStandardObject::getEnabledFlags | ( | std::vector< _GLENUM > & | v | ) | const [inline] |
Get a list of all currently enabled openGL flags.
Definition at line 106 of file COpenGLStandardObject.h.
| void mrpt::opengl::COpenGLStandardObject::getNormal | ( | float(&) | n[3] | ) | const [inline] |
| bool mrpt::opengl::COpenGLStandardObject::isEnabled | ( | _GLENUM | flag | ) | const [inline] |
Check whether an openGL will be enabled during the rendering of this object.
Definition at line 100 of file COpenGLStandardObject.h.
| virtual void mrpt::opengl::COpenGLStandardObject::render | ( | ) | const [virtual] |
| void mrpt::opengl::COpenGLStandardObject::setFlags | ( | const std::vector< _GLENUM > & | v | ) | [inline] |
| void mrpt::opengl::COpenGLStandardObject::setNormal | ( | const float(&) | n[3] | ) | [inline] |
| virtual bool mrpt::opengl::COpenGLStandardObject::traceRay | ( | const mrpt::poses::CPose3D & | o, | |
| float & | dist | |||
| ) | const [virtual] |
Ray Tracing.
Will always return false, since objects of this class are not intended to have geometric properties.
uint32_t mrpt::opengl::COpenGLStandardObject::chunkSize [protected] |
Granularity of the openGL elements.
3 for GL_TRIANGLES, 4 for GL_QUADS, and so on. Setting it to 0 will generate a single openGL object.
Definition at line 60 of file COpenGLStandardObject.h.
vector<_GLENUM> mrpt::opengl::COpenGLStandardObject::enabled [protected] |
Set of openGL properties enabled in the rendering of this object.
Definition at line 64 of file COpenGLStandardObject.h.
float mrpt::opengl::COpenGLStandardObject::normal[3] [protected] |
Definition at line 65 of file COpenGLStandardObject.h.
_GLENUM mrpt::opengl::COpenGLStandardObject::type [protected] |
vector<TPoint3D> mrpt::opengl::COpenGLStandardObject::vertices [protected] |
| Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:20:53 EDT 2009 |