se_ogre::O3dManager Class Reference

#include <O3dManager.hpp>

Inheritance diagram for se_ogre::O3dManager:

se_core::RootComponent se_core::NodeComponent se_core::Component List of all members.

Public Member Functions

 O3dManager ()
virtual ~O3dManager ()
void clear ()
bool frameStarted (const Ogre::FrameEvent &evt)
bool frameEnded (const Ogre::FrameEvent &evt)
void moveCamera (float stepDelta)
void showDebugOverlay (bool show)
void flipDebugOverlay ()
void step (long when)
void setCentreAligned (bool flag)
bool isShowingDebugInfo ()
void showDebugInfo (bool state)
void setEditLights (bool flag)
void setDebugText (const Ogre::String &s)
virtual void init ()
 Called by Composite.
virtual void initGame ()
virtual void cleanupGame ()
virtual void cleanup ()
 Called by Composite.
bool hasParent () const
 Does the Pos have a parent?
NodeComponent * parent ()
 Get parent.
const NodeComponent * parent () const
 Get parent.
void resetParent ()
 Set parent to none.
void setParent (NodeComponent &p)
NodeComponentList & children ()
virtual const char * name () const
 By default returns name of composite, which returns name of composite factory.
Composite * owner ()
const Composite * owner () const
 Component type.
Component * component (int type)
const Component * component (int type) const
int type () const
const ComponentFactory * factory ()
bool isActive ()
bool isDead () const

Static Public Member Functions

Composite & activeRoot ()
Composite & inactiveRoot ()

Public Attributes

bool isAreaGeomCentreAligned_

Protected Member Functions

void updateStats (void)
void parentChanged (Composite *newParent, Composite *oldParent)
 Called by Composite.
void addChild (NodeComponent &node)
 Add a NodeComponent as a child.
void removeChild (NodeComponent &node)
 Add a NodeComponent from the child list.
virtual void setActive (bool state)
 Called by Composite.
virtual void setDead ()
 Called by Composite.
virtual void zoneChanged (int type, Composite *newArea, Composite *oldArea)
 Called by Composite.

Protected Attributes

NodeComponent * parent_
 The parent of this position.
NodeComponentList children_
 List of child NodeComponents.
int type_
 The type of Component.
Composite * owner_
const ComponentFactory * factory_

Friends

class Composite

Constructor & Destructor Documentation

se_ogre::O3dManager::O3dManager  ) 
 

Definition at line 52 of file O3dManager.cpp.

References se_core::sct_RENDER.

se_ogre::O3dManager::~O3dManager  )  [virtual]
 

Definition at line 60 of file O3dManager.cpp.


Member Function Documentation

Composite & se_core::RootComponent::activeRoot  )  [static, inherited]
 

Definition at line 13 of file RootComponent.cpp.

References se_core::CompSchema::activeRoot().

void se_core::NodeComponent::addChild NodeComponent node  )  [protected, inherited]
 

Add a NodeComponent as a child.

Called by setParent of child.

Definition at line 60 of file NodeComponent.cpp.

Referenced by se_core::NodeComponent::setParent().

NodeComponentList& se_core::NodeComponent::children  )  [inline, inherited]
 

Definition at line 63 of file NodeComponent.hpp.

Referenced by se_core::NodeComponentList::TreeIterator::next().

virtual void se_core::RootComponent::cleanup  )  [inline, virtual, inherited]
 

Called by Composite.

Reimplemented from se_core::NodeComponent.

Definition at line 58 of file RootComponent.hpp.

Referenced by se_core::SimEngine::cleanupGame().

virtual void se_core::RootComponent::cleanupGame  )  [inline, virtual, inherited]
 

Reimplemented in se_core::ActionManager, se_core::CutsceneManager, se_core::PhysicsManager, se_core::ScriptManager, se_core::SignalManager, se_core::SpawnManager, se_core::ZoneManager, and se_basic::NavMeshManager.

Definition at line 57 of file RootComponent.hpp.

void se_ogre::O3dManager::clear  ) 
 

Definition at line 69 of file O3dManager.cpp.

const Component* se_core::Component::component int  type  )  const [inline, inherited]
 

Definition at line 71 of file Component.hpp.

References se_core::Component::component().

Component* se_core::Component::component int  type  )  [inline, inherited]
 

Definition at line 67 of file Component.hpp.

References se_core::Composite::component().

Referenced by se_core::Component::component(), se_core::Component::ComponentPtr< T, type >::ComponentPtr(), se_ogre::O3dThingComponent::get(), se_ogre::O3dNodeComponent::get(), and se_ogre::O3dAreaComponent::get().

const ComponentFactory* se_core::Component::factory  )  [inline, inherited]
 

Definition at line 81 of file Component.hpp.

Referenced by se_core::Composite::releaseComponents().

void se_ogre::O3dManager::flipDebugOverlay  ) 
 

Definition at line 236 of file O3dManager.cpp.

