Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::scene::SceneManager Class Reference

Inheritance diagram for ONE::scene::SceneManager:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Entities::Iterator EntityIt
typedef std::pair< EntityIt,
EntityIt
EntityRange

Public Member Functions

void add (Entity *entity)
void addAnimateableToInit (Animateable *an)
void clear ()
void clearTransient ()
 removes and destroys all entities that are not marked as persistent
void contents (Box &box, Array< Entity * > &contents)
template<class T>
void getAllDynamicEntitiesofType (Array< T * > &entities)
void getAllModelEntities (Array< ModelEntity * > &modelEntities)
EntityRange getEntities ()
EntitygetEntity (int id)
EntitygetEntityByName (const std::string &name)
physic::ODEWorldgetPhysicsSystem ()
void initAnimateables ()
void registerEntity (int id, std::string &name)
void remove (Entity *entity)
void update (double dt)

Static Public Member Functions

static void destroyInstance ()
 may be used to manually destroy the singleton instance
static SceneManagergetInstance ()
 accesses the singleton instance
static bool isActive ()
 checks if the singleton is active
static bool isDestroyed ()
 checks if the singleton is destroyed
static bool isVirgin ()
 checks if the singleton has not been initialized
static void setPriority (unsigned short)
 sets this singleton's shutdown priority

Protected Types

typedef Array< Entity * > Dynamics
typedef Array< Entity * > Entities

Protected Member Functions

 Singleton ()

Static Protected Member Functions

static void destroyedError ()
static void initInstance ()

Protected Attributes

Array< Animateable * > animateablesToInit
Dynamics dynamicEntities
Entities entities
ID2EntityMap idEntityMap
Name2EntityMap nameEntityMap

Member Typedef Documentation

typedef Array<Entity*> ONE::scene::SceneGraph::Dynamics [protected, inherited]
 

typedef Array<Entity*> ONE::scene::SceneGraph::Entities [protected, inherited]
 

typedef Entities::Iterator ONE::scene::SceneGraph::EntityIt [inherited]
 

typedef std::pair<EntityIt,EntityIt> ONE::scene::SceneGraph::EntityRange [inherited]
 


Member Function Documentation

void ONE::scene::SceneGraph::add Entity entity  )  [inherited]
 

void ONE::scene::SceneGraph::addAnimateableToInit Animateable an  )  [inherited]
 

void ONE::scene::SceneGraph::clear  )  [inherited]
 

void ONE::scene::SceneGraph::clearTransient  )  [inherited]
 

removes and destroys all entities that are not marked as persistent

void ONE::scene::SceneGraph::contents Box &  box,
Array< Entity * > &  contents
[inherited]
 

static void ONE::util::OrderedAutomatic< SceneManager >::destroyedError  )  [static, protected, inherited]
 

static void ONE::util::OrderedAutomatic< SceneManager >::destroyInstance  )  [static, inherited]
 

may be used to manually destroy the singleton instance

If this function is not called, the instance is destroyed automatically during shutdown.

template<class T>
void ONE::scene::SceneGraph::getAllDynamicEntitiesofType Array< T * > &  entities  )  [inline, inherited]
 

void ONE::scene::SceneGraph::getAllModelEntities Array< ModelEntity * > &  modelEntities  )  [inherited]
 

EntityRange ONE::scene::SceneGraph::getEntities  )  [inherited]
 

Entity* ONE::scene::SceneGraph::getEntity int  id  )  [inherited]
 

Entity* ONE::scene::SceneGraph::getEntityByName const std::string &  name  )  [inherited]
 

static SceneManager * ONE::util::Singleton< SceneManager , util::OrderedAutomatic >::getInstance  )  [static, inherited]
 

accesses the singleton instance

The exact operation executed by calling this function is determined by the singleton policies.

Returns:
a pointer to the singleton instance

physic::ODEWorld* ONE::scene::SceneManager::getPhysicsSystem  )  [inline]
 

void ONE::scene::SceneGraph::initAnimateables  )  [inherited]
 

static void ONE::util::OrderedAutomatic< SceneManager >::initInstance  )  [static, protected, inherited]
 

static bool ONE::util::Singleton< SceneManager , util::OrderedAutomatic >::isActive  )  [static, inherited]
 

checks if the singleton is active

Returns:
if the singleton is instantiated

static bool ONE::util::Singleton< SceneManager , util::OrderedAutomatic >::isDestroyed  )  [static, inherited]
 

checks if the singleton is destroyed

This function returns true if an instance existed and was destroyed. Note that in some cases it is possible to revive a singleton.

Returns:
if the singleton is destroyed

static bool ONE::util::Singleton< SceneManager , util::OrderedAutomatic >::isVirgin  )  [static, inherited]
 

checks if the singleton has not been initialized

A singleton is not initialized if no instance exists and no instance has been destroyed.

Returns:
if the singleton is untouched

void ONE::scene::SceneGraph::registerEntity int  id,
std::string &  name
[inherited]
 

void ONE::scene::SceneGraph::remove Entity entity  )  [inherited]
 

static void ONE::util::OrderedAutomatic< SceneManager >::setPriority unsigned  short  )  [static, inherited]
 

sets this singleton's shutdown priority

The higher the priority, the earlier the instance will be destroyed during shutdown. If the priority is changed, the highest given priority will be used.

ONE::util::Singleton< SceneManager , util::OrderedAutomatic >::Singleton  )  [protected, inherited]
 

void ONE::scene::SceneManager::update double  dt  ) 
 


Member Data Documentation

Array<Animateable*> ONE::scene::SceneGraph::animateablesToInit [protected, inherited]
 

Dynamics ONE::scene::SceneGraph::dynamicEntities [protected, inherited]
 

Entities ONE::scene::SceneGraph::entities [protected, inherited]
 

ID2EntityMap ONE::scene::SceneGraph::idEntityMap [protected, inherited]
 

Name2EntityMap ONE::scene::SceneGraph::nameEntityMap [protected, inherited]
 


Generated on Wed Sep 7 19:03:29 2005 for ONEngine by  doxygen 1.4.3