Defines a distributed primitive count action. More...
#include <ScaleViz/actions/ScGetPrimitiveCountAction.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
ScGetPrimitiveCountAction (SoAction::DistribMode distribMode=SoAction::LOCAL_ONLY, ScGetPrimitiveCountCallback *callback=NULL, void *userData=NULL) | |
virtual void | apply (SoNode *node) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
The ScGetPrimitiveCountAction class provides a simple way to distribute an SoGetPrimitiveCountAction 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).
ScGetPrimitiveCountAction::ScGetPrimitiveCountAction | ( | SoAction::DistribMode | distribMode = SoAction::LOCAL_ONLY , |
|
ScGetPrimitiveCountCallback * | callback = NULL , |
|||
void * | userData = NULL | |||
) |
Constructor.
distribMode | specify the way the action may be distributed | |
callback | pointer to the function used to get the result of the action | |
userData | pointer to user data |
virtual void ScGetPrimitiveCountAction::apply | ( | SoNode * | node | ) | [virtual] |
static SoType ScGetPrimitiveCountAction::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoGetPrimitiveCountAction.
virtual SoType ScGetPrimitiveCountAction::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoGetPrimitiveCountAction.