<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>ContourPointRep.h</h1><a href="ContourPointRep_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 _ContourPointRep_H_</span> <a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _ContourPointRep_H_</span> <a name="l00016"></a>00016 <span class="preprocessor"></span> <a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="LinePointRep_8h.html" title="hippodraw::LinePointRep class interface">LinePointRep.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>BinToColor; <a name="l00022"></a>00022 <a name="l00045"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html">00045</a> <span class="keyword">class </span><a class="code" href="libhippo_8h.html#a480024fd54849c743866874550153711">MDL_HIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a> : <span class="keyword">public</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="l00046"></a>00046 { <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keyword">private</span>: <a name="l00049"></a>00049 <a name="l00051"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#af6ee8b4728924aae2186f96d4ca8c1c6">00051</a> <a class="code" href="classhippodraw_1_1BinToColor.html" title="The base class for the value to the color transformation.">BinToColor</a> * m_bin_to_color; <a name="l00052"></a>00052 <a name="l00054"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#af9ce52208dc448eed1fc4fe6d93c9d7f">00054</a> std::vector< Color > m_colorvec; <a name="l00055"></a>00055 <a name="l00059"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#a0c798b164aae75edb2deab7771e5e9a5">00059</a> std::vector < Line::Style > m_stylevec; <a name="l00060"></a>00060 <a name="l00062"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#ad450ba26f291848e056088d2dff48343">00062</a> <span class="keywordtype">int</span> m_numContours; <a name="l00063"></a>00063 <a name="l00065"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#add872000f8757558cec7393963d723fc">00065</a> <span class="keywordtype">double</span> m_maxValue; <a name="l00066"></a>00066 <a name="l00068"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#a1a36d575f8d42caa5cebe46d28b1b490">00068</a> <span class="keywordtype">double</span> m_minValue; <a name="l00069"></a>00069 <a name="l00071"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#a781251d1751bf03233e54be8ca534358">00071</a> <span class="keywordtype">double</span> m_minPos; <a name="l00072"></a>00072 <a name="l00074"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#a4ec8f2dbf92cb9f9cfe24a51d7c4f4ab">00074</a> std::vector < double > m_values; <a name="l00075"></a>00075 <a name="l00078"></a><a class="code" href="classhippodraw_1_1ContourPointRep.html#a9dfba72e3c61fd445ae2c409a04496f8">00078</a> <span class="keywordtype">bool</span> m_usingUserValues; <a name="l00079"></a>00079 <a name="l00080"></a>00080 <a name="l00081"></a>00081 <span class="keyword">public</span>: <a name="l00082"></a>00082 <a name="l00084"></a>00084 <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a>(); <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a> ( <span class="keywordtype">float</span> <a class="code" href="namespacenum__util.html#a137f48a49d12a7dae8ba7c86db2a0c01">size</a> ); <a name="l00088"></a>00088 <a name="l00090"></a>00090 <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a>( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a> & point_rep ); <a name="l00091"></a>00091 <a name="l00093"></a>00093 ~<a class="code" href="classhippodraw_1_1ContourPointRep.html" title="A PointRep class that draws a contour lines.">ContourPointRep</a>(); <a name="l00094"></a>00094 <a name="l00097"></a>00097 <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="l00098"></a>00098 <a name="l00099"></a>00099 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1BinToColor.html" title="The base class for the value to the color transformation.">BinToColor</a> * getValueTransform ( ) <span class="keyword">const</span>; <a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setValueTransform ( <a class="code" href="classhippodraw_1_1BinToColor.html" title="The base class for the value to the color transformation.">BinToColor</a> * ); <a name="l00101"></a>00101 <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="l00102"></a>00102 <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="l00103"></a>00103 <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> * view ); <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="keywordtype">void</span> drawContourTicks ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &, <a name="l00106"></a>00106 <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> &, <a name="l00107"></a>00107 <span class="keyword">const</span> std::vector < double > & ); <a name="l00108"></a>00108 <a name="l00110"></a>00110 <span class="keywordtype">bool</span> getUsingUserValues () <span class="keyword">const</span>; <a name="l00111"></a>00111 <a name="l00113"></a>00113 <span class="keywordtype">void</span> setUsingUserValues ( <span class="keywordtype">bool</span> flag ); <a name="l00114"></a>00114 <a name="l00116"></a>00116 <span class="keywordtype">void</span> setNumContours ( <span class="keywordtype">int</span> i ); <a name="l00117"></a>00117 <a name="l00119"></a>00119 <span class="keywordtype">int</span> getNumContours () <span class="keyword">const</span>; <a name="l00120"></a>00120 <a name="l00122"></a>00122 <span class="keywordtype">void</span> setContourValues ( std::vector < double > & values, <a name="l00123"></a>00123 <a class="code" href="classhippodraw_1_1ProjectorBase.html" title="The base class for the Projector hierarchy.">ProjectorBase</a> * proj ); <a name="l00124"></a>00124 <a name="l00125"></a>00125 <span class="keyword">private</span>: <a name="l00126"></a>00126 <a name="l00127"></a>00127 <span class="comment">/*</span> <a name="l00128"></a>00128 <span class="comment">Copyright (c) 1996-1997 Nicholas Yue</span> <a name="l00129"></a>00129 <span class="comment"></span> <a name="l00130"></a>00130 <span class="comment">This software is copyrighted by Nicholas Yue. This code is base on the work of</span> <a name="l00131"></a>00131 <span class="comment">Paul D. Bourke CONREC.F routine</span> <a name="l00132"></a>00132 <span class="comment"></span> <a name="l00133"></a>00133 <span class="comment">The authors hereby grant permission to use, copy, and distribute this</span> <a name="l00134"></a>00134 <span class="comment">software and its documentation for any purpose, provided that existing</span> <a name="l00135"></a>00135 <span class="comment">copyright notices are retained in all copies and that this notice is included</span> <a name="l00136"></a>00136 <span class="comment">verbatim in any distributions. Additionally, the authors grant permission to</span> <a name="l00137"></a>00137 <span class="comment">modify this software and its documentation for any purpose, provided that</span> <a name="l00138"></a>00138 <span class="comment">such modifications are not distributed without the explicit consent of the</span> <a name="l00139"></a>00139 <span class="comment">authors and that existing copyright notices are retained in all copies. Some</span> <a name="l00140"></a>00140 <span class="comment">of the algorithms implemented by this software are patented, observe all</span> <a name="l00141"></a>00141 <span class="comment">applicable patent law.</span> <a name="l00142"></a>00142 <span class="comment"></span> <a name="l00143"></a>00143 <span class="comment">IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR</span> <a name="l00144"></a>00144 <span class="comment">DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT</span> <a name="l00145"></a>00145 <span class="comment">OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,</span> <a name="l00146"></a>00146 <span class="comment">EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span> <a name="l00147"></a>00147 <span class="comment"></span> <a name="l00148"></a>00148 <span class="comment">THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,</span> <a name="l00149"></a>00149 <span class="comment">BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A</span> <a name="l00150"></a>00150 <span class="comment">PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN</span> <a name="l00151"></a>00151 <span class="comment">"AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE</span> <a name="l00152"></a>00152 <span class="comment">MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.</span> <a name="l00153"></a>00153 <span class="comment">*/</span> <a name="l00154"></a>00154 <a name="l00155"></a>00155 <a name="l00165"></a>00165 <span class="keywordtype">void</span> createContours ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ntuple, <a name="l00166"></a>00166 <span class="keyword">const</span> <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="l00167"></a>00167 <a name="l00170"></a>00170 <span class="keywordtype">double</span> getContour ( <span class="keywordtype">int</span> i, <span class="keyword">const</span> <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="l00171"></a>00171 <a name="l00174"></a>00174 <span class="keywordtype">double</span> intersect ( <span class="keywordtype">int</span> p1, <span class="keywordtype">int</span> p2, <span class="keywordtype">double</span> * h, <span class="keywordtype">double</span> * xh ); <a name="l00175"></a>00175 <a name="l00178"></a>00178 <span class="keywordtype">void</span> setMinMax ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * ); <a name="l00179"></a>00179 <a name="l00182"></a>00182 <span class="keywordtype">void</span> setContourVector ( <span class="keyword">const</span> <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="l00183"></a>00183 <a name="l00186"></a>00186 <span class="keywordtype">void</span> init (); <a name="l00187"></a>00187 <a name="l00188"></a>00188 <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="keyword">private</span>: <a name="l00191"></a>00191 <a name="l00194"></a>00194 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawValues ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &, <a name="l00195"></a>00195 <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> & vb ); <a name="l00196"></a>00196 <a name="l00200"></a>00200 <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawValuesWithStyle ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1TransformBase.html" title="A transform that transforms coordinates from one coordinate system to another.">TransformBase</a> &, <a name="l00201"></a>00201 <a class="code" href="classhippodraw_1_1ViewBase.html" title="The abstract base class for views.">ViewBase</a> & vb ); <a name="l00202"></a>00202 <a name="l00203"></a>00203 <span class="keyword">static</span> <span class="keywordtype">void</span> rotate ( <span class="keywordtype">double</span> & lat, <span class="keywordtype">double</span> & lon, <a name="l00204"></a>00204 <span class="keywordtype">double</span> alpha, <span class="keywordtype">double</span> beta, <span class="keywordtype">double</span> gamma, <a name="l00205"></a>00205 <span class="keywordtype">bool</span> negative=<span class="keyword">true</span> ); <a name="l00206"></a>00206 <a name="l00207"></a>00207 }; <a name="l00208"></a>00208 <a name="l00209"></a>00209 } <span class="comment">// namespace hippodraw</span> <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="preprocessor">#endif // _ContourPointRep_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>