se_ogre::ThingDebug Class Reference

An entity visually representing a se_core::Thing in 3D. More...

#include <ThingDebug.hpp>

Inheritance diagram for se_ogre::ThingDebug:

se_ogre::ThingMO List of all members.

Public Member Functions

 ThingDebug (se_core::PosComponent &thing, const ThingMOInfo &info, const ThingMOFactory &factory)
 ~ThingDebug ()
void animate (long when, float stepDelta, float timeSinceLastFrame)
 Update animations and material.
void addToStaticGeometry (const char *name)
short anim (int channel)
bool hasAnimation () const
void setVisible (bool state)
bool isVisible ()
void move (long when, float stepDelta, float timeSinceLastFrame)
void resetPos ()
bool hasThing (se_core::Composite &thing)
void setParentNode (Ogre::SceneNode *sn)
const char * name () const

Protected Types

enum  { MAX_ANIMS = se_core::Pos::MAX_ANIMS }

Protected Member Functions

void setAnimation (int channel, const se_core::Anim &anim)
 Set the active animation.
void setMaterial (const char *mat)
 Set the active material.

Protected Attributes

Ogre::Entity * entity_
Ogre::AnimationState * state_ [MAX_ANIMS]
float speed_ [MAX_ANIMS]
short prevAnim_ [MAX_ANIMS]
se_core::PosComponentthing_
const ThingMOFactoryfactory_
const ThingMOInfoinfo_
bool hasAnimation_
Ogre::SceneNode * parentNode_
Ogre::SceneNode * node_
bool isVisible_
Ogre::Real currentScale_
se_core::ViewPoint last_

Friends

class ThingMOFactory
class ThingMOManager

Detailed Description

An entity visually representing a se_core::Thing in 3D.

Definition at line 36 of file ThingDebug.hpp.


Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
MAX_ANIMS 

Definition at line 68 of file ThingDebug.hpp.


Constructor & Destructor Documentation

se_ogre::ThingDebug::ThingDebug se_core::PosComponent thing,
const ThingMOInfo info,
const ThingMOFactory factory
 

Parameters:
thing The thing that this entity is visually representing.

Definition at line 41 of file ThingDebug.cpp.

se_ogre::ThingDebug::~ThingDebug  ) 
 

Definition at line 67 of file ThingDebug.cpp.


Member Function Documentation

void se_ogre::ThingDebug::addToStaticGeometry const char *  name  ) 
 

short se_ogre::ThingDebug::anim int  channel  ) 
 

void se_ogre::ThingDebug::animate long  when,
float  stepDelta,
float  timeSinceLastFrame
[virtual]
 

Update animations and material.

Parameters:
Time sinse last move

Implements se_ogre::ThingMO.

Definition at line 81 of file ThingDebug.cpp.

References se_core::BoundingBox::center(), se_core::BoundingBox::maxX_, se_core::BoundingBox::maxY_, se_core::BoundingBox::maxZ_, se_core::BoundingBox::minX_, se_core::BoundingBox::minY_, se_core::BoundingBox::minZ_, se_core::Tuple3::x_, and se_core::Tuple3::z_.

bool se_ogre::ThingMO::hasAnimation  )  const [inline, inherited]
 

Definition at line 35 of file ThingMO.hpp.

Referenced by se_ogre::ThingMultiMO::animateChildren().

bool se_ogre::ThingMO::hasThing se_core::Composite thing  )  [inline, inherited]
 

Definition at line 41 of file ThingMO.hpp.

References se_core::Composite::id().

bool se_ogre::ThingMO::isVisible  )  [inline, inherited]
 

Definition at line 37 of file ThingMO.hpp.

void se_ogre::ThingMO::move long  when,
float  stepDelta,
float  timeSinceLastFrame
[inherited]
 

Definition at line 62 of file ThingMO.cpp.

References coor_double_t, and se_core::Point3::distanceSquared().

Referenced by se_ogre::O3dThingComponent::move(), and se_ogre::ThingMultiMO::moveChildren().

const char* se_ogre::ThingMO::name  )  const [inline, inherited]
 

Definition at line 43 of file ThingMO.hpp.

References se_core::Composite::name().

void se_ogre::ThingMO::resetPos  )  [inherited]
 

Definition at line 129 of file ThingMO.cpp.

Referenced by se_ogre::O3dThingComponent::move(), and se_ogre::ThingMultiMO::moveChildren().

void se_ogre::ThingDebug::setAnimation int  channel,
const se_core::Anim anim
[protected]
 

Set the active animation.

void se_ogre::ThingDebug::setMaterial const char *  mat  )  [protected]
 

Set the active material.

Definition at line 75 of file ThingDebug.cpp.

void se_ogre::ThingMO::setParentNode Ogre::SceneNode *  sn  )  [inherited]
 

Definition at line 112 of file ThingMO.cpp.

Referenced by se_ogre::ThingMultiMO::add(), and se_ogre::O3dThingComponent::add().

void se_ogre::ThingMO::setVisible bool  state  )  [inherited]
 

Definition at line 100 of file ThingMO.cpp.

Referenced by se_ogre::ThingMultiMO::add().


Friends And Related Function Documentation

friend class ThingMOFactory [friend, inherited]
 

Definition at line 46 of file ThingMO.hpp.

friend class ThingMOManager [friend, inherited]
 

Definition at line 54 of file ThingMO.hpp.


Member Data Documentation

Ogre::Real se_ogre::ThingMO::currentScale_ [protected, inherited]
 

Definition at line 63 of file ThingMO.hpp.

Ogre::Entity* se_ogre::ThingDebug::entity_ [protected]
 

Definition at line 66 of file ThingDebug.hpp.

const ThingMOFactory& se_ogre::ThingMO::factory_ [protected, inherited]
 

Definition at line 55 of file ThingMO.hpp.

Referenced by se_ogre::ThingMOManager::release().

bool se_ogre::ThingMO::hasAnimation_ [protected, inherited]
 

Definition at line 57 of file ThingMO.hpp.

const ThingMOInfo& se_ogre::ThingMO::info_ [protected, inherited]
 

Definition at line 56 of file ThingMO.hpp.

bool se_ogre::ThingMO::isVisible_ [protected, inherited]
 

Definition at line 61 of file ThingMO.hpp.

se_core::ViewPoint se_ogre::ThingMO::last_ [protected, inherited]
 

Definition at line 65 of file ThingMO.hpp.

Ogre::SceneNode* se_ogre::ThingMO::node_ [protected, inherited]
 

Definition at line 60 of file ThingMO.hpp.

Ogre::SceneNode* se_ogre::ThingMO::parentNode_ [protected, inherited]
 

Definition at line 59 of file ThingMO.hpp.

short se_ogre::ThingDebug::prevAnim_[MAX_ANIMS] [protected]
 

Definition at line 71 of file ThingDebug.hpp.

float se_ogre::ThingDebug::speed_[MAX_ANIMS] [protected]
 

Definition at line 70 of file ThingDebug.hpp.

Ogre::AnimationState* se_ogre::ThingDebug::state_[MAX_ANIMS] [protected]
 

Definition at line 69 of file ThingDebug.hpp.

se_core::PosComponent& se_ogre::ThingMO::thing_ [protected, inherited]
 

Definition at line 52 of file ThingMO.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:33 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo