Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlComposite Class Reference

#include <GlComposite.h>

Inheritance diagram for tlp::GlComposite:
Collaboration diagram for tlp::GlComposite:

List of all members.


Detailed Description

GlSimpleEntity used to agregate other GlEntity.

GlSimpleEntity used to agregate other GlEntity This class provide basic function to manage other entity

Public Member Functions

Protected Attributes


Constructor & Destructor Documentation

tlp::GlComposite::GlComposite (  ) 

tlp::GlComposite::~GlComposite (  ) 


Member Function Documentation

void tlp::GlComposite::reset ( bool  deleteElems  ) 

Clear the composite, if deleteElems is true, composite's entities are delete

void tlp::GlComposite::addGlEntity ( GlSimpleEntity entity,
const std::string &  key 
)

Add new entity with name : key

void tlp::GlComposite::deleteGlEntity ( const std::string &  key  ) 

Delete entity with name : key

void tlp::GlComposite::deleteGlEntity ( GlSimpleEntity entity  ) 

Detele given entity

std::string tlp::GlComposite::findKey ( GlSimpleEntity entity  ) 

Find name of given entity

GlSimpleEntity* tlp::GlComposite::findGlEntity ( const std::string &  key  ) 

Find entity with name : key

std::map<std::string, GlSimpleEntity*>* tlp::GlComposite::getDisplays (  )  [inline]

Return map of entities in composite

void tlp::GlComposite::draw ( float  lod,
Camera camera 
) [inline, virtual]

Attention:
This function do nothing, GlComposite is a GlSimpleEntity so draw function must be define

Implements tlp::GlSimpleEntity.

virtual void tlp::GlComposite::setStencil ( int  stencil  )  [inline, virtual]

Set stencil number for all composite's children

Reimplemented from tlp::GlSimpleEntity.

virtual void tlp::GlComposite::acceptVisitor ( GlSceneVisitor visitor  )  [inline, virtual]

Function used to visit composite's children

Reimplemented from tlp::GlSimpleEntity.

Reimplemented in tlp::GlGraphComposite.

virtual void tlp::GlComposite::translate ( const Coord &  mouvement  )  [virtual]

translate the composite with children

Reimplemented from tlp::GlSimpleEntity.

virtual void tlp::GlComposite::getXML ( xmlNodePtr  rootNode  )  [virtual]

Function to export data in XML

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlGraphComposite.

virtual void tlp::GlComposite::setWithXML ( xmlNodePtr  rootNode  )  [virtual]

Function to set data with XML

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlGraphComposite.


Member Data Documentation

std::map<std::string, GlSimpleEntity*> tlp::GlComposite::elements [protected]



Tulip Software by LaBRI Visualization Team    2001 - 2008