NutsnBolts  0.1.0
An extension library for Coin
Loading...
Searching...
No Matches
NbScriptEvent Class Reference

The NbScriptEvent class enables you to trigger scripts based on event names. More...

Inheritance diagram for NbScriptEvent:
SoNode

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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ NbScriptEvent()

NbScriptEvent::NbScriptEvent ( void )

Constructor.

◆ ~NbScriptEvent()

NbScriptEvent::~NbScriptEvent ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ handle()

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.


The documentation for this class was generated from the following files: