SO3::SEntity Class Reference

#include <SO3Entity.h>

Inheritance diagram for SO3::SEntity:
SO3::SNode SO3::SData SO3::SEntityFap

List of all members.

Public Types

enum  EntityPrefabType { SO3_PREFAB_PLANE, SO3_PREFAB_CUBE, SO3_PREFAB_SPHERE }

Public Member Functions

 SEntity (SScene *parent, std::string groupName, std::string entityName, std::string meshName)
 SEntity (SScene *parent, std::string entityName, EntityPrefabType prefabType)
 SEntity (SScene *parent, std::string groupName, std::string entityName, SPointFloat sizev, SPointInt seg, SPointFloat uv)
 SEntity ()
 ~SEntity ()
Ogre::Entity * getOgreEntityPointer ()
SSkeletonGetSkeleton ()
std::string GetGroupName ()
void getSubMeshVertices (std::vector< Ogre::Vector3 > *vertices, unsigned int index, Ogre::MeshPtr curMesh)
virtual void SetCastShadows (bool castShadows)
virtual bool GetCastShadows ()
virtual void SetRenderingDistance (float distance)
virtual float GetRenderingDistance ()
virtual Ogre::Vector3 GetBoundingBoxSize (bool childs=false)
virtual Ogre::Vector3 GetBoundingBoxCenter (bool childs=false)
unsigned int GetPolygonCount ()
void SetRenderQueue (Ogre::RenderQueueGroupID groupId)
unsigned int GetNumSubEntities ()
void SetVisibilityFlags (Ogre::uint32 flags)
Ogre::uint32 GetVisibilityFlags ()
void _SetSkeleton (SSkeleton *newSkeleton)
void Reload ()

Protected Attributes

Ogre::Entity * O3Entity
SSkeletonentitySKL

Detailed Description

Definition at line 45 of file SO3Entity.h.


Member Enumeration Documentation

Enumerator:
SO3_PREFAB_PLANE 
SO3_PREFAB_CUBE 
SO3_PREFAB_SPHERE 

Definition at line 48 of file SO3Entity.h.


Constructor & Destructor Documentation

SO3::SEntity::SEntity ( SScene parent,
std::string  groupName,
std::string  entityName,
std::string  meshName 
)

constructor for mesh files

Definition at line 45 of file SO3Entity.cpp.

SO3::SEntity::SEntity ( SScene parent,
std::string  entityName,
EntityPrefabType  prefabType 
)

constructor for prefab

Definition at line 114 of file SO3Entity.cpp.

SO3::SEntity::SEntity ( SScene parent,
std::string  groupName,
std::string  entityName,
SPointFloat  sizev,
SPointInt  seg,
SPointFloat  uv 
)

constructor for plane entity

Definition at line 140 of file SO3Entity.cpp.

SO3::SEntity::SEntity (  ) 

Forbiden constructor

Definition at line 153 of file SO3Entity.cpp.

SO3::SEntity::~SEntity (  ) 

Definition at line 213 of file SO3Entity.cpp.


Member Function Documentation

void SO3::SEntity::_SetSkeleton ( SSkeleton newSkeleton  ) 

Hack to set the skeleton pointer after the SEntity was created, SSkeleton internal use only

Definition at line 336 of file SO3Entity.cpp.

Ogre::Vector3 SO3::SEntity::GetBoundingBoxCenter ( bool  childs = false  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage a bounding box.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 301 of file SO3Entity.cpp.

Ogre::Vector3 SO3::SEntity::GetBoundingBoxSize ( bool  childs = false  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage a bounding box.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 292 of file SO3Entity.cpp.

bool SO3::SEntity::GetCastShadows (  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage Shadow Casting.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 277 of file SO3Entity.cpp.

std::string SO3::SEntity::GetGroupName (  ) 

Definition at line 247 of file SO3Entity.cpp.

unsigned int SO3::SEntity::GetNumSubEntities (  ) 

Definition at line 317 of file SO3Entity.cpp.

Ogre::Entity * SO3::SEntity::getOgreEntityPointer (  ) 

Definition at line 237 of file SO3Entity.cpp.

unsigned int SO3::SEntity::GetPolygonCount (  ) 

Definition at line 307 of file SO3Entity.cpp.

float SO3::SEntity::GetRenderingDistance (  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage Rendering Distance.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 287 of file SO3Entity.cpp.

SSkeleton * SO3::SEntity::GetSkeleton (  ) 

Definition at line 242 of file SO3Entity.cpp.

void SO3::SEntity::getSubMeshVertices ( std::vector< Ogre::Vector3 > *  vertices,
unsigned int  index,
Ogre::MeshPtr  curMesh 
)

Definition at line 252 of file SO3Entity.cpp.

Ogre::uint32 SO3::SEntity::GetVisibilityFlags (  ) 

Definition at line 331 of file SO3Entity.cpp.

void SO3::SEntity::Reload (  ) 

Reload entity

Definition at line 343 of file SO3Entity.cpp.

void SO3::SEntity::SetCastShadows ( bool  castShadows  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage Shadow Casting.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 272 of file SO3Entity.cpp.

void SO3::SEntity::SetRenderingDistance ( float  distance  )  [virtual]

Remarks:
: the SNode implementation throws an exception, you must re-define this function in child classes that manage Rendering Distance.

Remarks:
: SEntity implementation, re-define from SNode .

Reimplemented from SO3::SNode.

Definition at line 282 of file SO3Entity.cpp.

void SO3::SEntity::SetRenderQueue ( Ogre::RenderQueueGroupID  groupId  ) 

Definition at line 312 of file SO3Entity.cpp.

void SO3::SEntity::SetVisibilityFlags ( Ogre::uint32  flags  ) 

Definition at line 324 of file SO3Entity.cpp.


Member Data Documentation

Definition at line 56 of file SO3Entity.h.

Ogre::Entity* SO3::SEntity::O3Entity [protected]

Definition at line 55 of file SO3Entity.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:37 2011 for SO3Engine by  doxygen 1.6.3