#include <maplib.h>
Data Structures | |
class | TypeCasts |
Public Types | |
typedef LazyStatic< TypeCasts > | StaticTypeCasts |
Public Member Functions | |
scene::Traversable & | get (NullType< scene::Traversable >) |
TransformNode & | get (NullType< TransformNode >) |
Nameable & | get (NullType< Nameable >) |
MapFile & | get (NullType< MapFile >) |
MapRoot (const std::string &name) | |
~MapRoot () | |
scene::Node & | node () |
void | instanceAttach (const scene::Path &path) |
void | instanceDetach (const scene::Path &path) |
void | insert (scene::Node &child) |
void | erase (scene::Node &child) |
scene::Node & | clone () const |
scene::Instance * | create (const scene::Path &path, scene::Instance *parent) |
void | forEachInstance (const scene::Instantiable::Visitor &visitor) |
void | insert (scene::Instantiable::Observer *observer, const scene::Path &path, scene::Instance *instance) |
scene::Instance * | erase (scene::Instantiable::Observer *observer, const scene::Path &path) |
Data Fields | |
InstanceCounter | m_instanceCounter |
Private Types | |
typedef SelectableInstance | Instance |
Private Attributes | |
IdentityTransform | m_transform |
TraversableNodeSet | m_traverse |
InstanceSet | m_instances |
NameableString | m_name |
UndoFileChangeTracker | m_changeTracker |
Definition at line 150 of file maplib.h.
typedef SelectableInstance MapRoot::Instance [private] |
typedef LazyStatic<TypeCasts> MapRoot::StaticTypeCasts |
MapRoot::MapRoot | ( | const std::string & | name | ) | [inline] |
Definition at line 194 of file maplib.h.
References GlobalUndoSystem(), m_changeTracker, m_traverse, and UndoSystem::trackerAttach().
Referenced by clone().
MapRoot::~MapRoot | ( | ) | [inline] |
Definition at line 203 of file maplib.h.
References GlobalUndoSystem(), m_changeTracker, m_traverse, and UndoSystem::trackerDetach().
scene::Node& MapRoot::clone | ( | ) | const [inline] |
scene::Instance* MapRoot::create | ( | const scene::Path & | path, | |
scene::Instance * | parent | |||
) | [inline] |
scene::Instance* MapRoot::erase | ( | scene::Instantiable::Observer * | observer, | |
const scene::Path & | path | |||
) | [inline] |
Definition at line 254 of file maplib.h.
References InstanceSet::erase(), instanceDetach(), and m_instances.
void MapRoot::erase | ( | scene::Node & | child | ) | [inline] |
Definition at line 231 of file maplib.h.
References InstanceSet::erase(), and m_instances.
void MapRoot::forEachInstance | ( | const scene::Instantiable::Visitor & | visitor | ) | [inline] |
Definition at line 245 of file maplib.h.
References InstanceSet::forEachInstance(), and m_instances.
Definition at line 189 of file maplib.h.
References m_changeTracker.
TransformNode& MapRoot::get | ( | NullType< TransformNode > | ) | [inline] |
Definition at line 181 of file maplib.h.
References m_transform.
scene::Traversable& MapRoot::get | ( | NullType< scene::Traversable > | ) | [inline] |
Definition at line 177 of file maplib.h.
References m_traverse.
void MapRoot::insert | ( | scene::Instantiable::Observer * | observer, | |
const scene::Path & | path, | |||
scene::Instance * | instance | |||
) | [inline] |
Definition at line 249 of file maplib.h.
References InstanceSet::insert(), instanceAttach(), and m_instances.
void MapRoot::insert | ( | scene::Node & | child | ) | [inline] |
Definition at line 227 of file maplib.h.
References InstanceSet::insert(), and m_instances.
void MapRoot::instanceAttach | ( | const scene::Path & | path | ) | [inline] |
Definition at line 214 of file maplib.h.
References Stack< Type >::begin(), Stack< Type >::end(), m_instanceCounter, m_traverse, and path_find_mapfile().
Referenced by insert().
void MapRoot::instanceDetach | ( | const scene::Path & | path | ) | [inline] |
Definition at line 220 of file maplib.h.
References Stack< Type >::begin(), Stack< Type >::end(), m_instanceCounter, m_traverse, and path_find_mapfile().
Referenced by erase().
Definition at line 173 of file maplib.h.
Referenced by get(), MapRoot(), and ~MapRoot().
InstanceCounter MapRoot::m_instanceCounter |
Definition at line 213 of file maplib.h.
Referenced by instanceAttach(), and instanceDetach().
InstanceSet MapRoot::m_instances [private] |
Definition at line 170 of file maplib.h.
Referenced by erase(), forEachInstance(), and insert().
NameableString MapRoot::m_name [private] |
IdentityTransform MapRoot::m_transform [private] |
TraversableNodeSet MapRoot::m_traverse [private] |
Definition at line 169 of file maplib.h.
Referenced by get(), instanceAttach(), instanceDetach(), MapRoot(), and ~MapRoot().