Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

DrawBorder Class Reference

A singleton class to draw the border with knobies around the selected display. More...

#include <DrawBorder.h>

Collaboration diagram for DrawBorder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void draw ()
 Does the actual drawing in the view.
void drawKnob (double x, double y)
 Draws a knob centered at x, y.
ViewBasegetView ()
 Gets the view object.
void setView (ViewBase *view)
 Sets the View object.

Static Public Member Functions

static DrawBorderinstance ()
 Returns the pointer to the singleton instance.

Private Member Functions

 DrawBorder (const DrawBorder &)
 A private copy constructor to avoid copying.
 DrawBorder ()
 A default constructor for avoiding creation except by itself.

Private Attributes

ViewBasem_view
 The View object.

Static Private Attributes

static DrawBorders_instance = 0
 The instance of the application.

Detailed Description

A singleton class to draw the border with knobies around the selected display.

Definition at line 23 of file DrawBorder.h.


Constructor & Destructor Documentation

DrawBorder ( const DrawBorder  )  [private]

A private copy constructor to avoid copying.

Definition at line 34 of file DrawBorder.cxx.

DrawBorder (  )  [private]

A default constructor for avoiding creation except by itself.

Definition at line 30 of file DrawBorder.cxx.

Referenced by DrawBorder::instance().


Member Function Documentation

void draw (  ) 
void drawKnob ( double  x,
double  y 
)

Draws a knob centered at x, y.

Definition at line 107 of file DrawBorder.cxx.

References ViewBase::drawViewLines(), DrawBorder::m_view, num_util::size(), and hippodraw::Line::Solid.

Referenced by DrawBorder::draw().

ViewBase * getView (  ) 

Gets the view object.

Definition at line 52 of file DrawBorder.cxx.

References DrawBorder::m_view.

DrawBorder * instance (  )  [static]

Returns the pointer to the singleton instance.

Definition at line 39 of file DrawBorder.cxx.

References DrawBorder::DrawBorder(), and DrawBorder::s_instance.

Referenced by QtView::draw(), and QtGroupView::draw().

void setView ( ViewBase view  ) 

Sets the View object.

Definition at line 47 of file DrawBorder.cxx.

References DrawBorder::m_view.

Referenced by QtView::draw(), and QtGroupView::draw().


Member Data Documentation

ViewBase* m_view [private]

The View object.

Definition at line 34 of file DrawBorder.h.

Referenced by DrawBorder::draw(), DrawBorder::drawKnob(), DrawBorder::getView(), and DrawBorder::setView().

DrawBorder * s_instance = 0 [static, private]

The instance of the application.

Definition at line 28 of file DrawBorder.h.

Referenced by DrawBorder::instance().


The documentation for this class was generated from the following files:

Generated for HippoDraw Class Library by doxygen