22 #ifndef GLCOLORSCALE_H_
23 #define GLCOLORSCALE_H_
25 #include <tulip/Observable.h>
26 #include <tulip/GlSimpleEntity.h>
27 #include <tulip/Color.h>
34 class TLP_GL_SCOPE GlColorScale :
public GlSimpleEntity,
public Observable {
42 GlColorScale(ColorScale *colorScale,
const Coord &baseCoord,
const float length,
43 const float thickness, Orientation orientation);
52 Color getColorAtPos(Coord pos);
54 void draw(
float lod, Camera* camera);
56 void translate(
const Coord &move);
58 Coord getBaseCoord()
const {
62 float getThickness()
const {
66 float getLength()
const {
70 GlPolyQuad *getColorScalePolyQuad()
const {
71 return colorScalePolyQuad;
74 void setColorScale(ColorScale * scale);
76 ColorScale *getColorScale() {
80 void getXML(std::string &) {}
82 void setWithXML(
const std::string &,
unsigned int &) {}
86 void treatEvent(
const Event &);
92 ColorScale *colorScale;
94 float length, thickness;
95 GlPolyQuad *colorScalePolyQuad;
96 Orientation orientation;