#include <Inventor/actions/SoHandleEventAction.h>
Inheritance diagram for SoHandleEventAction::
Public Methods | |
SoHandleEventAction (const SbViewportRegion &viewportregion) | |
virtual | ~SoHandleEventAction () |
void | setViewportRegion (const SbViewportRegion &newregion) |
const SbViewportRegion & | getViewportRegion (void) const |
void | setEvent (const SoEvent *ev) |
const SoEvent * | getEvent (void) const |
void | setHandled (void) |
SbBool | isHandled (void) const |
void | setGrabber (SoNode *node) |
void | releaseGrabber (void) |
SoNode * | getGrabber (void) const |
void | setPickRoot (SoNode *node) |
SoNode * | getPickRoot (void) const |
void | setPickRadius (const float radiusinpixels) |
const SoPickedPoint * | getPickedPoint (void) |
const SoPickedPointList & | getPickedPointList (void) |
Static Public Methods | |
void | initClass (void) |
Protected Methods | |
virtual void | beginTraversal (SoNode *node) |
This is the action used by the GUI viewer classes to pass interaction events from the window system to the nodes in the scene graph.
SoHandleEventAction also provides the functionality for tracking the object currently under the cursor, and functionality for "grabbing" the event focus.
|
Constructor. SoHandleEventAction needs a viewportregion to pass on to the raypick action instance it uses for being able to track objects under the mouse cursor. |
|
Destructor. |
|
Initializes the run-time type system for this class, and sets up the enabled elements and action method list. Reimplemented from SoAction. |
|
Set a new viewport region, replacing the one passed in the constructor. |
|
Returns the viewport region this action instance is using. |
|
Set the event to distribute to the nodes of the scene. |
|
Returns the event this action is handling. |
|
Marks the action instance as handled, hence terminates the action.
The action is only marked as handled when a node in the graph "grabs" the event this action is carrying, so the handled flag will be
|
|
Returns whether or not the event has been handled by a node during scene graph traversal.
|
|
Set a node pointer which will get all future events handled by this action until releaseGrabber() is called. |
|
Don't send the events to a "grabber" node anymore, use the default behavior of the action and pass them along to the scene graph again.
|
|
Returns the grabber node, or |
|
Sets the root node that is used for the pick action tracking the cursor. |
|
Returns the root node that is used by nodes that is tracking the cursor. |
|
Sets the pick radius for cursor tracking. |
|
Returns the SoPickedPoint information for the intersection point below the cursor. |
|
Returns a list of all intersection points below the mouse cursor. |
|
This virtual method is called from SoAction::apply(), and is the entry point for the actual scenegraph traversal. It can be overridden to initialize the action at traversal start, for specific initializations in the action subclasses inheriting SoAction. Default method just calls traverse(), which any overridden implementation of the method must do too (or call SoAction::beginTraversal()) to trigger the scenegraph traversal. Reimplemented from SoAction. |