#include <model.h>
Public Types | |
typedef MemberCaller1< EModel, const std::string &,&EModel::modelChanged > | ModelChangedCaller |
Public Member Functions | |
EModel (scene::Traversable &traversable, const Callback &modelChanged) | |
~EModel () | |
void | realise () |
void | unrealise () |
void | modelChanged (const std::string &value) |
const std::string & | getName () const |
scene::Node * | getNode () const |
Private Attributes | |
ResourceReference | m_resource |
scene::Traversable & | m_traverse |
scene::Node * | m_node |
Callback | m_modelChanged |
Definition at line 32 of file model.h.
typedef MemberCaller1<EModel, const std::string&, &EModel::modelChanged> EModel::ModelChangedCaller |
EModel::EModel | ( | scene::Traversable & | traversable, | |
const Callback & | modelChanged | |||
) | [inline] |
Definition at line 40 of file model.h.
References ResourceReference::attach(), and m_resource.
EModel::~EModel | ( | ) | [inline] |
Definition at line 45 of file model.h.
References ResourceReference::detach(), and m_resource.
const std::string& EModel::getName | ( | ) | const [inline] |
Definition at line 75 of file model.h.
References ResourceReference::getName(), and m_resource.
scene::Node* EModel::getNode | ( | ) | const [inline] |
void EModel::modelChanged | ( | const std::string & | value | ) | [inline] |
Definition at line 65 of file model.h.
References ResourceReference::attach(), ResourceReference::detach(), m_modelChanged, m_resource, ResourceReference::setName(), os::standardPath(), and string.
Referenced by SingletonModel::modelChanged().
void EModel::realise | ( | ) | [inline] |
Definition at line 50 of file model.h.
References ResourceReference::get(), Resource::getNode(), Resource::load(), m_node, m_resource, and m_traverse.
void EModel::unrealise | ( | ) | [inline] |
Definition at line 58 of file model.h.
References m_node, and m_traverse.
Callback EModel::m_modelChanged [private] |
Definition at line 37 of file model.h.
Referenced by modelChanged().
scene::Node* EModel::m_node [private] |
Definition at line 36 of file model.h.
Referenced by getNode(), realise(), and unrealise().
ResourceReference EModel::m_resource [private] |
scene::Traversable& EModel::m_traverse [private] |
Definition at line 35 of file model.h.
Referenced by realise(), and unrealise().