Defines a distributed bounding box action. More...
#include <ScaleViz/actions/ScGetBoundingBoxAction.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
ScGetBoundingBoxAction (const SbViewportRegion &viewportRegion, SoAction::DistribMode distribMode=SoAction::LOCAL_ONLY, ScGetBoundingBoxCallback *callback=NULL, void *userData=NULL) | |
virtual void | apply (SoNode *node) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
The ScGetBoundingBoxAction class provides a simple way to distribute an SoGetBoundingBoxAction across a cluster.
Several distribution modes are available:
When OIRUs are involved (i.e., in CLUSTER_ONLY and ALL modes), they apply the action on their own part of the scene graph. The application gets back the result via the callback defined by the user.
This class can be used in all compositing modes (flat, tile, depth, and local compositing).
ScGetBoundingBoxAction::ScGetBoundingBoxAction | ( | const SbViewportRegion & | viewportRegion, | |
SoAction::DistribMode | distribMode = SoAction::LOCAL_ONLY , |
|||
ScGetBoundingBoxCallback * | callback = NULL , |
|||
void * | userData = NULL | |||
) |
Constructor.
viewportRegion | viewport region to use for picking | |
distribMode | specifies the way the action should be distributed | |
callback | pointer to the function used to get the result of the action | |
userData | pointer to user data |
virtual void ScGetBoundingBoxAction::apply | ( | SoNode * | node | ) | [virtual] |
static SoType ScGetBoundingBoxAction::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoGetBoundingBoxAction.
virtual SoType ScGetBoundingBoxAction::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoGetBoundingBoxAction.