DrawBorder.h
Go to the documentation of this file.
1 /* -*- mode:c++ -*- */
2 
14 #ifndef _DrawBroder_h
15 #define _DrawBroder_h
16 namespace hippodraw {
17 
18 class ViewBase;
19 
24 {
25 private:
26 
29 
31  DrawBorder ( const DrawBorder & );
32 
35 
37  DrawBorder();
38 
39  public:
40 
42  static DrawBorder * instance ();
43 
45  void setView (ViewBase * view);
46 
48  ViewBase * getView ();
49 
51  void draw();
52 
54  void drawKnob ( double x, double y );
55 
56 };
57 
58 } // namespace hippodraw
59 
60 #endif // _DrawBroder_h
static DrawBorder * instance()
Returns the pointer to the singleton instance.
Definition: DrawBorder.cxx:39
void draw()
Does the actual drawing in the view.
Definition: DrawBorder.cxx:57
ViewBase * m_view
The View object.
Definition: DrawBorder.h:34
static DrawBorder * s_instance
The instance of the application.
Definition: DrawBorder.h:28
void drawKnob(double x, double y)
Draws a knob centered at x, y.
Definition: DrawBorder.cxx:107
void setView(ViewBase *view)
Sets the View object.
Definition: DrawBorder.cxx:47
The abstract base class for views.
Definition: ViewBase.h:62
A singleton class to draw the border with knobies around the selected display.
Definition: DrawBorder.h:23
ViewBase * getView()
Gets the view object.
Definition: DrawBorder.cxx:52
DrawBorder()
A default constructor for avoiding creation except by itself.
Definition: DrawBorder.cxx:30

Generated for HippoDraw Class Library by doxygen