Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

DisplayRep.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/gui/gui/DisplayRep.h,v 1.2 2001/01/07 21:35:40 burnett Exp $
00002 //  Author: Toby Burnett
00003 // Project: gui graphical display
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         // Implicit constructor
00043         // Implicit copy constructor
00044         // Implicit assignment operator
00045         // Implicit destructor
00046     enum LineStyle {      /* Line styles for get/setlinestyle */
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 } // namespace gui
00083 
00084 
00085 #endif //DISPLAYREP_H
00086 

Generated at Wed Nov 21 12:20:55 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000