Public Types | Public Member Functions | Protected Attributes

SEntity Class Reference

#include <SO3Entity.h>

Inheritance diagram for SEntity:
SNode SData 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 entityName)
 SEntity (SScene *parent, std::string entityName, std::string meshName)
 SEntity (SScene *parent, std::string entityName, EntityPrefabType prefabType)
 SEntity ()
 ~SEntity ()
Ogre::Entity * getOgreEntityPointer ()
SSkeletonGetSkeleton ()
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 ()
virtual Ogre::Vector3 GetBoundingBoxCenter ()
unsigned int GetPolygonCount ()
void SetRenderQueue (Ogre::RenderQueueGroupID groupId)
unsigned int GetNumSubEntities ()
void _SetSkeleton (SSkeleton *newSkeleton)

Protected Attributes

Ogre::Entity * O3Entity
SSkeletonentitySKL

Detailed Description

Definition at line 42 of file SO3Entity.h.


Member Enumeration Documentation

Enumerator:
SO3_PREFAB_PLANE 
SO3_PREFAB_CUBE 
SO3_PREFAB_SPHERE 

Definition at line 45 of file SO3Entity.h.


Constructor & Destructor Documentation

SEntity::SEntity ( SScene parent,
std::string  entityName 
)

Definition at line 40 of file SO3Entity.cpp.

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

Definition at line 46 of file SO3Entity.cpp.

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

Definition at line 71 of file SO3Entity.cpp.

SEntity::SEntity (  )

Forbiden constructor

Definition at line 90 of file SO3Entity.cpp.

SEntity::~SEntity (  )

Definition at line 120 of file SO3Entity.cpp.


Member Function Documentation

void SEntity::_SetSkeleton ( SSkeleton newSkeleton )

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

Definition at line 204 of file SO3Entity.cpp.

Ogre::Vector3 SEntity::GetBoundingBoxCenter (  ) [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 SNode.

Definition at line 183 of file SO3Entity.cpp.

Ogre::Vector3 SEntity::GetBoundingBoxSize (  ) [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 SNode.

Definition at line 177 of file SO3Entity.cpp.

bool 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 SNode.

Definition at line 162 of file SO3Entity.cpp.

unsigned int SEntity::GetNumSubEntities (  )

Definition at line 199 of file SO3Entity.cpp.

Ogre::Entity * SEntity::getOgreEntityPointer (  )

Definition at line 127 of file SO3Entity.cpp.

unsigned int SEntity::GetPolygonCount (  )

Definition at line 189 of file SO3Entity.cpp.

float 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 SNode.

Definition at line 172 of file SO3Entity.cpp.

SSkeleton * SEntity::GetSkeleton (  )

Definition at line 132 of file SO3Entity.cpp.

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

Definition at line 137 of file SO3Entity.cpp.

void 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 SNode.

Definition at line 157 of file SO3Entity.cpp.

void 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 SNode.

Definition at line 167 of file SO3Entity.cpp.

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

Definition at line 194 of file SO3Entity.cpp.


Member Data Documentation

Definition at line 53 of file SO3Entity.h.

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

Definition at line 52 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