00001
00002
00003
00004
00005
00006 #ifndef DISPLAYREP_H
00007 #define DISPLAYREP_H
00008
00009 #include "gui/DisplayList.h"
00010 #include "gui/GraphicsVector.h"
00011
00012 namespace gui {
00013
00039 class DisplayRep : public DisplayList
00040 {
00041 public:
00042
00043
00044
00045
00046 enum LineStyle {
00047 SOLID_LINE= 0, DOTTED_LINE = 1, CENTER_LINE= 2, DASHED_LINE = 3, USERBIT_LINE = 4};
00048
00049
00051 void setColor(const std::string& color_name);
00052
00053
00055 virtual void clear();
00056
00058 void append(DisplayRep& other);
00059 void append(const DisplayRep& other);
00060
00062 DisplayRep& nested();
00063
00065 bool empty()const;
00066
00068 struct ColorInfo { const char * name; unsigned r, g,b; };
00069 static ColorInfo pallete[];
00070
00071
00073 void line_to(const GraphicsVector& v){lineTo(v);}
00074 void move_to(const GraphicsVector& v){moveTo(v);}
00075 void set_color(const std::string& color_name){setColor(color_name);}
00076 private:
00077
00078 class Dummy;
00079
00080 };
00081
00082 }
00083
00084
00085 #endif //DISPLAYREP_H
00086