OpenSceneGraph  3.4.0
Public Member Functions | Protected Member Functions | Protected Attributes
osg::ScriptNodeCallback Class Reference

NodeCallback for attaching a script to a NodeCallback so that it can be called as an update or event callback. More...

Inheritance diagram for osg::ScriptNodeCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ScriptNodeCallback (Script *script=0, const std::string &entryPoint="")
 ScriptNodeCallback (const ScriptNodeCallback &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osg, ScriptNodeCallback) void setScript(osg
 Set the script to call.
osg::ScriptgetScript ()
 Get the script to call.
const osg::ScriptgetScript () const
 Get the script to call.
osg::ScriptEnginegetScriptEngine (osg::NodePath &nodePath)
 find the ScriptEngine from looking at the UserDataContainers of nodes in scene graph above the ScriptCallback.
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 NodeCallback method, calls the Script.

Protected Member Functions

virtual ~ScriptNodeCallback ()

Protected Attributes

osg::ref_ptr< Script_script
std::string _entryPoint

Detailed Description

NodeCallback for attaching a script to a NodeCallback so that it can be called as an update or event callback.


Constructor & Destructor Documentation

osg::ScriptNodeCallback::ScriptNodeCallback ( Script script = 0,
const std::string &  entryPoint = "" 
) [inline]
virtual osg::ScriptNodeCallback::~ScriptNodeCallback ( ) [inline, protected, virtual]

Member Function Documentation

Get the script to call.

Get the script to call.

find the ScriptEngine from looking at the UserDataContainers of nodes in scene graph above the ScriptCallback.

Set the script to call.

virtual void osg::ScriptNodeCallback::operator() ( osg::Node node,
osg::NodeVisitor nv 
) [virtual]

NodeCallback method, calls the Script.

Reimplemented from osg::NodeCallback.


Member Data Documentation

std::string osg::ScriptNodeCallback::_entryPoint [protected]

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

osg logo
Generated at Tue Dec 8 2015 00:16:43 for the OpenSceneGraph by doxygen 1.7.6.1.