<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><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><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="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_6dcc65b7c74f97460af44109581e51d3.html">reps</a> </div> </div> <div class="contents"> <h1>PointRepBase.cxx</h1><a href="PointRepBase_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00011"></a>00011 <span class="preprocessor">#ifdef _MSC_VER</span> <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#include "msdevstudio/MSconfig.h"</span> <a name="l00013"></a>00013 <span class="preprocessor">#endif</span> <a name="l00014"></a>00014 <span class="preprocessor"></span> <a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="PointRepBase_8h.html" title="hippodraw::PointRepBase class interface">PointRepBase.h</a>"</span> <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="ErrorBarRep_8h.html" title="hippodraw::ErrorBarRep class interface">ErrorBarRep.h</a>"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#include "<a class="code" href="ViewBase_8h.html" title="hippodraw::ViewBase class interface">graphics/ViewBase.h</a>"</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="keyword">using</span> std::string; <a name="l00022"></a>00022 <a name="l00023"></a>00023 <span class="keyword">namespace </span>hippodraw { <a name="l00024"></a>00024 <a name="l00025"></a><a class="code" href="classhippodraw_1_1PointRepBase.html#a4736618cf5393793171ae2cf1480e465">00025</a> <a class="code" href="classhippodraw_1_1PointRepBase.html#a4736618cf5393793171ae2cf1480e465" title="A constructor with the name of the representation and its size.">PointRepBase::PointRepBase</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span> * name, <span class="keywordtype">float</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> ) <a name="l00026"></a>00026 : <a class="code" href="classhippodraw_1_1RepBase.html" title="The base class for the point representation hierarchy.">RepBase</a> ( name, size ), <a name="l00027"></a>00027 m_error_rep ( 0 ) <a name="l00028"></a>00028 { <a name="l00029"></a>00029 } <a name="l00030"></a>00030 <a name="l00031"></a><a class="code" href="classhippodraw_1_1PointRepBase.html#a8d7d0f2b3f69b3194f86e4df0b11e6fd">00031</a> <a class="code" href="classhippodraw_1_1PointRepBase.html#a4736618cf5393793171ae2cf1480e465" title="A constructor with the name of the representation and its size.">PointRepBase::PointRepBase</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PointRepBase.html" title="The base class for the point representation hierarchy.">PointRepBase</a> & point_rep ) <a name="l00032"></a>00032 : <a class="code" href="classhippodraw_1_1RepBase.html" title="The base class for the point representation hierarchy.">RepBase</a> ( point_rep ), <a name="l00033"></a>00033 m_error_rep ( 0 ) <span class="comment">// derived class can reset it.</span> <a name="l00034"></a>00034 { <a name="l00035"></a>00035 } <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="comment">/* virtual */</span> <a name="l00038"></a><a class="code" href="classhippodraw_1_1PointRepBase.html#ae549bfefc413090d348ad44ee64d9bc8">00038</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PointRepBase.html#ae549bfefc413090d348ad44ee64d9bc8" title="Sets the selection state of the representation.">PointRepBase::setSelected</a> ( <span class="keywordtype">bool</span> yes ) <a name="l00039"></a>00039 { <a name="l00040"></a>00040 <a class="code" href="classhippodraw_1_1PointRepBase.html#ae549bfefc413090d348ad44ee64d9bc8" title="Sets the selection state of the representation.">RepBase::setSelected</a> ( yes ); <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1PointRepBase.html#ad1f6f397b0df876c1279064af01dafb2" title="The error bar representation.">m_error_rep</a> ) { <a name="l00043"></a>00043 <a class="code" href="classhippodraw_1_1PointRepBase.html#ad1f6f397b0df876c1279064af01dafb2" title="The error bar representation.">m_error_rep</a>-><a class="code" href="classhippodraw_1_1RepBase.html#a50f2a34c127af5c4daeacc513689d503" title="Sets the representation to be selected if yes is true, otherwise set it to be deselected...">setSelected</a> ( yes ); <a name="l00044"></a>00044 } <a name="l00045"></a>00045 } <a name="l00046"></a>00046 <a name="l00047"></a>00047 } <span class="comment">// namespace hippodraw</span> </pre></div></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>