32 #ifndef Applet_INCLUDE_ONCE 33 #define Applet_INCLUDE_ONCE 76 virtual void addedListenerEvent(
OpenGLContext* openglContext);
80 virtual void keyReleaseEvent(
unsigned short,
EKey key);
82 virtual void destroyEvent();
84 virtual void updateEvent();
86 virtual void resizeEvent(
int,
int);
138 double fps()
const {
return mFPS; }
155 void bindManipulators(
Camera* camera);
TrackballManipulator * trackball()
TrackballManipulator used by the applet, activated by the "T" key.
virtual void mouseUpEvent(EMouseButton, int, int)
Event generated when one of the mouse buttons is released.
GhostCameraManipulator * ghostCameraManipulator()
GhostCameraManipulator used by the applet, activated by the "F" key.
The UIEventListener class listens to the events emitted by an OpenGLContext.
The RenderingAbstract class is the base of all the rendering related sub-classes. ...
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
SceneManagerActorTree * sceneManager()
The scene manager used by the default rendering.
virtual void enableEvent(bool)
Event generated whenever setEnabled() is called.
This class lets you rotate a Camera or a Transform node using a virtual trackball.
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
void setGhostCameraManipulator(GhostCameraManipulator *gcm)
GhostCameraManipulator used by the applet, activated by the "F" key.
const TrackballManipulator * trackball() const
const GhostCameraManipulator * ghostCameraManipulator() const
ref< SceneManagerActorTree > mSceneManagerActorTree
virtual void keyPressEvent(unsigned short, EKey)
Event generated when a key is pressed.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
virtual void fileDroppedEvent(const std::vector< String > &)
Event generated when one or more files are dropped on the bound OpenGLContext's area.
void setRendering(RenderingAbstract *rendering)
Sets the rendering used by the Applet, by default a Rendering.
virtual void mouseDownEvent(EMouseButton, int, int)
Event generated when one of the mouse buttons is pressed.
RenderingAbstract * rendering()
The rendering used by the Applet, by default a Rendering.
The GhostCameraManipulator class is an UIEventListener that controls the position and orientation of ...
void setAppletName(const String &app_name)
Sets the applet name, used for the window title and for naming screenshots.
#define VLGRAPHICS_EXPORT
The Applet class is an utilitly UIEventListener that features a ghost manipulator, trackball manipulator, an FPS counter and a simple rendering pipeline.
const String & appletName() const
The applet name, used for the window title and for naming screenshots.
double fps() const
Current average frames per second (updated every 500ms).
ref< RenderingAbstract > mRendering
ref< ReadPixels > mReadPixels
ref< TrackballManipulator > mTrackball
virtual void mouseMoveEvent(int, int)
Event generated when the mouse moves.
const SceneManagerActorTree * sceneManager() const
The scene manager used by the default rendering.
virtual void mouseWheelEvent(int)
Event generated when the mouse wheel rotated.
virtual void initEvent()
Event generated when the bound OpenGLContext bocomes initialized or when the event listener is bound ...
The ref<> class is used to reference-count an Object.
virtual void updateScene()
Override this to update the content of your scene.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
virtual void visibilityEvent(bool)
Event generated when the bound OpenGLContext is shown or hidden.
ref< GhostCameraManipulator > mFly
void setTrackball(TrackballManipulator *trackball)
TrackballManipulator used by the applet, activated by the "T" key.
const RenderingAbstract * rendering() const
The rendering used by the Applet, by default a Rendering.
A SceneManagerBVH that implements its spatial partitioning strategy using an ActorTree.