21 #ifndef GLPROGRESSBAR_H_ 22 #define GLPROGRESSBAR_H_ 24 #include <tulip/GlComposite.h> 25 #include <tulip/SimplePluginProgress.h> 26 #include <tulip/Color.h> 27 #include <tulip/Coord.h> 29 const std::string SLIDER_TEXTURE_NAME =
"cylinderTexture.png";
35 class TLP_GL_SCOPE GlProgressBar :
public GlComposite,
public SimplePluginProgress {
46 GlProgressBar(
const Coord ¢erPosition,
const unsigned int width,
const unsigned int height,
47 const Color &progressBarcolor,
const Color &commentColor = Color(0, 0, 0));
49 ~GlProgressBar()
override;
55 void setComment(
const std::string &msg)
override {
60 void progress_handler(
int step,
int max_step)
override;
63 Color progressBarColor, commentColor;
64 float progressBarMaxWidth, progressBarHeight;
65 float commentWidth, commentHeight;
66 Coord progressBarTLCorner;
67 Coord commentLabelCenter;
69 unsigned int currentPercent;