MapRoot Class Reference

#include <maplib.h>

Collaboration diagram for MapRoot:
Collaboration graph
[legend]

Data Structures

class  TypeCasts

Public Types

typedef LazyStatic< TypeCastsStaticTypeCasts

Public Member Functions

scene::Traversable & get (NullType< scene::Traversable >)
TransformNode & get (NullType< TransformNode >)
Nameableget (NullType< Nameable >)
MapFileget (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

Detailed Description

Definition at line 150 of file maplib.h.


Member Typedef Documentation

typedef SelectableInstance MapRoot::Instance [private]

Definition at line 171 of file maplib.h.

typedef LazyStatic<TypeCasts> MapRoot::StaticTypeCasts

Definition at line 175 of file maplib.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

scene::Node& MapRoot::clone (  )  const [inline]

Definition at line 236 of file maplib.h.

References MapRoot().

scene::Instance* MapRoot::create ( const scene::Path path,
scene::Instance *  parent 
) [inline]

Definition at line 241 of file maplib.h.

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.

MapFile& MapRoot::get ( NullType< MapFile  )  [inline]

Definition at line 189 of file maplib.h.

References m_changeTracker.

Nameable& MapRoot::get ( NullType< Nameable  )  [inline]

Definition at line 185 of file maplib.h.

References m_name.

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().

scene::Node& MapRoot::node (  )  [inline]

Definition at line 208 of file maplib.h.


Field Documentation

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().

Definition at line 170 of file maplib.h.

Referenced by erase(), forEachInstance(), and insert().

Definition at line 172 of file maplib.h.

Referenced by get().

IdentityTransform MapRoot::m_transform [private]

Definition at line 168 of file maplib.h.

Referenced by get().

TraversableNodeSet MapRoot::m_traverse [private]

Definition at line 169 of file maplib.h.

Referenced by get(), instanceAttach(), instanceDetach(), MapRoot(), and ~MapRoot().


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

Generated by  doxygen 1.6.2