22 #ifndef GLPROGRESSBAR_H_ 23 #define GLPROGRESSBAR_H_ 25 #include <tulip/GlComposite.h> 26 #include <tulip/SimplePluginProgress.h> 27 #include <tulip/Color.h> 28 #include <tulip/Coord.h> 30 const std::string SLIDER_TEXTURE_NAME =
"cylinderTexture.png";
36 class TLP_GL_SCOPE GlProgressBar :
public GlComposite,
public SimplePluginProgress {
48 GlProgressBar(
const Coord ¢erPosition,
const unsigned int width,
const unsigned int height,
const Color& progressBarcolor,
const Color& commentColor = Color(0, 0, 0));
56 void setComment(
const std::string& msg) {
60 void progress_handler(
int step,
int max_step);
64 Color progressBarColor, commentColor;
65 float progressBarMaxWidth, progressBarHeight;
66 float commentWidth, commentHeight;
67 Coord progressBarTLCorner;
68 Coord commentLabelCenter;
70 unsigned int currentPercent;