<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>LinePointRep.h</h1><a href="LinePointRep_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span> <a name="l00002"></a>00002 <a name="l00014"></a>00014 <span class="preprocessor">#ifndef _LinePointRep_H_</span> <a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _LinePointRep_H_</span> <a name="l00016"></a>00016 <span class="preprocessor"></span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="PointRepBase_8h.html" title="hippodraw::PointRepBase class interface">PointRepBase.h</a>"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="keyword">namespace </span>hippodraw { <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="keyword">class </span>Rect; <a name="l00022"></a>00022 <span class="keyword">class </span>Point; <a name="l00023"></a>00023 <a name="l00034"></a><a class="code" href="classhippodraw_1_1LinePointRep.html">00034</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1PointRepBase.html" title="The base class for the point representation hierarchy.">PointRepBase</a> <a name="l00035"></a>00035 { <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="keyword">private</span>: <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="comment">// The drawing rectangle boundaries.</span> <a name="l00040"></a><a class="code" href="classhippodraw_1_1LinePointRep.html#a45df5e430db01bef3cd16cfdf592850b">00040</a> <span class="keywordtype">double</span> m_xmin, m_xmax, m_ymin, m_ymax; <a name="l00041"></a>00041 <a name="l00042"></a><a class="code" href="classhippodraw_1_1LinePointRep.html#ae25788cf3b3ffcb9166b60b15fbd1614">00042</a> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Rect.html" title="Class representing a rectangle.">Rect</a> * m_user_rect; <a name="l00043"></a>00043 <a name="l00046"></a>00046 <span class="keywordtype">void</span> transformValues ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source, <a name="l00047"></a>00047 <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> * transform ); <a name="l00048"></a>00048 <a name="l00049"></a>00049 <span class="keywordtype">bool</span> outside_box(std::vector<double>::const_iterator ix, <a name="l00050"></a>00050 std::vector<double>::const_iterator iy) <span class="keyword">const</span>; <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keywordtype">bool</span> straddles_x_boundary(std::vector<double>::const_iterator ix, <a name="l00053"></a>00053 std::vector<double>::const_iterator iy, <a name="l00054"></a>00054 <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt1, <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt2, <a name="l00055"></a>00055 <span class="keywordtype">double</span> & distance) <span class="keyword">const</span>; <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="keywordtype">bool</span> straddles_y_boundary(std::vector<double>::const_iterator ix, <a name="l00058"></a>00058 std::vector<double>::const_iterator iy, <a name="l00059"></a>00059 <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt1, <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt2, <a name="l00060"></a>00060 <span class="keywordtype">double</span> & distance) <span class="keyword">const</span>; <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="keywordtype">bool</span> cornerCase(std::vector<double>::const_iterator ix, <a name="l00063"></a>00063 std::vector<double>::const_iterator iy, <a name="l00064"></a>00064 std::vector<double> & x, std::vector<double> & y) <span class="keyword">const</span>; <a name="l00065"></a>00065 <a name="l00066"></a>00066 <span class="keywordtype">double</span> interpolate(<span class="keywordtype">double</span> x, std::vector<double>::const_iterator ix, <a name="l00067"></a>00067 std::vector<double>::const_iterator iy) <span class="keyword">const</span>; <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keywordtype">double</span> separation(<span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt1, <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt2) <span class="keyword">const</span>; <a name="l00070"></a>00070 <a name="l00071"></a>00071 <span class="keywordtype">void</span> findEndPoints(std::vector<double>::const_iterator ix, <a name="l00072"></a>00072 std::vector<double>::const_iterator iy, <a name="l00073"></a>00073 <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt1, <a class="code" href="classhippodraw_1_1Point.html" title="Class representing a two or three dimension point.">Point</a> & pt2) <span class="keyword">const</span>; <a name="l00074"></a>00074 <a name="l00075"></a>00075 <span class="keywordtype">void</span> addEndPoints(std::vector<double>::const_iterator ix, <a name="l00076"></a>00076 std::vector<double>::const_iterator iy, <a name="l00077"></a>00077 std::vector<double> & x, std::vector<double> & y) <span class="keyword">const</span>; <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="keyword">protected</span>: <a name="l00080"></a>00080 <a name="l00087"></a><a class="code" href="classhippodraw_1_1LinePointRep.html#a7d3ac378fc5a1cde555c9a3fdac2523d">00087</a> std::vector< double > m_x; <a name="l00088"></a>00088 <a name="l00095"></a><a class="code" href="classhippodraw_1_1LinePointRep.html#a76b3ab311a8436e2124aff4ed63ffdd1">00095</a> std::vector< double > m_y; <a name="l00096"></a>00096 <a name="l00099"></a><a class="code" href="classhippodraw_1_1LinePointRep.html#aa9764ca1ce1312bf25cf40790c3fa284">00099</a> <a class="code" href="namespacehippodraw_1_1Line.html#addb2fa415e015ee482fa2cd9eba96af7" title="Line style constants.">hippodraw::Line::Style</a> m_line_style; <a name="l00100"></a>00100 <a name="l00103"></a>00103 <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</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="l00104"></a>00104 <a name="l00108"></a>00108 <span class="keywordtype">void</span> drawValues ( <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> * view ); <a name="l00109"></a>00109 <a name="l00110"></a>00110 <span class="keyword">public</span>: <a name="l00112"></a>00112 <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a>(); <a name="l00113"></a>00113 <a name="l00115"></a>00115 <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a> ( <span class="keywordtype">float</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> ); <a name="l00116"></a>00116 <a name="l00118"></a>00118 <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a> & point_rep ); <a name="l00119"></a>00119 <a name="l00121"></a>00121 <span class="keyword">virtual</span> ~<a class="code" href="classhippodraw_1_1LinePointRep.html" title="A PointRep class that draws a column to represent the value.">LinePointRep</a>(); <a name="l00122"></a>00122 <a name="l00125"></a>00125 <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1RepBase.html" title="The base class for the point representation hierarchy.">RepBase</a> * <a class="code" href="namespacenum__util.html#a8d145d73a173083711a3829a2bc75f5c">clone</a>(); <a name="l00126"></a>00126 <a name="l00129"></a>00129 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setStyle ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> style ); <a name="l00130"></a>00130 <a name="l00133"></a>00133 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getStyle ( ) <span class="keyword">const</span>; <a name="l00134"></a>00134 <a name="l00135"></a>00135 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawProjectedValues ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple, <a name="l00136"></a>00136 <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> * transform, <a name="l00137"></a>00137 <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> * previews ); <a name="l00138"></a>00138 <a name="l00141"></a>00141 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> uses ( <a class="code" href="namespacehippodraw_1_1Line.html#addb2fa415e015ee482fa2cd9eba96af7" title="Line style constants.">hippodraw::Line::Style</a> ) <span class="keyword">const</span>; <a name="l00142"></a>00142 <a name="l00143"></a>00143 }; <a name="l00144"></a>00144 <a name="l00145"></a>00145 } <span class="comment">// namespace hippodraw</span> <a name="l00146"></a>00146 <a name="l00147"></a>00147 <span class="preprocessor">#endif // _LinePointRep_H_</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>