Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
An abstract class used to react to rendering events. More...
#include <RenderEventCallback.hpp>
Public Member Functions | |
| 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 |
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.
Definition at line 53 of file RenderEventCallback.hpp.
| vl::RenderEventCallback::RenderEventCallback | ( | ) | [inline] |
Definition at line 58 of file RenderEventCallback.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual bool vl::RenderEventCallback::onRenderingStarted | ( | const RenderingAbstract * | ) | [pure virtual] |
Reimplement to react to this event.
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.
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.
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.
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.
Definition at line 81 of file RenderEventCallback.hpp.
References mRemoveAfterCall.
| 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.
Definition at line 85 of file RenderEventCallback.hpp.
References mRemoveAfterCall.
| void vl::RenderEventCallback::setEnabled | ( | bool | enabled | ) | [inline] |
Enabled/disabled callback.
Disabled callbacks won't be notified of any event.
Definition at line 88 of file RenderEventCallback.hpp.
References mEnabled.
| bool vl::RenderEventCallback::isEnabled | ( | ) | const [inline] |
Whether the callback is enabled or not.
Disabled callbacks won't be notified of any event.
Definition at line 91 of file RenderEventCallback.hpp.
References mEnabled.
bool vl::RenderEventCallback::mRemoveAfterCall [protected] |
Definition at line 94 of file RenderEventCallback.hpp.
Referenced by removeAfterCall(), and setRemoveAfterCall().
bool vl::RenderEventCallback::mEnabled [protected] |
Definition at line 95 of file RenderEventCallback.hpp.
Referenced by isEnabled(), and setEnabled().