32 #ifndef GhostCameraManipulator_INCLUDE_ONCE 33 #define GhostCameraManipulator_INCLUDE_ONCE 65 virtual void mouseMoveEvent(
int x,
int y);
67 void enableEvent(
bool enabled);
69 virtual void updateEvent();
98 void setCamera(
Camera* camera);
104 const Camera* camera()
const;
void setKeysBackward(EKey key, EKey modifier=Key_None)
Key bindings to move backward (default = Key_S).
void setKeysUp(EKey key, EKey modifier=Key_None)
Key bindings to move up (default = Key_W + Key_Shift).
The UIEventListener class listens to the events emitted by an OpenGLContext.
virtual void removedListenerEvent(OpenGLContext *)
Event generated whenever a listener is unbound from an OpenGLContext context.
virtual void mouseDownEvent(EMouseButton, int, int)
Event generated when one of the mouse buttons is pressed.
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
void setKeysLeft(EKey key, EKey modifier=Key_None)
Key bindings to move left (default = Key_A).
void setXDegrees(real degree)
void setKeysDown(EKey key, EKey modifier=Key_None)
Key bindings to move down (default = Key_S + Key_Shift).
void setMovementSpeed(real speed)
The camera translation speed (default = 50).
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
virtual void destroyEvent()
Event generated right before the bound OpenGLContext is destroyed.
real movementSpeed() const
The camera translation speed (default = 50).
Visualization Library main namespace.
virtual void addedListenerEvent(OpenGLContext *)
Event generated whenever a listener is bound to an OpenGLContext context.
virtual void fileDroppedEvent(const std::vector< String > &)
Event generated when one or more files are dropped on the bound OpenGLContext's area.
Simple class representing quantities in degrees, converts automatically to vl::radian and real...
virtual void initEvent()
Event generated when the bound OpenGLContext bocomes initialized or when the event listener is bound ...
virtual void visibilityEvent(bool)
Event generated when the bound OpenGLContext is shown or hidden.
virtual void keyReleaseEvent(unsigned short, EKey)
Event generated when a key is released.
const vec3 & position() const
The GhostCameraManipulator class is an UIEventListener that controls the position and orientation of ...
virtual void resizeEvent(int, int)
Event generated when the bound OpenGLContext is resized.
void setYDegrees(real degree)
virtual void mouseUpEvent(EMouseButton, int, int)
Event generated when one of the mouse buttons is released.
#define VLGRAPHICS_EXPORT
void setKeysForward(EKey key, EKey modifier=Key_None)
Key bindings to move forward (default = Key_W).
real rotationSpeed() const
The camera rotation speed (default = 0.5).
void setKeysRight(EKey key, EKey modifier=Key_None)
Key bindings to move right (default = Key_D).
void setPosition(vec3 position)
The ref<> class is used to reference-count an Object.
virtual void mouseWheelEvent(int)
Event generated when the mouse wheel rotated.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
void setRotationSpeed(real speed)
The camera rotation speed (default = 0.5).
virtual void keyPressEvent(unsigned short, EKey)
Event generated when a key is pressed.