Listener for mouse events on movable objects in a 3D view.
More...
#include <visualization/InteractionListener3D.h>
|
virtual | ~InteractionListener3D () |
|
virtual bool | onMousePressed (QMouseEvent *e, Ogre::MovableObject *object) |
| Called when the user presses a mouse button while mouse is over a movable object. More...
|
|
virtual bool | onMousePressed (QMouseEvent *e, Ogre::MovableObject *object, double distance, const Ogre::Ray *ray) |
| Called when the user presses a mouse button while mouse is over a movable object. More...
|
|
virtual bool | onMouseMoved (QMouseEvent *e, Ogre::MovableObject *object) |
| Called when the user moves the mouse after pressing a mouse button while mouse is over a movable object. More...
|
|
virtual bool | onMouseReleased (QMouseEvent *e, Ogre::MovableObject *object) |
| Called when the user releases a mouse button. More...
|
|
Listener for mouse events on movable objects in a 3D view.
Can be used to register on events in a IVisualizationSite3D (call registerInteractionListener).
◆ ~InteractionListener3D()
◆ onMousePressed() [1/2]
virtual bool onMousePressed |
( |
QMouseEvent * |
e, |
|
|
Ogre::MovableObject * |
object |
|
) |
| |
|
inlinevirtual |
Called when the user presses a mouse button while mouse is over a movable object.
Provided for API backward compatibility
- Returns
- true if the event was handled by this listener.
◆ onMousePressed() [2/2]
virtual bool onMousePressed |
( |
QMouseEvent * |
e, |
|
|
Ogre::MovableObject * |
object, |
|
|
double |
distance, |
|
|
const Ogre::Ray * |
ray |
|
) |
| |
|
inlinevirtual |
Called when the user presses a mouse button while mouse is over a movable object.
- Parameters
-
[in] | e | The mouse event |
[in] | object | The selected object |
[in] | distance | The distance to the selected object |
[in] | ray | The mouse ray in the scene to the selected object |
- Returns
- true if the event was handled by this listener.
◆ onMouseMoved()
virtual bool onMouseMoved |
( |
QMouseEvent * |
e, |
|
|
Ogre::MovableObject * |
object |
|
) |
| |
|
inlinevirtual |
Called when the user moves the mouse after pressing a mouse button while mouse is over a movable object.
Is only called after onMousePressed was called. The passed object stays the same until the next call to onMouseReleased.
- Returns
- true if the event was handled by this listener.
◆ onMouseReleased()
virtual bool onMouseReleased |
( |
QMouseEvent * |
e, |
|
|
Ogre::MovableObject * |
object |
|
) |
| |
|
inlinevirtual |
Called when the user releases a mouse button.
Is only called after onMousePressed was called.
- Returns
- true if the event was handled by this listener.
The documentation for this class was generated from the following file: