OpenMW
|
#include <controller.hpp>
Public Member Functions | |
AssignControllerSourcesVisitor () | |
AssignControllerSourcesVisitor (boost::shared_ptr< ControllerSource > toAssign) | |
virtual void | visit (osg::Node &node, Controller &ctrl) |
Public Member Functions inherited from SceneUtil::ControllerVisitor | |
ControllerVisitor () | |
virtual void | apply (osg::Node &node) |
Private Attributes | |
boost::shared_ptr < ControllerSource > | mToAssign |
SceneUtil::AssignControllerSourcesVisitor::AssignControllerSourcesVisitor | ( | ) |
SceneUtil::AssignControllerSourcesVisitor::AssignControllerSourcesVisitor | ( | boost::shared_ptr< ControllerSource > | toAssign | ) |
|
virtual |
Assign the wanted ControllerSource. May be overridden in derived classes. By default assigns the ControllerSource passed to the constructor of this class if no ControllerSource is assigned to that controller yet.
Implements SceneUtil::ControllerVisitor.
|
private |