bool se_ogre::O3dManager::frameEnded const Ogre::FrameEvent &  evt  ) 
 

Definition at line 150 of file O3dManager.cpp.

bool se_ogre::O3dManager::frameStarted const Ogre::FrameEvent &  evt  ) 
 

Definition at line 97 of file O3dManager.cpp.

References AssertFatal, se_ogre::RenderEventListeners::castUpdateImpostors(), se_ogre::RenderEventListeners::castUpdateLights(), se_ogre::RenderEventListeners::castUpdateMaterials(), se_core::NodeComponentList::Iterator::hasNext(), se_ogre::O3dAreaComponent::move(), se_core::NodeComponentList::Iterator::next(), and se_ogre::O3dSchema::renderEventListeners().

bool se_core::NodeComponent::hasParent  )  const [inline, inherited]
 

Does the Pos have a parent?

Definition at line 41 of file NodeComponent.hpp.

Composite & se_core::RootComponent::inactiveRoot  )  [static, inherited]
 

Definition at line 19 of file RootComponent.cpp.

References se_core::CompSchema::inactiveRoot().

virtual void se_core::RootComponent::init  )  [inline, virtual, inherited]
 

Called by Composite.

Reimplemented from se_core::Component.

Definition at line 55 of file RootComponent.hpp.

virtual void se_core::RootComponent::initGame  )  [inline, virtual, inherited]
 

Reimplemented in se_core::CutsceneManager, se_core::ScriptManager, se_core::SignalManager, se_core::SpawnManager, se_core::ZoneManager, and se_basic::NavMeshManager.

Definition at line 56 of file RootComponent.hpp.

bool se_core::Component::isActive  )  [inherited]
 

Definition at line 26 of file Component.cpp.

bool se_core::Component::isDead  )  const [inherited]
 

Definition at line 31 of file Component.cpp.

Referenced by se_core::Actor::affect().

bool se_ogre::O3dManager::isShowingDebugInfo  )  [inline]
 

Definition at line 57 of file O3dManager.hpp.

void se_ogre::O3dManager::moveCamera float  stepDelta  ) 
 

Definition at line 173 of file O3dManager.cpp.

References se_ogre::InputManager::active(), se_ogre::O3dSchema::inputManager(), se_ogre::InputHandler::moveCamera(), se_client::CameraComponent::Ptr, and scale_t.

const char * se_core::Component::name  )  const [virtual, inherited]
 

By default returns name of composite, which returns name of composite factory.

Reimplemented in se_core::CutsceneAreaComponent, se_core::CutsceneComponent, se_core::CutsceneManager, se_core::CollisionAreaComponent, se_core::SignalAreaComponent, se_core::SignalComponent, se_core::SpawnAreaComponent, se_core::SpawnManager, se_core::ZoneAreaComponent, se_core::ZoneComponent, se_core::ZoneManager, se_basic::NavMeshAreaComponent, se_basic::NavMeshComponent, and se_basic::NavMeshManager.

Definition at line 21 of file Component.cpp.

Referenced by se_core::Area::addNeighbour(), se_core::DefaultTC::collide(), se_core::CoDefault::collide(), se_basic::Say::perform(), and se_ogre::SpeechBubble::speechEvent().

const Composite* se_core::Component::owner  )  const [inline, inherited]
 

Component type.

Definition at line 62 of file Component.hpp.

Composite* se_core::Component::owner  )  [inline, inherited]
 

Definition at line 54 of file Component.hpp.

Referenced by se_core::CollisionAreaComponent::_testCollisionCandidates(), se_core::CollisionAreaComponent::_testCollisionCandidates2(), se_core::HealthListeners::add(), se_core::ZoneAreaComponent::addNeighbour(), se_basic::PhTrackingCamera::affect(), se_core::HealthListeners::castHealthChangedEvent(), se_core::Component::ComponentPtr< T, type >::ComponentPtr(), se_ogre::ThingMOManager::create(), se_basic::SimpleAreaThingEncoder::encode(), se_core::SpawnComponent::get(), se_core::SignalComponent::get(), se_core::SignalAreaComponent::get(), se_core::ScriptComponent::get(), se_core::PosComponent::get(), se_core::PhysicsComponent::get(), se_core::StatComponent::get(), se_ogre::O3dThingComponent::get(), se_ogre::O3dNodeComponent::get(), se_ogre::O3dAreaComponent::get(), se_core::Pos::hasArea(), se_core::CollisionGrid::insert(), se_core::CollisionComponent::isCollideable(), se_core::ZoneComponent::name(), se_core::Component::ComponentPtr< T, type >::operator=(), se_core::DefaultTC::pop(), se_core::CoDefault::pop(), se_core::DefaultTC::popAndDie(), se_core::CoDefault::popAndDie(), se_core::CollisionAreaComponent::removeCollideable(), se_core::AreaManager::resetThings(), se_core::Actor::scheduleForDestruction(), se_core::AreaManager::setActive(), se_core::AreaManager::setInactive(), and updateStats().

