MIRA
Public Member Functions | List of all members
InteractionListener3D Class Reference

Listener for mouse events on movable objects in a 3D view. More...

#include <visualization/InteractionListener3D.h>

Public Member Functions

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...
 

Detailed Description

Listener for mouse events on movable objects in a 3D view.

Can be used to register on events in a IVisualizationSite3D (call registerInteractionListener).

Constructor & Destructor Documentation

◆ ~InteractionListener3D()

virtual ~InteractionListener3D ( )
inlinevirtual

Member Function Documentation

◆ 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]eThe mouse event
[in]objectThe selected object
[in]distanceThe distance to the selected object
[in]rayThe 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: