NutsnBolts
0.1.0
An extension library for Coin
|
The NbScriptEvent class enables you to trigger scripts based on event names. More...
Public Member Functions | |
NbScriptEvent (void) | |
virtual void | execScript (void) |
SbBool | handle (const SoEvent *event, SoHandleEventAction *action) |
SbBool | isClickedEvent (const SbString &name) |
SbBool | isDoubleClickedEvent (const SbString &name) |
SbBool | isGlobalEvent (const SbName &name) |
SbBool | isObjectPicked (const SoEvent *event, SoHandleEventAction *action) |
SbBool | isTooltipEvent (const SbName &name) |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoMFString | eventName |
SoSFString | script |
SoSFNode | scriptNode |
SoSFTrigger | trigger |
Protected Member Functions | |
virtual | ~NbScriptEvent () |
The NbScriptEvent class enables you to trigger scripts based on event names.
See NbNamedEvent for information about how events are named. For MouseClickEvents, this node also checks for intersections before triggering the script. This node should always be added to the event field of a NbEventNode node, and not used anywhere else.
TODO: doc
NbScriptEvent::NbScriptEvent | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
SbBool NbScriptEvent::handle | ( | const SoEvent * | event, |
SoHandleEventAction * | action ) |
Handle a single event. Will trigger if the event name matches one of the names in the eventName field.