MRPT logo

mrpt::opengl::CRenderizable Class Reference

The base class of 3D objects that can be directly rendered through OpenGL. More...

#include <mrpt/opengl/CRenderizable.h>

Inheritance diagram for mrpt::opengl::CRenderizable:

mrpt::utils::CSerializable 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 mrpt::opengl::CTexturedPlane

List of all members.

Public Member Functions

 CRenderizable ()
 Default constructor:.
virtual ~CRenderizable ()
CRenderizableclone () 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


Detailed Description

The base class of 3D objects that can be directly rendered through OpenGL.

In this class there are a set of common properties to all 3D objects, mainly:

Definition at line 56 of file CRenderizable.h.


Constructor & Destructor Documentation

mrpt::opengl::CRenderizable::CRenderizable (  )  [inline]

Default constructor:.

Definition at line 73 of file CRenderizable.h.

virtual mrpt::opengl::CRenderizable::~CRenderizable (  )  [inline, virtual]

Definition at line 82 of file CRenderizable.h.


Member Function Documentation

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]

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]


Friends And Related Function Documentation

friend class mrpt::opengl::COpenGLViewport [friend]

Definition at line 60 of file CRenderizable.h.


Member Data Documentation

Color components in the range [0,1].

Definition at line 64 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.

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.

Reimplemented in mrpt::opengl::CGridPlaneXZ.

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