<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>HippoDraw Class Library</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="hippoApp.ico"> </head><body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacehippodraw.html">hippodraw</a>::<a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> </div> </div> <div class="contents"> <h1>DrawBorder Class Reference</h1><!-- doxytag: class="hippodraw::DrawBorder" --> <p>A singleton class to draw the border with knobies around the selected display. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="DrawBorder_8h_source.html">DrawBorder.h</a>></code></p> <div class="dynheader"> Collaboration diagram for DrawBorder:</div> <div class="dynsection"> <div class="center"><img src="classhippodraw_1_1DrawBorder__coll__graph.gif" border="0" usemap="#DrawBorder_coll__map" alt="Collaboration graph"/></div> <map name="DrawBorder_coll__map" id="DrawBorder_coll__map"> <area shape="rect" id="node2" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views." alt="" coords="97,605,177,635"/><area shape="rect" id="node4" href="classhippodraw_1_1Observer.html" title="Part of an implementation of the Observable Observer pattern based on the example..." alt="" coords="19,101,93,131"/><area shape="rect" id="node6" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy." alt="" coords="451,509,541,539"/><area shape="rect" id="node9" href="classhippodraw_1_1Observable.html" title="Part of an implementation of the Observable-Observer pattern based on the example..." alt="" coords="208,363,296,392"/><area shape="rect" id="node14" title="STL class." alt="" coords="152,101,221,131"/><area shape="rect" id="node33" title="STL class." alt="" coords="249,101,340,131"/><area shape="rect" id="node23" href="classhippodraw_1_1Size.html" title="Class representing a two or three dimension size." alt="" coords="589,232,637,261"/><area shape="rect" id="node26" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point." alt="" coords="664,232,715,261"/><area shape="rect" id="node21" href="classhippodraw_1_1Rect.html" title="Class representing a rectangle." alt="" coords="551,363,601,392"/><area shape="rect" id="node40" title="STL class." alt="" coords="943,363,996,392"/><area shape="rect" id="node42" title="STL class." alt="" coords="899,232,1040,261"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classhippodraw_1_1DrawBorder-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a56c5cf8a568cff737ff95520cbe6b405">draw</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Does the actual drawing in the view. <a href="#a56c5cf8a568cff737ff95520cbe6b405"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#ac912ea42a3817e796ef3d50602e55209">drawKnob</a> (double x, double y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a knob centered at x, y. <a href="#ac912ea42a3817e796ef3d50602e55209"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a2f766107fadd6724bc0d39450a3ddfa6">getView</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the view object. <a href="#a2f766107fadd6724bc0d39450a3ddfa6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a76c921ff21c0093783ee86f2c1a2fd08">setView</a> (<a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a> *view)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the View object. <a href="#a76c921ff21c0093783ee86f2c1a2fd08"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a279f8a83d83deefd5175962d1d881e3a">instance</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the pointer to the singleton instance. <a href="#a279f8a83d83deefd5175962d1d881e3a"></a><br/></td></tr> <tr><td colspan="2"><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a1902b11604e67bc5032ff92126a5b5b4">DrawBorder</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A default constructor for avoiding creation except by itself. <a href="#a1902b11604e67bc5032ff92126a5b5b4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a8745a5a84bdbfced1fca8f7c737342c4">DrawBorder</a> (const <a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> &)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A private copy constructor to avoid copying. <a href="#a8745a5a84bdbfced1fca8f7c737342c4"></a><br/></td></tr> <tr><td colspan="2"><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#a29d1aca0fd89556d1b0161b2628fd381">m_view</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The View object. <a href="#a29d1aca0fd89556d1b0161b2628fd381"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classhippodraw_1_1DrawBorder.html#ad76a9a2eba553af9311c8395229c8f61">s_instance</a> = 0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The instance of the application. <a href="#ad76a9a2eba553af9311c8395229c8f61"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A singleton class to draw the border with knobies around the selected display. </p> <p>Definition at line <a class="el" href="DrawBorder_8h_source.html#l00023">23</a> of file <a class="el" href="DrawBorder_8h_source.html">DrawBorder.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a8745a5a84bdbfced1fca8f7c737342c4"></a><!-- doxytag: member="hippodraw::DrawBorder::DrawBorder" ref="a8745a5a84bdbfced1fca8f7c737342c4" args="(const DrawBorder &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> & </td> <td class="paramname"></td> <td> ) </td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A private copy constructor to avoid copying. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00034">34</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> </div> </div> <a class="anchor" id="a1902b11604e67bc5032ff92126a5b5b4"></a><!-- doxytag: member="hippodraw::DrawBorder::DrawBorder" ref="a1902b11604e67bc5032ff92126a5b5b4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A default constructor for avoiding creation except by itself. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00030">30</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>Referenced by <a class="el" href="DrawBorder_8cxx_source.html#l00039">DrawBorder::instance()</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a56c5cf8a568cff737ff95520cbe6b405"></a><!-- doxytag: member="hippodraw::DrawBorder::draw" ref="a56c5cf8a568cff737ff95520cbe6b405" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void draw </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Does the actual drawing in the view. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00057">57</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>References <a class="el" href="DrawBorder_8cxx_source.html#l00107">DrawBorder::drawKnob()</a>, <a class="el" href="classhippodraw_1_1ViewBase.html#ad8433e22caa9e6cf96057c173701113c">ViewBase::drawViewLines()</a>, <a class="el" href="classhippodraw_1_1ViewBase.html#a4a8f555bf8d011b2eb5a2ba4a379bff3">ViewBase::getDrawRect()</a>, <a class="el" href="Rectangle_8cxx_source.html#l00113">Rect::getHeight()</a>, <a class="el" href="Rectangle_8cxx_source.html#l00108">Rect::getWidth()</a>, <a class="el" href="DrawBorder_8h_source.html#l00034">DrawBorder::m_view</a>, and <a class="el" href="LineStyle_8h_source.html#l00027">hippodraw::Line::Solid</a>.</p> <p>Referenced by <a class="el" href="QtView_8cxx_source.html#l00116">QtView::draw()</a>, and <a class="el" href="QtGroupView_8cxx_source.html#l00107">QtGroupView::draw()</a>.</p> </div> </div> <a class="anchor" id="ac912ea42a3817e796ef3d50602e55209"></a><!-- doxytag: member="hippodraw::DrawBorder::drawKnob" ref="ac912ea42a3817e796ef3d50602e55209" args="(double x, double y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void drawKnob </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Draws a knob centered at x, y. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00107">107</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>References <a class="el" href="classhippodraw_1_1ViewBase.html#ad8433e22caa9e6cf96057c173701113c">ViewBase::drawViewLines()</a>, <a class="el" href="DrawBorder_8h_source.html#l00034">DrawBorder::m_view</a>, <a class="el" href="num__util_8cpp_source.html#l00296">num_util::size()</a>, and <a class="el" href="LineStyle_8h_source.html#l00027">hippodraw::Line::Solid</a>.</p> <p>Referenced by <a class="el" href="DrawBorder_8cxx_source.html#l00057">DrawBorder::draw()</a>.</p> </div> </div> <a class="anchor" id="a2f766107fadd6724bc0d39450a3ddfa6"></a><!-- doxytag: member="hippodraw::DrawBorder::getView" ref="a2f766107fadd6724bc0d39450a3ddfa6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a> * getView </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the view object. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00052">52</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>References <a class="el" href="DrawBorder_8h_source.html#l00034">DrawBorder::m_view</a>.</p> </div> </div> <a class="anchor" id="a279f8a83d83deefd5175962d1d881e3a"></a><!-- doxytag: member="hippodraw::DrawBorder::instance" ref="a279f8a83d83deefd5175962d1d881e3a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> * instance </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the pointer to the singleton instance. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00039">39</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>References <a class="el" href="DrawBorder_8cxx_source.html#l00030">DrawBorder::DrawBorder()</a>, and <a class="el" href="DrawBorder_8h_source.html#l00028">DrawBorder::s_instance</a>.</p> <p>Referenced by <a class="el" href="QtView_8cxx_source.html#l00116">QtView::draw()</a>, and <a class="el" href="QtGroupView_8cxx_source.html#l00107">QtGroupView::draw()</a>.</p> </div> </div> <a class="anchor" id="a76c921ff21c0093783ee86f2c1a2fd08"></a><!-- doxytag: member="hippodraw::DrawBorder::setView" ref="a76c921ff21c0093783ee86f2c1a2fd08" args="(ViewBase *view)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void setView </td> <td>(</td> <td class="paramtype"><a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a> * </td> <td class="paramname"> <em>view</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the View object. </p> <p>Definition at line <a class="el" href="DrawBorder_8cxx_source.html#l00047">47</a> of file <a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a>.</p> <p>References <a class="el" href="DrawBorder_8h_source.html#l00034">DrawBorder::m_view</a>.</p> <p>Referenced by <a class="el" href="QtView_8cxx_source.html#l00116">QtView::draw()</a>, and <a class="el" href="QtGroupView_8cxx_source.html#l00107">QtGroupView::draw()</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a29d1aca0fd89556d1b0161b2628fd381"></a><!-- doxytag: member="hippodraw::DrawBorder::m_view" ref="a29d1aca0fd89556d1b0161b2628fd381" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1ViewBase.html">ViewBase</a>* <a class="el" href="classhippodraw_1_1DrawBorder.html#a29d1aca0fd89556d1b0161b2628fd381">m_view</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The View object. </p> <p>Definition at line <a class="el" href="DrawBorder_8h_source.html#l00034">34</a> of file <a class="el" href="DrawBorder_8h_source.html">DrawBorder.h</a>.</p> <p>Referenced by <a class="el" href="DrawBorder_8cxx_source.html#l00057">DrawBorder::draw()</a>, <a class="el" href="DrawBorder_8cxx_source.html#l00107">DrawBorder::drawKnob()</a>, <a class="el" href="DrawBorder_8cxx_source.html#l00052">DrawBorder::getView()</a>, and <a class="el" href="DrawBorder_8cxx_source.html#l00047">DrawBorder::setView()</a>.</p> </div> </div> <a class="anchor" id="ad76a9a2eba553af9311c8395229c8f61"></a><!-- doxytag: member="hippodraw::DrawBorder::s_instance" ref="ad76a9a2eba553af9311c8395229c8f61" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classhippodraw_1_1DrawBorder.html">DrawBorder</a> * <a class="el" href="classhippodraw_1_1DrawBorder.html#ad76a9a2eba553af9311c8395229c8f61">s_instance</a> = 0<code> [static, private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The instance of the application. </p> <p>Definition at line <a class="el" href="DrawBorder_8h_source.html#l00028">28</a> of file <a class="el" href="DrawBorder_8h_source.html">DrawBorder.h</a>.</p> <p>Referenced by <a class="el" href="DrawBorder_8cxx_source.html#l00039">DrawBorder::instance()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="DrawBorder_8h_source.html">DrawBorder.h</a></li> <li><a class="el" href="DrawBorder_8cxx_source.html">DrawBorder.cxx</a></li> </ul> </div> <hr size="1"><address style="align: right;"><small> Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0> </a> </small></address> </body> </html>