const NodeComponent* se_core::NodeComponent::parent  )  const [inline, inherited]
 

Get parent.

const version.

Definition at line 52 of file NodeComponent.hpp.

NodeComponent* se_core::NodeComponent::parent  )  [inline, inherited]
 

Get parent.

Definition at line 46 of file NodeComponent.hpp.

void se_core::NodeComponent::parentChanged Composite newParent,
Composite oldParent
[protected, virtual, inherited]
 

Called by Composite.

Reimplemented from se_core::Component.

Reimplemented in se_core::AreaChildComponent.

Definition at line 74 of file NodeComponent.cpp.

References se_core::Composite::component().

void se_core::NodeComponent::removeChild NodeComponent node  )  [protected, inherited]
 

Add a NodeComponent from the child list.

Called by setParent of child.

Definition at line 68 of file NodeComponent.cpp.

void se_core::NodeComponent::resetParent  )  [inherited]
 

Set parent to none.

Parameters:
doKeepWorldCoor wether the local viewpoint should be updated to maintain the world viewpoint

Definition at line 41 of file NodeComponent.cpp.

virtual void se_core::Component::setActive bool  state  )  [inline, protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::RootChildComponent, se_core::ActionComponent, se_core::CutsceneAreaComponent, se_core::PhysicsAreaComponent, se_core::CollisionAreaComponent, se_core::ScriptComponent, se_core::SignalAreaComponent, se_core::SpawnAreaComponent, se_core::ZoneAreaComponent, se_client::CameraComponent, se_client::PlayerComponent, se_ogre::O3dAreaComponent, se_ogre::O3dThingComponent, and se_basic::NavMeshAreaComponent.

Definition at line 93 of file Component.hpp.

Referenced by se_core::Composite::setActive().

void se_ogre::O3dManager::setCentreAligned bool  flag  )  [inline]
 

Definition at line 52 of file O3dManager.hpp.

virtual void se_core::Component::setDead  )  [inline, protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::SignalComponent, and se_core::SpawnComponent.

Definition at line 97 of file Component.hpp.

Referenced by se_core::Composite::scheduleForDestruction().

void se_ogre::O3dManager::setDebugText const Ogre::String &  s  )  [inline]
 

Definition at line 66 of file O3dManager.hpp.

void se_ogre::O3dManager::setEditLights bool  flag  ) 
 

Definition at line 82 of file O3dManager.cpp.

void se_core::NodeComponent::setParent NodeComponent p  )  [inherited]
 

Definition at line 50 of file NodeComponent.cpp.

References se_core::NodeComponent::addChild().

void se_ogre::O3dManager::showDebugInfo bool  state  )  [inline]
 

Definition at line 61 of file O3dManager.hpp.

void se_ogre::O3dManager::showDebugOverlay bool  show  ) 
 

Definition at line 209 of file O3dManager.cpp.

References LogWarning.

void se_ogre::O3dManager::step long  when  )  [inline, virtual]
 

Implements se_core::RootComponent.

Definition at line 50 of file O3dManager.hpp.

int se_core::Component::type  )  const [inline, inherited]
 

Definition at line 76 of file Component.hpp.

Referenced by se_core::Composite::component().

void se_ogre::O3dManager::updateStats void   )  [protected]
 

Definition at line 245 of file O3dManager.cpp.

References se_core::ViewPoint::coor_, se_core::ViewPoint::face_, se_core::Composite::factory(), se_core::CompositeFactory::name(), se_core::Composite::name(), se_core::Component::owner(), se_core::Euler3::pitch_, se_core::Euler3::roll_, se_core::Tuple3::x_, se_core::Tuple3::y_, se_core::Euler3::yaw_, and se_core::Tuple3::z_.

void se_core::Component::zoneChanged int  type,
Composite newArea,
Composite oldArea
[protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::AreaChildComponent, se_core::CollisionComponent, and se_core::SignalComponent.

Definition at line 37 of file Component.cpp.

Referenced by se_core::Composite::zoneChanged().


Friends And Related Function Documentation

friend class Composite [friend, inherited]
 

Definition at line 89 of file Component.hpp.


Member Data Documentation

NodeComponentList se_core::NodeComponent::children_ [protected, inherited]
 

List of child NodeComponents.

Definition at line 92 of file NodeComponent.hpp.

const ComponentFactory* se_core::Component::factory_ [protected, inherited]
 

Definition at line 120 of file Component.hpp.

bool se_ogre::O3dManager::isAreaGeomCentreAligned_
 

Definition at line 55 of file O3dManager.hpp.

Composite* se_core::Component::owner_ [protected, inherited]
 

Definition at line 118 of file Component.hpp.

NodeComponent* se_core::NodeComponent::parent_ [protected, inherited]
 

The parent of this position.

Definition at line 89 of file NodeComponent.hpp.

int se_core::Component::type_ [protected, inherited]
 

The type of Component.

Definition at line 117 of file Component.hpp.


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:32 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo