22 #ifndef GLCOLORSCALE_H_
23 #define GLCOLORSCALE_H_
25 #include <tulip/Observable.h>
26 #include <tulip/GlPolyQuad.h>
27 #include <tulip/ColorScale.h>
31 class TLP_GL_SCOPE GlColorScale :
public GlSimpleEntity,
public Observable {
39 GlColorScale(ColorScale *colorScale,
const Coord &baseCoord,
const float length,
40 const float thickness, Orientation orientation);
49 Color getColorAtPos(Coord pos);
51 void draw(
float lod, Camera* camera);
53 void translate(
const Coord &move);
55 Coord getBaseCoord()
const {
59 float getThickness()
const {
63 float getLength()
const {
67 GlPolyQuad *getColorScalePolyQuad()
const {
68 return colorScalePolyQuad;
71 void setColorScale(ColorScale * scale);
73 ColorScale *getColorScale() {
77 void getXML(std::string &) {}
79 void setWithXML(
const std::string &,
unsigned int &) {}
83 void treatEvent(
const Event &);
89 ColorScale *colorScale;
91 float length, thickness;
92 GlPolyQuad *colorScalePolyQuad;
93 Orientation orientation;