sgEntity Class Reference

#include <sgEntity.h>

List of all members.

Public Member Functions

 sgEntity (sgEntity *p, sgEntity *n, sgView *v)
sgEntitycreateObjEntity (const char *name, sgAction *a=NULL)
sgEntitycreateCamEntity (sgAction *a=NULL)
sgEntitycreatePanEntity (sgAction *a=NULL)
void destroy ()
void destroyAll ()

Public Attributes

sgObjectobj
sgCameracam
sgPanelpan
sgActionact
sgEntitynext
sgEntityprev
sgViewview

Detailed Description

Entity class. Container class for the different engine objects for easy creation and handling.


Constructor & Destructor Documentation

sgEntity::sgEntity ( sgEntity p,
sgEntity n,
sgView v 
)

Constructor. Creates an empty enity.

Parameters:
p the previous entity in the linked object list
n the next entity in the linked object list

Member Function Documentation

sgEntity * sgEntity::createCamEntity ( sgAction a = NULL  ) 

Create camera entity. Creates a new entity consisting of just a camera and makes it next of this.

Parameters:
a pointer to the action which will be assigned to the new entity.
Returns:
pointer to the new entity
sgEntity * sgEntity::createObjEntity ( const char *  name,
sgAction a = NULL 
)

Create object entity. Creates a new entity with an object loaded from a model file or a predefined name and makes it next of this.

Parameters:
name name of the entity or the file to load it from
a pointer to the action which will be assigned to the new entity.
Returns:
pointer to the new entity
sgEntity * sgEntity::createPanEntity ( sgAction a = NULL  ) 

Create panel entity. Creates a new entity consisting of a panel and makes it next of this.

Parameters:
a pointer to the action which will be assigned to the new entity.
Returns:
pointer to the new entity
void sgEntity::destroy (  ) 

Destroy. Destroys this object.

void sgEntity::destroyAll (  ) 

Destroy All. Destroys this and all objects connected to it.


Member Data Documentation

Action. Pointer to the action handled by this entity or NULL if there is none.

Camera. Pointer to the camera handled by this entity or NULL if there is none.

Next. Pointer to the next entity within the object list or NULL if there is none.

Object. Pointer to the object handled by this entity or NULL if there is none.

Panel. Pointer to the panel handled by this entity or NULL if there is none.

Previous. Pointer to the previous entity within the object list or NULL if there is none.

View. Pointer to the view, which is needed to access its functionality.


The documentation for this class was generated from the following files:
Generated on Thu Jun 3 13:31:04 2010 for iSDGE by  doxygen 1.6.3