50#ifndef _SO_HANDLE_EVENT_ACTION_
51#define _SO_HANDLE_EVENT_ACTION_
53#include <Inventor/SbViewportRegion.h>
54#include <Inventor/actions/SoSubAction.h>
55#include <Inventor/actions/SoRayPickAction.h>
142#ifndef HIDDEN_FROM_DOC
265 static void initClass();
266 static void exitClass();
270 virtual void beginTraversal(
SoNode *node);
Class for representing a viewport.
Abstract base class for all actions.
SbBool hasTerminated() const
Returns TRUE if the traversal has reached a termination condition.
Base class for all events.
Allows nodes in a graph to receive input events.
const SbViewportRegion & getViewportRegion() const
Returns current viewport region to use for action.
float getPickRadius() const
Returns the radius (in pixels) around the viewport-space point through which the ray passes when doin...
void setHandled()
Sets whether any node has yet handled the event.
void setGrabber(SoNode *node)
Initiates grabbing of future events.
SoNode * getPickRoot() const
Returns the root node used for initiating a pick action for those nodes that want to know what is und...
SoNode * getGrabber() const
Returns the node that is currently grabbing events, or NULL if there is none.
void enableRadiusForTriangles(SbBool flag)
Enable pick radius for triangle-based shapes.
const SoPickedPointList & getPickedPointList()
Returns a list of objects intersected by a picking operation, sorted from nearest to farthest.
void setPickRadius(float radiusInPixels)
Sets the radius (in pixels) around the viewport-space point through which the ray passes when doing r...
SbBool isHandled() const
Returns whether any node has yet handled the event.
const SoEvent * getEvent() const
Returns the event being handled.
SoHandleEventAction(const SbViewportRegion &viewportRegion)
Constructor takes viewport region to use; this is needed to perform a pick operation when requested.
void setViewportRegion(const SbViewportRegion &newRegion)
Sets current viewport region to use for action.
virtual void clearApplyResult()
When applied, an action may reference nodes or create objects (e.g.
void setPickRoot(SoNode *node)
Sets the root node used for initiating a pick action for those nodes that want to know what is under ...
void setEvent(const SoEvent *ev)
Sets the event being handled.
const SoPickedPoint * getPickedPoint()
Returns the frontmost object hit (as an SoPickedPoint) by performing a pick based on the mouse locati...
void releaseGrabber()
Releases the grab.
Abstract base class for all database nodes.
Represents point on surface of picked object.
Maintains a list of pointers to SoPickedPoint instances.
Intersects objects with a ray cast into scene.
void setRadius(float radius)
Sets the radius around the point.
float getRadius() const
Gets the radius (in pixels) around the point.