OpenSceneGraph
3.4.0
|
NodeCallback for attaching a script to a NodeCallback so that it can be called as an update or event callback. More...
Public Member Functions | |
ScriptNodeCallback (Script *script=0, const std::string &entryPoint="") | |
ScriptNodeCallback (const ScriptNodeCallback &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osg, ScriptNodeCallback) void setScript(osg | |
Set the script to call. | |
osg::Script * | getScript () |
Get the script to call. | |
const osg::Script * | getScript () const |
Get the script to call. | |
osg::ScriptEngine * | getScriptEngine (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 |
NodeCallback for attaching a script to a NodeCallback so that it can be called as an update or event callback.
osg::ScriptNodeCallback::ScriptNodeCallback | ( | Script * | script = 0 , |
const std::string & | entryPoint = "" |
||
) | [inline] |
osg::ScriptNodeCallback::ScriptNodeCallback | ( | const ScriptNodeCallback & | rhs, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [inline] |
virtual osg::ScriptNodeCallback::~ScriptNodeCallback | ( | ) | [inline, protected, virtual] |
osg::Script* osg::ScriptNodeCallback::getScript | ( | ) | [inline] |
Get the script to call.
const osg::Script* osg::ScriptNodeCallback::getScript | ( | ) | const [inline] |
Get the script to call.
find the ScriptEngine from looking at the UserDataContainers of nodes in scene graph above the ScriptCallback.
osg::ScriptNodeCallback::META_Object | ( | osg | , |
ScriptNodeCallback | |||
) | [inline] |
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.
std::string osg::ScriptNodeCallback::_entryPoint [protected] |
osg::ref_ptr<Script> osg::ScriptNodeCallback::_script [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:43 for the OpenSceneGraph by doxygen 1.7.6.1. |