RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
CLScene Class Reference

#include <clscene.h>

Inheritance diagram for CLScene:
CObject CLAssetsRepository

Public Member Functions

 CLScene (char *filename)
 
std::vector< std::string > getNodeIdList ()
 
CLNode * getNodeHavingId (const std::string &node_id)
 
CLMaterial * getMaterialHavingId (const std::string &material_id)
 
CLMaterial * getMaterialHavingName (const std::string &material_name)
 
CLEffect * getEffectHavingId (const std::string &effect_id)
 
CLImageDetails * getImageDetailsHavingId (const std::string &image_id)
 
CLGeometry * getGeometryObjHavingId (const std::string &geometry_obj_id)
 
void insertImagePair (const std::string &image_id, CLImageDetails *image_details)
 
void insertMaterialPair (const std::string &material_id, CLMaterial *material)
 
void insertEffectPair (const std::string &effect_id, CLEffect *effect)
 
void insertGeometryPair (const std::string &geometry_id, CLGeometry *geometry)
 
void insertNodesPair (const std::string &node_id, CLNode *node)
 
bool loadImage (TiXmlElement *image_node)
 
bool loadMaterial (TiXmlElement *material_node)
 
bool loadNode (TiXmlElement *node)
 
bool loadScene (TiXmlElement *scene_node)
 
bool loadEffect (TiXmlElement *effect_node)
 
const ImagesMapType * images () const
 
const MaterialsMapType * materials () const
 
const EffectsMapType * effects () const
 
const GeometriesMapType * geometries () const
 
const NodesMapType * nodes () const
 
const CLImageDetails * imageDetails () const
 
bool reloadMaterials ()
 
bool reloadImages ()
 
bool reloadNodes ()
 
bool reloadEffects ()
 
bool reloadGeometries ()
 
CLPhongChild * getPhongChildFromNode (TiXmlElement *node)
 
CLInstanceGeometry getInstanceGeometryFromNode (TiXmlElement *instance_geometry_node)
 
 ~CLScene (void)
 
- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObject & operator= (const CObject &object)
 
CObject * retain ()
 
unsigned int release () const
 
CObject * autorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Protected Member Functions

 CLScene ()
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 

Detailed Description

Definition at line 47 of file clscene.h.

Constructor & Destructor Documentation

CLScene::CLScene ( char *  filename)

Definition at line 65 of file clscene.cpp.

CLScene::~CLScene ( void  )

Definition at line 820 of file clscene.cpp.

CLScene::CLScene ( )
protected

Definition at line 54 of file clscene.cpp.

Member Function Documentation

const EffectsMapType * CLScene::effects ( ) const

Definition at line 372 of file clscene.cpp.

const GeometriesMapType * CLScene::geometries ( ) const

Definition at line 378 of file clscene.cpp.

CLEffect * CLScene::getEffectHavingId ( const std::string &  effect_id)

Definition at line 123 of file clscene.cpp.

CLGeometry * CLScene::getGeometryObjHavingId ( const std::string &  geometry_obj_id)

Definition at line 135 of file clscene.cpp.

CLImageDetails * CLScene::getImageDetailsHavingId ( const std::string &  image_id)

Definition at line 129 of file clscene.cpp.

CLInstanceGeometry CLScene::getInstanceGeometryFromNode ( TiXmlElement *  instance_geometry_node)

Definition at line 739 of file clscene.cpp.

CLMaterial * CLScene::getMaterialHavingId ( const std::string &  material_id)

Definition at line 117 of file clscene.cpp.

CLMaterial * CLScene::getMaterialHavingName ( const std::string &  material_name)

Definition at line 505 of file clscene.cpp.

CLNode * CLScene::getNodeHavingId ( const std::string &  node_id)

Definition at line 111 of file clscene.cpp.

std::vector< std::string > CLScene::getNodeIdList ( )

Definition at line 97 of file clscene.cpp.

CLPhongChild * CLScene::getPhongChildFromNode ( TiXmlElement *  node)

Definition at line 795 of file clscene.cpp.

const CLImageDetails * CLScene::imageDetails ( ) const

Definition at line 384 of file clscene.cpp.

const ImagesMapType * CLScene::images ( ) const

Definition at line 360 of file clscene.cpp.

void CLScene::insertEffectPair ( const std::string &  effect_id,
CLEffect *  effect 
)

Definition at line 153 of file clscene.cpp.

void CLScene::insertGeometryPair ( const std::string &  geometry_id,
CLGeometry *  geometry 
)

Definition at line 159 of file clscene.cpp.

void CLScene::insertImagePair ( const std::string &  image_id,
CLImageDetails *  image_details 
)

Definition at line 141 of file clscene.cpp.

void CLScene::insertMaterialPair ( const std::string &  material_id,
CLMaterial *  material 
)

Definition at line 147 of file clscene.cpp.

void CLScene::insertNodesPair ( const std::string &  node_id,
CLNode *  node 
)

Definition at line 165 of file clscene.cpp.

bool CLScene::loadEffect ( TiXmlElement *  effect_node)

Definition at line 275 of file clscene.cpp.

bool CLScene::loadImage ( TiXmlElement *  image_node)

Definition at line 171 of file clscene.cpp.

bool CLScene::loadMaterial ( TiXmlElement *  material_node)

Definition at line 191 of file clscene.cpp.

bool CLScene::loadNode ( TiXmlElement *  node)

Definition at line 214 of file clscene.cpp.

bool CLScene::loadScene ( TiXmlElement *  scene_node)

Definition at line 261 of file clscene.cpp.

const MaterialsMapType * CLScene::materials ( ) const

Definition at line 366 of file clscene.cpp.

const NodesMapType * CLScene::nodes ( ) const

Definition at line 354 of file clscene.cpp.

bool CLScene::reloadEffects ( )

Definition at line 460 of file clscene.cpp.

bool CLScene::reloadGeometries ( )

Definition at line 485 of file clscene.cpp.

bool CLScene::reloadImages ( )

Definition at line 415 of file clscene.cpp.

bool CLScene::reloadMaterials ( )

Definition at line 390 of file clscene.cpp.

bool CLScene::reloadNodes ( )

Definition at line 440 of file clscene.cpp.


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