Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 1857

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a>
  </div>
</div>
<div class="contents">
<h1>QtView.h</h1><a href="QtView_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 _QtView_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _QtView_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="QtViewImp_8h.html" title="hippodraw::QtViewImp class interface">QtViewImp.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;qcanvas.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#else</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#include &lt;q3canvas.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#endif</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;qpixmap.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>hippodraw {
<a name="l00028"></a>00028 
<a name="l00040"></a>00040 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00041"></a><a class="code" href="classhippodraw_1_1QtView.html">00041</a> <span class="preprocessor"></span><span class="keyword">class </span><a class="code" href="libqthippo_8h.html#a5c61928b4caef50cebd70354f5e860d9">MDL_QTHIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1QtViewImp.html" title="The class of derived from ViewBase for drawing to the screen and PostScript generation...">QtViewImp</a>, <span class="keyword">public</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcanvasrectangle.html">QCanvasRectangle</a>
<a name="l00042"></a>00042 <span class="preprocessor">#else</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>class <a class="code" href="libqthippo_8h.html#a5c61928b4caef50cebd70354f5e860d9">MDL_QTHIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1QtViewImp.html" title="The class of derived from ViewBase for drawing to the screen and PostScript generation...">QtViewImp</a>, <span class="keyword">public</span> Q3CanvasRectangle
<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="keyword">private</span>:
<a name="l00048"></a>00048 
<a name="l00051"></a><a class="code" href="classhippodraw_1_1QtView.html#a0038f4cb0abc9d4c6b6f69ebbc2f84a9">00051</a>   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpixmap.html">QPixmap</a> m_pixmap;
<a name="l00052"></a>00052 
<a name="l00054"></a><a class="code" href="classhippodraw_1_1QtView.html#a2ae437affd3dd927c47b108beed1a6db">00054</a>   <span class="keywordtype">int</span> m_upage_w;
<a name="l00055"></a>00055   
<a name="l00058"></a><a class="code" href="classhippodraw_1_1QtView.html#a3012c259142e5c50c217c4de513fa637">00058</a>   <span class="keywordtype">bool</span> m_filled;
<a name="l00059"></a>00059 
<a name="l00062"></a><a class="code" href="classhippodraw_1_1QtView.html#a75b160b6bb7d5b55c9bf1c839c29a2bf">00062</a>   <span class="keywordtype">bool</span> m_crosshairs;
<a name="l00063"></a>00063 
<a name="l00066"></a><a class="code" href="classhippodraw_1_1QtView.html#afe015d25f66d2eb4fcba514db4760933">00066</a>   <span class="keywordtype">bool</span> m_is_drawing;
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 
<a name="l00070"></a>00070   <span class="keywordtype">int</span> toCanvasX ( <span class="keywordtype">double</span> dx ) <span class="keyword">const</span>;
<a name="l00071"></a>00071 
<a name="l00073"></a>00073   <span class="keywordtype">int</span> toCanvasY ( <span class="keywordtype">double</span> dy ) <span class="keyword">const</span>;
<a name="l00074"></a>00074 
<a name="l00081"></a>00081 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span>  <span class="keywordtype">void</span> transformAndFill ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpointarray.html">QPointArray</a> &amp; array, 
<a name="l00083"></a>00083 #<span class="keywordflow">else</span>
<a name="l00084"></a>00084   <span class="keywordtype">void</span> transformAndFill ( QPolygon &amp; array, 
<a name="l00085"></a>00085 #endif
<a name="l00086"></a>00086                           <span class="keyword">const</span> std::vector &lt; double &gt; &amp; x,
<a name="l00087"></a>00087                           <span class="keyword">const</span> std::vector &lt; double &gt; &amp; y,
<a name="l00088"></a>00088                           <span class="keywordtype">int</span> (<a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a>::* xfunc ) ( <span class="keywordtype">double</span> ) <span class="keyword">const</span>,
<a name="l00089"></a>00089                           <span class="keywordtype">int</span> (<a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a>::* yfunc ) ( <span class="keywordtype">double</span> ) <span class="keyword">const</span> );
<a name="l00090"></a>00090 
<a name="l00097"></a>00097   <span class="keywordtype">void</span> drawWithPixmap ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpainter.html">QPainter</a> &amp; painter );
<a name="l00100"></a>00100   <span class="keywordtype">void</span> drawMethod ( <span class="keyword">const</span> std::vector&lt; double &gt; &amp; x,
<a name="l00101"></a>00101                     <span class="keyword">const</span> std::vector&lt; double &gt; &amp; y,
<a name="l00102"></a>00102                     <span class="keywordtype">int</span> opt1, 
<a name="l00103"></a>00103                     <span class="keywordtype">int</span> opt2 );
<a name="l00104"></a>00104 
<a name="l00111"></a>00111   <span class="keywordtype">void</span> drawViewMethod ( <span class="keyword">const</span> std::vector&lt; double &gt; &amp; x,
<a name="l00112"></a>00112                         <span class="keyword">const</span> std::vector&lt; double &gt; &amp; y,
<a name="l00113"></a>00113                         <span class="keywordtype">int</span> opt1, 
<a name="l00114"></a>00114                         <span class="keywordtype">int</span> opt2 );
<a name="l00115"></a>00115 
<a name="l00121"></a>00121   <span class="keywordtype">void</span> ensureOffScrSize ( <span class="keywordtype">int</span> osw, <span class="keywordtype">int</span> osh );
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="keyword">public</span>:
<a name="l00124"></a>00124 
<a name="l00128"></a>00128   <a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> ( <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter );
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   <a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> &amp; );
<a name="l00132"></a>00132 
<a name="l00134"></a>00134   <span class="keyword">virtual</span> ~<a class="code" href="classhippodraw_1_1QtView.html" title="The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas...">QtView</a> ();
<a name="l00135"></a>00135 
<a name="l00140"></a>00140   <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpainter.html">QPainter</a> &amp; );
<a name="l00141"></a>00141 
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawShape ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qpainter.html">QPainter</a> &amp; );
<a name="l00144"></a>00144 
<a name="l00149"></a>00149   <span class="keyword">virtual</span> <span class="keywordtype">void</span> update ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1Observable.html" title="Part of an implementation of the Observable-Observer pattern based on the example...">Observable</a> * );
<a name="l00150"></a>00150 
<a name="l00157"></a>00157   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setShowCrossHairs ( <span class="keywordtype">bool</span> flag );
<a name="l00158"></a>00158 
<a name="l00161"></a>00161   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1Rect.html" title="Class representing a rectangle.">Rect</a> getDrawRect () <span class="keyword">const</span>;
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 
<a name="l00167"></a>00167   <span class="keywordtype">void</span> updateDrawRect ();
<a name="l00168"></a>00168   
<a name="l00170"></a>00170   <span class="keywordtype">void</span> setDrawRect ( <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qrect.html">QRect</a> &amp; rect );
<a name="l00171"></a>00171 
<a name="l00173"></a>00173   <span class="keywordtype">void</span> setDrawRect ( <a class="code" href="classhippodraw_1_1Rect.html" title="Class representing a rectangle.">Rect</a> &amp; rect );
<a name="l00174"></a>00174 
<a name="l00176"></a>00176   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDrawRect ( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height );
<a name="l00177"></a>00177 
<a name="l00179"></a>00179   <span class="keywordtype">int</span> toViewX ( <span class="keywordtype">double</span> datX ) <span class="keyword">const</span>;
<a name="l00180"></a>00180 
<a name="l00182"></a>00182   <span class="keywordtype">int</span> toViewY ( <span class="keywordtype">double</span> datY ) <span class="keyword">const</span>;
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 
<a name="l00185"></a>00185   <span class="keyword">virtual</span> <span class="keywordtype">void</span> fillPickedPoint ( <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, 
<a name="l00186"></a>00186                                  std::vector &lt; double &gt; &amp; picked ) <span class="keyword">const</span>;
<a name="l00187"></a>00187   
<a name="l00190"></a>00190   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPageWidth( <span class="keywordtype">int</span> upage_w );
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   <span class="comment">/* Test if the plotter of this view is a text plotter */</span>
<a name="l00193"></a>00193   <span class="keywordtype">bool</span> isTextView() <span class="keyword">const</span>;                
<a name="l00194"></a>00194 };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 } <span class="comment">// namespace hippodraw</span>
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="preprocessor">#endif // _QtView_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>