orxonox::Scene Class Reference

#include <src/orxonox/objects/Scene.h>

Inheritance diagram for orxonox::Scene:

orxonox::BaseObject orxonox::Synchronisable orxonox::Tickable orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

void addPhysicalObject (WorldEntity *object)
const ColourValue & getAmbientLight () const
const Vector3 & getGravity () const
const Vector3 & getNegativeWorldRange () const
const Vector3 & getPositiveWorldRange () const
Ogre::SceneNode * getRootSceneNode () const
Ogre::SceneManager * getSceneManager () const
bool getShadow () const
const std::stringgetSkybox () const
bool hasPhysics ()
void registerVariables ()
void removePhysicalObject (WorldEntity *object)
 Scene (BaseObject *creator)
void setAmbientLight (const ColourValue &colour)
void setGravity (const Vector3 &gravity)
void setNegativeWorldRange (const Vector3 &range)
void setPhysicalWorld (bool wantsPhysics)
void setPositiveWorldRange (const Vector3 &range)
void setShadow (bool bShadow)
void setSkybox (const std::string &skybox)
virtual void tick (float dt)
 Gets called every frame.
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Scene ()

Private Member Functions

void addObject (BaseObject *object)
BaseObjectgetObject (unsigned int index) const
void networkcallback_applyAmbientLight ()
void networkcallback_applyShadows ()
void networkcallback_applySkybox ()
void networkcallback_gravity ()
void networkcallback_hasPhysics ()
void networkcallback_negativeWorldRange ()
void networkcallback_positiveWorldRange ()

Static Private Member Functions

static bool collisionCallback (btManifoldPoint &cp, const btCollisionObject *colObj0, int partId0, int index0, const btCollisionObject *colObj1, int partId1, int index1)

Private Attributes

ColourValue ambientLight_
bool bHasPhysics_
bt32BitAxisSweep3 * broadphase_
bool bShadows_
btDefaultCollisionConfiguration * collisionConfig_
btCollisionDispatcher * dispatcher_
Vector3 gravity_
Vector3 negativeWorldRange_
std::list< BaseObject * > objects_
std::set< WorldEntity * > physicalObjectQueue_
std::set< WorldEntity * > physicalObjects_
btDiscreteDynamicsWorld * physicalWorld_
Vector3 positiveWorldRange_
Ogre::SceneNode * rootSceneNode_
Ogre::SceneManager * sceneManager_
std::string skybox_
btSequentialImpulseConstraintSolver * solver_


Constructor & Destructor Documentation

orxonox::Scene::Scene ( BaseObject creator  ) 

orxonox::Scene::~Scene (  )  [virtual]


Member Function Documentation

void orxonox::Scene::addObject ( BaseObject object  )  [private]

References objects_.

Referenced by XMLPort().

void orxonox::Scene::addPhysicalObject ( WorldEntity object  ) 

bool orxonox::Scene::collisionCallback ( btManifoldPoint &  cp,
const btCollisionObject *  colObj0,
int  partId0,
int  index0,
const btCollisionObject *  colObj1,
int  partId1,
int  index1 
) [static, private]

const ColourValue& orxonox::Scene::getAmbientLight (  )  const [inline]

Referenced by XMLPort().

const Vector3& orxonox::Scene::getGravity (  )  const [inline]

Referenced by XMLPort().

const Vector3& orxonox::Scene::getNegativeWorldRange (  )  const [inline]

Referenced by XMLPort().

BaseObject * orxonox::Scene::getObject ( unsigned int  index  )  const [private]

References objects_.

Referenced by XMLPort().

const Vector3& orxonox::Scene::getPositiveWorldRange (  )  const [inline]

Referenced by XMLPort().

Ogre::SceneNode* orxonox::Scene::getRootSceneNode (  )  const [inline]

Ogre::SceneManager* orxonox::Scene::getSceneManager (  )  const [inline]

bool orxonox::Scene::getShadow (  )  const [inline]

Referenced by XMLPort().

const std::string& orxonox::Scene::getSkybox (  )  const [inline]

Referenced by XMLPort().

bool orxonox::Scene::hasPhysics (  )  [inline]

void orxonox::Scene::networkcallback_applyAmbientLight (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_applyShadows (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_applySkybox (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_gravity (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_hasPhysics (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_negativeWorldRange (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::networkcallback_positiveWorldRange (  )  [inline, private]

Referenced by registerVariables().

void orxonox::Scene::registerVariables (  ) 

void orxonox::Scene::removePhysicalObject ( WorldEntity object  ) 

void orxonox::Scene::setAmbientLight ( const ColourValue &  colour  ) 

void orxonox::Scene::setGravity ( const Vector3 &  gravity  ) 

References gravity_, hasPhysics(), and physicalWorld_.

Referenced by XMLPort().

void orxonox::Scene::setNegativeWorldRange ( const Vector3 &  range  ) 

void orxonox::Scene::setPhysicalWorld ( bool  wantsPhysics  ) 

void orxonox::Scene::setPositiveWorldRange ( const Vector3 &  range  ) 

void orxonox::Scene::setShadow ( bool  bShadow  ) 

void orxonox::Scene::setSkybox ( const std::string skybox  ) 

void orxonox::Scene::tick ( float  dt  )  [virtual]

Gets called every frame.

Parameters:
dt The time since the last frame in seconds

Implements orxonox::Tickable.

References hasPhysics(), physicalObjectQueue_, physicalObjects_, physicalWorld_, rootSceneNode_, and orxonox::GameMode::showsGraphics().

void orxonox::Scene::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]


Member Data Documentation

ColourValue orxonox::Scene::ambientLight_ [private]

bt32BitAxisSweep3* orxonox::Scene::broadphase_ [private]

Referenced by Scene(), and setPhysicalWorld().

bool orxonox::Scene::bShadows_ [private]

Referenced by registerVariables(), Scene(), and setShadow().

btDefaultCollisionConfiguration* orxonox::Scene::collisionConfig_ [private]

Referenced by Scene(), and setPhysicalWorld().

btCollisionDispatcher* orxonox::Scene::dispatcher_ [private]

Referenced by Scene(), and setPhysicalWorld().

Vector3 orxonox::Scene::gravity_ [private]

std::list<BaseObject*> orxonox::Scene::objects_ [private]

Referenced by addObject(), and getObject().

btDiscreteDynamicsWorld* orxonox::Scene::physicalWorld_ [private]

Ogre::SceneNode* orxonox::Scene::rootSceneNode_ [private]

Referenced by Scene(), and tick().

Ogre::SceneManager* orxonox::Scene::sceneManager_ [private]

Referenced by registerVariables(), and setSkybox().

btSequentialImpulseConstraintSolver* orxonox::Scene::solver_ [private]

Referenced by Scene(), and setPhysicalWorld().


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

Generated on Tue Jul 28 16:23:01 2009 for Orxonox by  doxygen 1.5.6