#include <mrpt/opengl/CRenderizable.h>
Public Member Functions | |
CRenderizable () | |
Default constructor:. | |
virtual | ~CRenderizable () |
CRenderizable * | clone () const |
Interface for the stlplus smart pointer class. | |
virtual void | render ()=0 |
This virtual method in the base class performs common tasks like coordinates transformation,color,. | |
void | setPose (const mrpt::poses::CPose3D &o) |
Set the 3D pose from a mrpt::poses::CPose3D object. | |
Static Public Member Functions | |
static void | renderTextBitmap (const char *str, void *fontStyle) |
Public Attributes | |
std::string | m_name |
double | m_color_R |
double | m_color_G |
double | m_color_B |
double | m_color_A |
Color components in the range [0,1]. | |
double | m_x |
double | m_y |
double | m_z |
Translation relative to parent coordinate origin. | |
double | m_yaw |
double | m_pitch |
double | m_roll |
Rotation relative to parent coordinate origin, in **DEGREES**. | |
bool | m_show_name |
Protected Member Functions | |
void | writeToStreamRender (utils::CStream &out) const |
void | readFromStreamRender (utils::CStream &in) |
Static Protected Member Functions | |
static void | checkOpenGLError () |
Checks glGetError and throws an exception if an error situation is found. | |
static unsigned int | getNewTextureNumber () |
Returns the lowest, free texture name. | |
static void | releaseTextureName (unsigned int i) |
Friends | |
class | mrpt::opengl::COpenGLViewport |
In this class there are a set of common properties to all 3D objects, mainly:
Definition at line 56 of file CRenderizable.h.
mrpt::opengl::CRenderizable::CRenderizable | ( | ) | [inline] |
virtual mrpt::opengl::CRenderizable::~CRenderizable | ( | ) | [inline, virtual] |
Definition at line 82 of file CRenderizable.h.
static void mrpt::opengl::CRenderizable::checkOpenGLError | ( | ) | [static, protected] |
Checks glGetError and throws an exception if an error situation is found.
CRenderizable* mrpt::opengl::CRenderizable::clone | ( | ) | const [inline] |
Interface for the stlplus smart pointer class.
Reimplemented from mrpt::utils::CSerializable.
Definition at line 85 of file CRenderizable.h.
static unsigned int mrpt::opengl::CRenderizable::getNewTextureNumber | ( | ) | [static, protected] |
Returns the lowest, free texture name.
void mrpt::opengl::CRenderizable::readFromStreamRender | ( | utils::CStream & | in | ) | [protected] |
static void mrpt::opengl::CRenderizable::releaseTextureName | ( | unsigned int | i | ) | [static, protected] |
virtual void mrpt::opengl::CRenderizable::render | ( | ) | [pure virtual] |
This virtual method in the base class performs common tasks like coordinates transformation,color,.
..
Implemented in mrpt::opengl::C3DSScene, mrpt::opengl::CArrow, mrpt::opengl::CAxis, mrpt::opengl::CCamera, mrpt::opengl::CDisk, mrpt::opengl::CEllipsoid, mrpt::opengl::CGridPlaneXY, mrpt::opengl::CGridPlaneXZ, mrpt::opengl::CMesh, mrpt::opengl::CPlanarLaserScan, mrpt::opengl::CPointCloud, mrpt::opengl::CPointCloudColoured, mrpt::opengl::CSetOfLines, mrpt::opengl::CSetOfObjects, mrpt::opengl::CSetOfTexturedTriangles, mrpt::opengl::CSetOfTriangles, mrpt::opengl::CSimpleLine, mrpt::opengl::CSphere, mrpt::opengl::CText, and mrpt::opengl::CTexturedPlane.
static void mrpt::opengl::CRenderizable::renderTextBitmap | ( | const char * | str, | |
void * | fontStyle | |||
) | [static] |
void mrpt::opengl::CRenderizable::setPose | ( | const mrpt::poses::CPose3D & | o | ) |
Set the 3D pose from a mrpt::poses::CPose3D object.
void mrpt::opengl::CRenderizable::writeToStreamRender | ( | utils::CStream & | out | ) | const [protected] |
friend class mrpt::opengl::COpenGLViewport [friend] |
Definition at line 60 of file CRenderizable.h.
Definition at line 64 of file CRenderizable.h.
Definition at line 64 of file CRenderizable.h.
Definition at line 64 of file CRenderizable.h.
std::string mrpt::opengl::CRenderizable::m_name |
Definition at line 63 of file CRenderizable.h.
Definition at line 66 of file CRenderizable.h.
Rotation relative to parent coordinate origin, in **DEGREES**.
Definition at line 66 of file CRenderizable.h.
Definition at line 67 of file CRenderizable.h.
Definition at line 65 of file CRenderizable.h.
Definition at line 66 of file CRenderizable.h.
Translation relative to parent coordinate origin.
Reimplemented in mrpt::opengl::CGridPlaneXY.
Definition at line 65 of file CRenderizable.h.
Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN:exported at Mon Jan 12 13:00:16 UTC 2009 |