OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SceneUtil::AssignControllerSourcesVisitor Class Reference

#include <controller.hpp>

Inheritance diagram for SceneUtil::AssignControllerSourcesVisitor:
Collaboration diagram for SceneUtil::AssignControllerSourcesVisitor:

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
 

Constructor & Destructor Documentation

SceneUtil::AssignControllerSourcesVisitor::AssignControllerSourcesVisitor ( )
SceneUtil::AssignControllerSourcesVisitor::AssignControllerSourcesVisitor ( boost::shared_ptr< ControllerSource toAssign)

Member Function Documentation

void SceneUtil::AssignControllerSourcesVisitor::visit ( osg::Node &  node,
Controller ctrl 
)
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.

Here is the call graph for this function:

Member Data Documentation

boost::shared_ptr<ControllerSource> SceneUtil::AssignControllerSourcesVisitor::mToAssign
private

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