An event sent by an mrpt::opengl::COpenGLViewport just after clearing the viewport and setting the GL_PROJECTION matrix, and before calling the scene OpenGL drawing primitives.
While handling this event you can call OpenGL glBegin(),glEnd(),gl* functions or those in mrpt::opengl::gl_utils to draw stuff *in the back* of the normal objects contained in the COpenGLScene.
After processing this event, COpenGLViewport will change the OpenGL matrix mode into "GL_MODELVIEW" and load an identity matrix to continue rendering the scene objects as usual. Any change done to the GL_PROJECTION will have effects, so do a glPushMatrix()/glPopMatrix() if that is not your intention.
IMPORTANTE NOTICE: Event handlers in your observer class will most likely be invoked from an internal GUI thread of MRPT, so all your code in the handler must be thread safe.
Definition at line 371 of file COpenGLViewport.h.
#include <mrpt/opengl/COpenGLViewport.h>

Public Member Functions | |
| mrptEventGLPreRender (const COpenGLViewport *obj) | |
| template<class EVENTTYPE > | |
| bool | isOfType () const |
| template<class EVENTTYPE > | |
| const EVENTTYPE * | getAs () const |
Public Attributes | |
| const COpenGLViewport *const | source_viewport |
| mrpt::system::TTimeStamp | timestamp |
Protected Member Functions | |
| virtual void | do_nothing () |
| Just to allow this class to be polymorphic. | |
| mrpt::opengl::mrptEventGLPreRender::mrptEventGLPreRender | ( | const COpenGLViewport * | obj | ) | [inline] |
Definition at line 376 of file COpenGLViewport.h.
| virtual void mrpt::opengl::mrptEventGLPreRender::do_nothing | ( | ) | [inline, protected, virtual] |
Just to allow this class to be polymorphic.
Reimplemented from mrpt::utils::mrptEvent.
Definition at line 374 of file COpenGLViewport.h.
| const EVENTTYPE* mrpt::utils::mrptEvent::getAs | ( | ) | const [inline, inherited] |
Definition at line 66 of file mrptEvent.h.
| bool mrpt::utils::mrptEvent::isOfType | ( | ) | const [inline, inherited] |
Definition at line 63 of file mrptEvent.h.
Definition at line 377 of file COpenGLViewport.h.
Definition at line 68 of file mrptEvent.h.
| Page generated by Doxygen 1.7.4 for MRPT 0.9.5 SVN:2717 at Sun Oct 16 16:08:03 PDT 2011 | Hosted on: |