46 VL_DEBUG_SET_OBJECT_NAME()
69 mFly->setEnabled(
false);
114 mFly->setEnabled(
false);
121 mFly->setEnabled(
true);
161 mFly->setCamera( camera );
virtual void destroyEvent()
Event generated right before the bound OpenGLContext is destroyed.
Collection< RenderEventCallback > * onFinishedCallbacks()
Returns the list of RenderEventCallback objects registered to the onRenderingFinished() event notific...
virtual void addedListenerEvent(OpenGLContext *openglContext)
Event generated whenever a listener is bound to an OpenGLContext context.
const Framebuffer * framebuffer() const
The Framebuffer on which the rendering is performed.
A simple String formatting class.
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
SceneManagerActorTree * sceneManager()
The scene manager used by the default rendering.
void set(int x, int y, int w, int h)
int width() const
The width of a render target.
This class lets you rotate a Camera or a Transform node using a virtual trackball.
void setProjectionPerspective()
Builds a perspective projection matrix for the Camera based on the Camera's and Viewport's settings...
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
void addEventListener(UIEventListener *el)
Adds an UIEventListener to be notified of OpenGLContext related events.
ref< SceneManagerActorTree > mSceneManagerActorTree
virtual void quitApplication()
Asks to the windowing system that is managing the OpenGLContext to quit the application.
const Camera * camera() const
The Camera that defines the point of view and viewport to be used when rendering the scene...
void setFrameClock(real cur_time)
The update time of the current rendering frame.
Viewport * viewport()
The viewport bound to a camera.
Visualization Library main namespace.
virtual void updateEvent()
Event generated when the bound OpenGLContext does not have any other message to process and OpenGLCon...
void setRendering(RenderingAbstract *rendering)
Sets the rendering used by the Applet, by default a Rendering.
virtual void removedListenerEvent(OpenGLContext *)
Event generated whenever a listener is unbound from an OpenGLContext context.
virtual void keyReleaseEvent(unsigned short, EKey key)
Event generated when a key is released.
virtual void setContinuousUpdate(bool continuous)
If the OpenGL context is a widget this function sets whether its area is continuously updated at each...
Simple class to be used as a timer and to retrieve the current time and date.
int height() const
The height of a render target.
A RenderEventCallback that copyes a rectangular pixel area from a source buffer to an Image at the en...
static void print(const String &message)
Application message for the user.
RenderingAbstract * rendering()
The rendering used by the Applet, by default a Rendering.
virtual void render()=0
Executes the rendering.
T * as()
Casts an Object to the specified class.
The GhostCameraManipulator class is an UIEventListener that controls the position and orientation of ...
const Renderer * renderer() const
Utility function: returns the first renderer installed or NULL if none is found.
The Rendering class collects all the information to perform the rendering of a scene.
void initialize()
Initializes the default rendering (with Rendering), the default scene manager (with SceneManagerActor...
const String & appletName() const
The applet name, used for the window title and for naming screenshots.
fvec3 vec3
Defined as: 'typedef fvec3 vec3'. See also VL_PIPELINE_PRECISION.
ref< RenderingAbstract > mRendering
ref< ReadPixels > mReadPixels
static real currentTime()
Seconds passed from an arbitrary origin QueryPerformanceFrequency should be called only once in the a...
ref< TrackballManipulator > mTrackball
virtual void swapBuffers()=0
Swaps the back and front buffers to present the last rendering.
The ref<> class is used to reference-count an Object.
virtual void updateScene()
Override this to update the content of your scene.
OpenGLContext * openglContext()
Returns the OpenGLContext to which this UIEventListener is bound or NULL if no context is bound...
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
void removeEventListener(UIEventListener *el)
Removes an UIEventListener.
void bindManipulators(Camera *camera)
ref< GhostCameraManipulator > mFly
Collection< SceneManager > * sceneManagers()
Returns the list of SceneManager[s] containing the Actor[s] to be rendered.
virtual void resizeEvent(int, int)
Event generated when the bound OpenGLContext is resized.
virtual void update()=0
If the OpenGLContext is a widget this function requests a redraw and generates an updateEvent()...
A SceneManagerBVH that implements its spatial partitioning strategy using an ActorTree.
virtual bool setFullscreen(bool)
If the OpenGL context is a widget this function requests a maximization to fullscreen.