MRPT  1.9.9
mrpt::opengl::mrptEventGLPreRender Class Reference

Detailed Description

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 481 of file COpenGLViewport.h.

#include <mrpt/opengl/COpenGLViewport.h>

Inheritance diagram for mrpt::opengl::mrptEventGLPreRender:
Inheritance graph

Public Member Functions

 mrptEventGLPreRender (const COpenGLViewport *obj)
 
template<class EVENTTYPE >
bool isOfType () const
 
template<class EVENTTYPE >
const EVENTTYPE * getAs () const
 
template<class EVENTTYPE >
EVENTTYPE * getAsNonConst () const
 

Public Attributes

const COpenGLViewport *const source_viewport
 
mrpt::Clock::time_point timestamp
 

Protected Member Functions

void do_nothing () override
 Just to allow this class to be polymorphic. More...
 

Constructor & Destructor Documentation

◆ mrptEventGLPreRender()

mrpt::opengl::mrptEventGLPreRender::mrptEventGLPreRender ( const COpenGLViewport obj)
inline

Definition at line 487 of file COpenGLViewport.h.

Member Function Documentation

◆ do_nothing()

void mrpt::opengl::mrptEventGLPreRender::do_nothing ( )
inlineoverrideprotectedvirtual

Just to allow this class to be polymorphic.

Reimplemented from mrpt::system::mrptEvent.

Definition at line 485 of file COpenGLViewport.h.

◆ getAs()

template<class EVENTTYPE >
const EVENTTYPE* mrpt::system::mrptEvent::getAs ( ) const
inlineinherited

Definition at line 47 of file mrptEvent.h.

◆ getAsNonConst()

template<class EVENTTYPE >
EVENTTYPE* mrpt::system::mrptEvent::getAsNonConst ( ) const
inlineinherited

Definition at line 53 of file mrptEvent.h.

◆ isOfType()

template<class EVENTTYPE >
bool mrpt::system::mrptEvent::isOfType ( ) const
inlineinherited

Member Data Documentation

◆ source_viewport

const COpenGLViewport* const mrpt::opengl::mrptEventGLPreRender::source_viewport

Definition at line 491 of file COpenGLViewport.h.

◆ timestamp

mrpt::Clock::time_point mrpt::system::mrptEvent::timestamp
inherited

Definition at line 58 of file mrptEvent.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020