Overview     Modules     Class Hierarchy     Classes     Members  
tlp::GlProgressBar Class Reference

#include <GlProgressBar.h>

Inheritance diagram for tlp::GlProgressBar:
Collaboration diagram for tlp::GlProgressBar:

List of all members.

Public Member Functions

 GlProgressBar (const Coord &centerPosition, const unsigned int width, const unsigned int height, const Color &color)
 ~GlProgressBar ()
void setComment (const std::string &msg)
- Public Member Functions inherited from tlp::GlComposite
 GlComposite (bool deleteComponentsInDestructor=true)
 ~GlComposite ()
virtual void addLayerParent (GlLayer *layer)
virtual void removeLayerParent (GlLayer *layer)
void reset (bool deleteElems)
void addGlEntity (GlSimpleEntity *entity, const std::string &key)
void deleteGlEntity (const std::string &key, bool informTheEntity=true)
void deleteGlEntity (GlSimpleEntity *entity, bool informTheEntity=true)
std::string findKey (GlSimpleEntity *entity)
GlSimpleEntityfindGlEntity (const std::string &key)
std::map< std::string,
GlSimpleEntity * > * 
getDisplays ()
void notifyModified (GlSimpleEntity *entity)
virtual void draw (float, Camera *)
virtual void setStencil (int stencil)
virtual void acceptVisitor (GlSceneVisitor *visitor)
void setDeleteComponentsInDestructor (bool deleteComponentsInDestructor)
virtual void translate (const Coord &mouvement)
virtual void getXML (xmlNodePtr rootNode)
virtual void setWithXML (xmlNodePtr rootNode)
- Public Member Functions inherited from tlp::GlSimpleEntity
 GlSimpleEntity ()
virtual ~GlSimpleEntity ()
virtual void setVisible (bool visible)
bool isVisible ()
int getStencil ()
void setCheckByBoundingBoxVisitor (bool check)
bool isCheckByBoundingBoxVisitor ()
virtual BoundingBox getBoundingBox ()
void addParent (GlComposite *composite)
void removeParent (GlComposite *composite)
- Public Member Functions inherited from tlp::GlEntity
virtual ~GlEntity ()

Protected Member Functions

void progress_handler (int step, int max_step)

Additional Inherited Members

- Protected Attributes inherited from tlp::GlComposite
std::map< std::string,
GlSimpleEntity * > 
elements
std::list< GlSimpleEntity * > _sortedElements
std::vector< GlLayer * > layerParents
bool deleteComponentsInDestructor
- Protected Attributes inherited from tlp::GlSimpleEntity
bool visible
int stencil
bool checkByBoundingBoxVisitor
BoundingBox boundingBox
std::vector< GlComposite * > parents

Detailed Description

This class allows to display a progress bar in OpenGL


Constructor & Destructor Documentation

tlp::GlProgressBar::GlProgressBar ( const Coord &  centerPosition,
const unsigned int  width,
const unsigned int  height,
const Color &  color 
)

GlProgressBar constructor

Parameters:
centerPositionthe position of the center of the frame containing the progress bar
widththe width of the frame containing the progress bar
heightthe height of the frame containing the progress bar
colorthe color of the progress bar
tlp::GlProgressBar::~GlProgressBar ( )

Member Function Documentation

void tlp::GlProgressBar::progress_handler ( int  step,
int  max_step 
)
protected
void tlp::GlProgressBar::setComment ( const std::string &  msg)
inline

This method allow to set a comment message above the progress bar

Parameters:
msgthe text of the comment to display


Tulip Software by LaBRI Visualization Team    2001 - 2012