Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
The UIEventListener class listens to the events emitted by an OpenGLContext. More...
#include <UIEventListener.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| UIEventListener () | |
| virtual | ~UIEventListener () |
| virtual void | initEvent () |
| virtual void | mouseMoveEvent (int, int) |
| virtual void | mouseUpEvent (EMouseButton, int, int) |
| virtual void | mouseDownEvent (EMouseButton, int, int) |
| virtual void | mouseWheelEvent (int) |
| virtual void | keyPressEvent (unsigned short, EKey) |
| virtual void | keyReleaseEvent (unsigned short, EKey) |
| virtual void | resizeEvent (int, int) |
| virtual void | destroyEvent () |
| virtual void | runEvent () |
| virtual void | visibilityEvent (bool) |
| virtual void | fileDroppedEvent (const std::vector< String > &) |
| virtual void | openglContextBoundEvent (OpenGLContext *) |
| void | setRank (int rank) |
| int | rank () const |
| OpenGLContext * | openglContext () |
| Returns the OpenGL context to which this UIEventListener is bound or NULL if no context is bound. | |
| virtual void | setEnabled (bool enabled) |
| Enables or disables a UIEventListener. | |
| virtual void | prepareToReconnect () |
| Reimplement this in order to react to a setEnabled(true), see setEnabled() for more information. | |
| bool | isEnabled () const |
| bool | operator< (const UIEventListener &other) const |
Protected Attributes | |
| OpenGLContext * | mOpenGLContext |
| int | mRank |
| bool | mEnabled |
Friends | |
| class | OpenGLContext |
The UIEventListener class listens to the events emitted by an OpenGLContext.
| vl::UIEventListener::UIEventListener | ( | ) | [inline] |
| virtual vl::UIEventListener::~UIEventListener | ( | ) | [inline, virtual] |
| virtual const char* vl::UIEventListener::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Reimplemented in vl::GhostCameraManipulator, vl::TrackballManipulator, and vlut::Applet.
| virtual void vl::UIEventListener::initEvent | ( | ) | [inline, virtual] |
Reimplemented in vlut::Applet.
| virtual void vl::UIEventListener::mouseMoveEvent | ( | int | , |
| int | |||
| ) | [inline, virtual] |
Reimplemented in vl::GhostCameraManipulator, and vl::TrackballManipulator.
| virtual void vl::UIEventListener::mouseUpEvent | ( | EMouseButton | , |
| int | , | ||
| int | |||
| ) | [inline, virtual] |
Reimplemented in vl::TrackballManipulator.
| virtual void vl::UIEventListener::mouseDownEvent | ( | EMouseButton | , |
| int | , | ||
| int | |||
| ) | [inline, virtual] |
Reimplemented in vl::TrackballManipulator.
| virtual void vl::UIEventListener::mouseWheelEvent | ( | int | ) | [inline, virtual] |
| virtual void vl::UIEventListener::keyPressEvent | ( | unsigned | short, |
| EKey | |||
| ) | [inline, virtual] |
| virtual void vl::UIEventListener::keyReleaseEvent | ( | unsigned | short, |
| EKey | |||
| ) | [inline, virtual] |
Reimplemented in vlut::Applet.
| virtual void vl::UIEventListener::resizeEvent | ( | int | , |
| int | |||
| ) | [inline, virtual] |
Reimplemented in vlut::Applet.
| virtual void vl::UIEventListener::destroyEvent | ( | ) | [inline, virtual] |
Reimplemented in vlut::Applet.
| virtual void vl::UIEventListener::runEvent | ( | ) | [inline, virtual] |
Reimplemented in vl::GhostCameraManipulator, and vlut::Applet.
| virtual void vl::UIEventListener::visibilityEvent | ( | bool | ) | [inline, virtual] |
| virtual void vl::UIEventListener::fileDroppedEvent | ( | const std::vector< String > & | ) | [inline, virtual] |
| virtual void vl::UIEventListener::openglContextBoundEvent | ( | OpenGLContext * | ) | [inline, virtual] |
Reimplemented in vlut::Applet.
| void UIEventListener::setRank | ( | int | rank ) |
| int UIEventListener::rank | ( | ) | const |
| OpenGLContext * UIEventListener::openglContext | ( | ) |
Returns the OpenGL context to which this UIEventListener is bound or NULL if no context is bound.
| virtual void vl::UIEventListener::setEnabled | ( | bool | enabled ) | [inline, virtual] |
Enables or disables a UIEventListener.
| virtual void vl::UIEventListener::prepareToReconnect | ( | ) | [inline, virtual] |
Reimplement this in order to react to a setEnabled(true), see setEnabled() for more information.
Reimplemented in vl::GhostCameraManipulator, and vl::TrackballManipulator.
| bool vl::UIEventListener::isEnabled | ( | ) | const [inline] |
| bool vl::UIEventListener::operator< | ( | const UIEventListener & | other ) | const [inline] |
friend class OpenGLContext [friend] |
OpenGLContext* vl::UIEventListener::mOpenGLContext [protected] |
int vl::UIEventListener::mRank [protected] |
bool vl::UIEventListener::mEnabled [protected] |