Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::RenderEventCallback Class Reference

An abstract class used to react to rendering events. More...

#include <RenderEventCallback.hpp>

Inheritance diagram for vl::RenderEventCallback:
vl::Object vl::BlitFramebuffer vl::CopyTexSubImage vl::ReadPixels vl::CopyTexSubImage1D vl::CopyTexSubImage2D vl::CopyTexSubImage3D

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 RenderEventCallback ()
virtual bool onRenderingStarted (const RenderingAbstract *)=0
 Reimplement to react to this event.
virtual bool onRenderingFinished (const RenderingAbstract *)=0
 Reimplement to react to this event.
virtual bool onRendererStarted (const RendererAbstract *)=0
 Reimplement to react to this event.
virtual bool onRendererFinished (const RendererAbstract *)=0
 Reimplement to react to this event.
void setRemoveAfterCall (bool remove)
 Defines if the callback shall be removed after being executed.
bool removeAfterCall () const
 Defines if the callback shall be removed after being executed.
void setEnabled (bool enabled)
 Enabled/disabled callback.
bool isEnabled () const
 Whether the callback is enabled or not.

Protected Attributes

bool mRemoveAfterCall
bool mEnabled

Detailed Description

An abstract class used to react to rendering events.

You can bind a callback to both Rendering and Renderer. The callbacks are executed in the same order in which they appear in the containing collection.

See also:

Constructor & Destructor Documentation

vl::RenderEventCallback::RenderEventCallback (  ) [inline]

Member Function Documentation

virtual const char* vl::RenderEventCallback::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

Reimplemented in vl::BlitFramebuffer, vl::CopyTexSubImage, vl::CopyTexSubImage1D, vl::CopyTexSubImage2D, vl::CopyTexSubImage3D, and vl::ReadPixels.

virtual bool vl::RenderEventCallback::onRenderingStarted ( const RenderingAbstract  ) [pure virtual]

Reimplement to react to this event.

Returns:
true if the callback reacted to the given event.

Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.

virtual bool vl::RenderEventCallback::onRenderingFinished ( const RenderingAbstract  ) [pure virtual]

Reimplement to react to this event.

Returns:
true if the callback reacted to the given event.

Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.

virtual bool vl::RenderEventCallback::onRendererStarted ( const RendererAbstract  ) [pure virtual]

Reimplement to react to this event.

Returns:
true if the callback reacted to the given event.

Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.

virtual bool vl::RenderEventCallback::onRendererFinished ( const RendererAbstract  ) [pure virtual]

Reimplement to react to this event.

Returns:
true if the callback reacted to the given event.

Implemented in vl::BlitFramebuffer, vl::CopyTexSubImage, and vl::ReadPixels.

void vl::RenderEventCallback::setRemoveAfterCall ( bool  remove ) [inline]

Defines if the callback shall be removed after being executed.

Note that the callback is removed only if the renderingCallback() method returns true.

bool vl::RenderEventCallback::removeAfterCall (  ) const [inline]

Defines if the callback shall be removed after being executed.

Note that the callback is removed only if the renderingCallback() method returns true.

void vl::RenderEventCallback::setEnabled ( bool  enabled ) [inline]

Enabled/disabled callback.

Disabled callbacks won't be notified of any event.

bool vl::RenderEventCallback::isEnabled (  ) const [inline]

Whether the callback is enabled or not.

Disabled callbacks won't be notified of any event.


Member Data Documentation


The documentation for this class was generated from the following file:

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 10:33:51.
Permission is granted to use this page to write and publish articles regarding Visualization Library.