Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

Script Class Reference

Abstract class implemented by scripting language bindings. More...

List of all members.


Public Methods

virtual ~Script ()=0
 Destructor.

virtual void initialize (double timestamp)=0
 Initialize the Script node.

virtual void processEvent (const std::string &id, const FieldValue &value, double timestamp)=0
 Process an event.

virtual void eventsProcessed (double timestamp)=0
 Execute script code after processing events.

virtual void shutdown (double timestamp)=0
 Shut down the Script node.


Protected Methods

 Script (ScriptNode &scriptNode)
 Constructor.


Protected Attributes

ScriptNodescriptNode
 a reference to the ScriptNode that uses this Script object.


Private Methods

 Script (const Script &)
 Non-copyable. Copy constructor declared but not defined.

Script & operator= (const Script &)
 Non-copyable. Assignment operator declared but not defined.


Detailed Description

Abstract class implemented by scripting language bindings.

The runtime instantiates subclasses of Script for each VRML97 Script node; and calls its methods appropriately to execute script code.


Constructor & Destructor Documentation

~Script   [pure virtual]
 

Destructor.

Script ScriptNode   scriptNode [protected]
 

Constructor.

Parameters:
scriptNode a reference to the ScriptNode that uses this Script object.

Script const Script &    [private]
 

Non-copyable. Copy constructor declared but not defined.


Member Function Documentation

void eventsProcessed double    timestamp [pure virtual]
 

Execute script code after processing events.

void initialize double    timestamp [pure virtual]
 

Initialize the Script node.

Script & operator= const Script &    [private]
 

Non-copyable. Assignment operator declared but not defined.

void processEvent const std::string &    id,
const FieldValue   value,
double    timestamp
[pure virtual]
 

Process an event.

void shutdown double    timestamp [pure virtual]
 

Shut down the Script node.


Member Data Documentation

ScriptNode & scriptNode [protected]
 

a reference to the ScriptNode that uses this Script object.