tlp::glcomposite(3)
NAME
tlp::GlComposite - GlSimpleEntity used to agregate other GlEntity.
SYNOPSIS
#include <GlComposite.h> Inherits tlp::GlSimpleEntity. Inherited by tlp::GlAxis, tlp::GlConvexHull, tlp::GlGraphComposite, and tlp::GlProgressBar. Public Member Functions GlComposite () ~GlComposite () void reset (bool deleteElems) void addGlEntity (GlSimpleEntity *entity, const std::string &key) void deleteGlEntity (const std::string &key) void deleteGlEntity (GlSimpleEntity *entity) std::string findKey (GlSimpleEntity *entity) GlSimpleEntity * findGlEntity (const std::string &key) std::map< std::string, GlSimpleEntity * > * getDisplays () virtual void draw (float lod, Camera *camera) virtual void setStencil (int stencil) virtual void acceptVisitor (GlSceneVisitor *visitor) virtual void translate (const Coord &mouvement) virtual void getXML (xmlNodePtr rootNode) virtual void setWithXML (xmlNodePtr rootNode) Protected Attributes std::map< std::string, GlSimpleEntity * > elements std::list< GlSimpleEntity * > _sortedElements
Detailed Description
GlSimpleEntity used to agregate other GlEntity.
GlSimpleEntity used to agregate other GlEntity This class provide basic
function to manage other entity
Constructor & Destructor Documentation
tlp::GlComposite::GlComposite () tlp::GlComposite::~GlComposite ()
Member Function Documentation
- virtual void tlp::GlComposite::acceptVisitor (GlSceneVisitor * visitor)
- [inline, virtual]
Function used to visit composite's children - Reimplemented from tlp::GlSimpleEntity.
- Reimplemented in tlp::GlConvexHull, and tlp::GlGraphComposite.
- void tlp::GlComposite::addGlEntity (GlSimpleEntity * entity, const
- std::string & key)
Add new entity with name : key - void tlp::GlComposite::deleteGlEntity (GlSimpleEntity * entity)
- Detele given entity
- void tlp::GlComposite::deleteGlEntity (const std::string & key)
- Delete entity with name : key
- virtual 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.
- Reimplemented in tlp::GlConvexHull.
- GlSimpleEntity* tlp::GlComposite::findGlEntity (const std::string & key)
- Find entity with name : key
- std::string tlp::GlComposite::findKey (GlSimpleEntity * entity)
- Find name of given entity
- std::map<std::string, GlSimpleEntity*>* tlp::GlComposite::getDisplays ()
- [inline]
Return map of entities in composite - virtual void tlp::GlComposite::getXML (xmlNodePtr rootNode) [virtual]
- Function to export data in XML
- Implements tlp::GlSimpleEntity.
- Reimplemented in tlp::GlConvexHull, and tlp::GlGraphComposite.
- void tlp::GlComposite::reset (bool deleteElems)
- Clear the composite, if deleteElems is true, composite's entities are
delete - 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::setWithXML (xmlNodePtr rootNode) [virtual]
- Function to set data with XML
- Implements tlp::GlSimpleEntity.
- Reimplemented in tlp::GlConvexHull, and tlp::GlGraphComposite.
- virtual void tlp::GlComposite::translate (const Coord & mouvement)
- [virtual]
translate the composite with children - Reimplemented from tlp::GlSimpleEntity.
- Reimplemented in tlp::GlAxis, tlp::GlConvexHull, and tlp::GlNominativeAxis.
Member Data Documentation
- std::list<GlSimpleEntity *> tlp::GlComposite::_sortedElements [protected] std::map<std::string, GlSimpleEntity*> tlp::GlComposite::elements
- [protected]
Author
- Generated automatically by Doxygen for Tulip Open GL Library from the
source code.