Sophie

Sophie

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

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_bd46360b4c6a7cd846adf95fa79d46e4.html">python</a>
  </div>
</div>
<div class="contents">
<h1>PyCanvas.h</h1><a href="PyCanvas_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 PyCanvas_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define PyCanvas_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="keyword">namespace </span>hippodraw {
<a name="l00021"></a>00021 
<a name="l00022"></a>00022   <span class="keyword">class </span>CanvasViewProxy;
<a name="l00023"></a>00023   <span class="keyword">class </span>CanvasWindow;
<a name="l00024"></a>00024   <span class="keyword">class </span>QtDisplay;
<a name="l00025"></a>00025   <span class="keyword">class </span>QtCut;
<a name="l00026"></a>00026   <span class="keyword">class </span>QtView;
<a name="l00027"></a>00027   <span class="keyword">class </span>NTuple;
<a name="l00028"></a>00028 
<a name="l00043"></a><a class="code" href="classhippodraw_1_1PyCanvas.html">00043</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1PyCanvas.html" title="This class is the public interface the what the user sees as the canvas object from...">PyCanvas</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="keyword">private</span>:
<a name="l00047"></a>00047 
<a name="l00051"></a><a class="code" href="classhippodraw_1_1PyCanvas.html#a10ead1c70dcc007d6c23eefa999db68d">00051</a>   <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a10ead1c70dcc007d6c23eefa999db68d" title="The actual canvas window in the application thread.">m_canvas</a>;
<a name="l00052"></a>00052 
<a name="l00057"></a><a class="code" href="classhippodraw_1_1PyCanvas.html#a702ea216f9f6a54b9163169482ced36e">00057</a>   <a class="code" href="classhippodraw_1_1CanvasViewProxy.html" title="A Proxy for the CanvasView class.">CanvasViewProxy</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a702ea216f9f6a54b9163169482ced36e" title="The proxy for the CanvasView object.">m_canvas_proxy</a>;
<a name="l00058"></a>00058 
<a name="l00061"></a><a class="code" href="classhippodraw_1_1PyCanvas.html#a833cac814c35e740c569bb496342f15a">00061</a>   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a833cac814c35e740c569bb496342f15a" title="Set to true if this canvas as associated GUI CanvasWindow.">m_has_gui</a>;
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classhippodraw_1_1PyCanvas.html#ad8531caa5937b1f0d2fbb00d832c5cf1">00064</a>    <span class="keyword">mutable</span> std::vector&lt;QtDisplay *&gt; <a class="code" href="classhippodraw_1_1PyCanvas.html#ad8531caa5937b1f0d2fbb00d832c5cf1" title="Pointers to QtDisplay objects on the current canvas.">m_displays</a>;
<a name="l00065"></a>00065 
<a name="l00069"></a>00069   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a4f69d9df692bff019419ca9b3b656c7f" title="Checks if the CanvasWindow has been closed and throws a runtime_error if it has been...">check</a> () <span class="keyword">const</span>;
<a name="l00070"></a>00070 
<a name="l00072"></a>00072    <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_1PyCanvas.html#af9f40cdfddcc203e195cc002a43850f9" title="Return the QtView associated with the given QtDisplay.">findSelectedView</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display );
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="keyword">public</span>:
<a name="l00075"></a>00075 
<a name="l00078"></a>00078   <a class="code" href="classhippodraw_1_1PyCanvas.html#a2b031d6dc0eae4838b355d3b6c25c828" title="The default constructor.">PyCanvas</a> ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * );
<a name="l00079"></a>00079 
<a name="l00081"></a>00081   <a class="code" href="classhippodraw_1_1PyCanvas.html#a2b031d6dc0eae4838b355d3b6c25c828" title="The default constructor.">PyCanvas</a> ();
<a name="l00082"></a>00082 
<a name="l00085"></a>00085   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a4b148f40a95444d5669406b918ad2f52" title="Displays the canvas window on the screen.">show</a> ();
<a name="l00086"></a>00086 
<a name="l00089"></a>00089   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a5ae591df94fc66ccb85cbb6565368bca" title="Closes the canvas window.">close</a> ();
<a name="l00090"></a>00090 
<a name="l00093"></a>00093   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a64ecd3f60a5cb8e97336dcf1f57fa3dc" title="Adds the display to the canvas.">addDisplay</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display_wrap );
<a name="l00094"></a>00094 
<a name="l00097"></a>00097   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a7fc2b9a05b9b196e40b34b8a7edd905b" title="Saves the document to the specified file.">saveAs</a> ( <span class="keyword">const</span> std::string &amp; filename );
<a name="l00098"></a>00098 
<a name="l00102"></a>00102    <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a4e06c35e786fb6cc4ce9781c1fab361f" title="Returns the selected display on the canvas.">getDisplay</a> ();
<a name="l00103"></a>00103 
<a name="l00105"></a>00105    <span class="keyword">const</span> std::vector&lt;QtDisplay *&gt; &amp; <a class="code" href="classhippodraw_1_1PyCanvas.html#ac78f9d5a84b69ed1435fe436c79e083e" title="Returns all displays on the canvas.">getDisplays</a> () <span class="keyword">const</span>;
<a name="l00106"></a>00106 
<a name="l00109"></a>00109    <a class="code" href="classhippodraw_1_1QtCut.html" title="Qt Displays wraps a derived class of Cut1DPlotter.">QtCut</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a236ecece384a74b7b46bf6ca872c6f39" title="Returns a QtCut object or null pointer if its not a QtCut object.">getCut</a>();
<a name="l00110"></a>00110 
<a name="l00112"></a>00112    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a3e7be2d4b687f6306ff7caeaf56539ca" title="Select or un-select all the displays on the canvas.">selectAllDisplays</a> ( <span class="keywordtype">bool</span> flag = <span class="keyword">true</span> );
<a name="l00113"></a>00113 
<a name="l00115"></a>00115    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a03e880abc2356fb26155ef0cfab3d5ca" title="Select a specific display.">selectDisplay</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display );
<a name="l00116"></a>00116 
<a name="l00119"></a>00119   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#aee1ebbc5bd62d90109af2091d19be08a" title="Prints the canvas to a PostScript file.">print</a> ( <span class="keyword">const</span> std::string &amp; filename );
<a name="l00120"></a>00120 
<a name="l00122"></a>00122    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#aa0252ac62e6424a70a3373d0986c0d34" title="Save the display as an image file.">saveAsImage</a>( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keyword">const</span> std::string &amp;filename );
<a name="l00123"></a>00123 
<a name="l00125"></a>00125    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#ab2ee21b71963eb15d2495f0e58077a25" title="Save the selected images as an image file.">saveSelectedImages</a>(<span class="keyword">const</span> std::string &amp; filename);
<a name="l00126"></a>00126 
<a name="l00128"></a>00128    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#aa4331a71cf1c3870fe423a19b63abc3d" title="Remove a display.">removeDisplay</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display );
<a name="l00129"></a>00129 
<a name="l00132"></a>00132   <span class="keyword">const</span> std::vector &lt; std::string &gt; &amp; <a class="code" href="classhippodraw_1_1PyCanvas.html#a0d95ada1eac10754b89841af7a1245d7" title="Returns the types of textual data representations available.">getTextRepTypes</a> () <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00137"></a>00137   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a385e821639df3efbaa2df7ee462702ad" title="Adds a textual data representation to display or type type.">addTextRep</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keyword">const</span> std::string &amp; <a class="code" href="namespacenum__util.html#af7e893a8c6a5f6a426480fc85cda4fa1">type</a> );
<a name="l00138"></a>00138 
<a name="l00140"></a>00140    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a3c7eaa93ada23e286698c88733103079" title="Add a BoxTextRep.">addText</a>( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keyword">const</span> std::string &amp;text );
<a name="l00141"></a>00141 
<a name="l00145"></a>00145    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#ad45415e9f7f741148c19d7ed82cafe79" title="Add a BoxTextRep at a specific location in the selected display item&amp;#39;s canvas...">addTextAt</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keyword">const</span> std::string &amp;text,
<a name="l00146"></a>00146                     <span class="keywordtype">double</span> xrel, <span class="keywordtype">double</span> yrel );
<a name="l00147"></a>00147 
<a name="l00151"></a>00151    <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a49f81572ef2488c411a1cf805c495fa2" title="Add a BoxTextRep at a specific location in the selected display item&amp;#39;s canvas...">addTextAtAbs</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keyword">const</span> std::string &amp;text,
<a name="l00152"></a>00152                     <span class="keywordtype">double</span> xabs, <span class="keywordtype">double</span> yabs );
<a name="l00153"></a>00153 
<a name="l00156"></a>00156    <span class="keyword">const</span> std::vector&lt;double&gt; &amp; <a class="code" href="classhippodraw_1_1PyCanvas.html#ad4728b169cb0237c07d1ee8fc58c3c25" title="Retrieve a tuple of (x, y, z) points from the next mouse event.">mouseData</a>();
<a name="l00157"></a>00157 
<a name="l00161"></a>00161   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a943c9eadea941405d8bac2d43448ce75" title="Sets the number for columns and rows of plots on each page.">setPlotMatrix</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> columns, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rows );
<a name="l00162"></a>00162 
<a name="l00165"></a>00165   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#abf988665eca11601b99c0b17eed51fe9" title="Swaps the orientation from portrait to landscape and vice verse.">swapOrientation</a> ();
<a name="l00166"></a>00166 
<a name="l00169"></a>00169   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#ac8bb3912a3ce86b15842e79d0b421204" title="Removes all items from the CanvasWindow.">clear</a> ();
<a name="l00170"></a>00170 
<a name="l00173"></a>00173   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a42ffd06771d3923d832b0c2420532292" title="Returns the view&amp;#39;s X coordinate for the display.">getX</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display ) <span class="keyword">const</span>;
<a name="l00174"></a>00174 
<a name="l00177"></a>00177   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a48d2887dbf08e24a5291c45b4ad09049" title="Returns the view&amp;#39;s Y coordinate for the display.">getY</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display ) <span class="keyword">const</span>;
<a name="l00178"></a>00178 
<a name="l00181"></a>00181   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a1deb366ad95fb360470b43ec677c4274" title="Sets the view&amp;#39;s X coordinate for the display.">setX</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keywordtype">double</span> value );
<a name="l00182"></a>00182 
<a name="l00185"></a>00185   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a63953d6f4d215c1e5aec279ce1df8c92" title="Sets the view&amp;#39;s Y coordinate for the display.">setY</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display, <span class="keywordtype">double</span> value );
<a name="l00186"></a>00186 
<a name="l00189"></a>00189   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a0a9724e6f6bbe2b86a45622a754e94c6" title="Returns the view&amp;#39;s height for the display.">getHeight</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display ) <span class="keyword">const</span>;
<a name="l00190"></a>00190 
<a name="l00193"></a>00193   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a1da79e7ac624cf00a3281c8893c8fc95" title="Returns the view&amp;#39;s width for the display.">getWidth</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * display ) <span class="keyword">const</span>;
<a name="l00194"></a>00194 
<a name="l00197"></a>00197   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a7c1864cb185eee305db414af1dec2722" title="Sets the height of the view for the display.">setHeight</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> *, <span class="keywordtype">double</span> h );
<a name="l00198"></a>00198 
<a name="l00201"></a>00201   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1PyCanvas.html#a4bdad06c1430e4ecf599f00ce1b6f41f" title="Sets the width of the view for the display.">setWidth</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> *, <span class="keywordtype">double</span> w );
<a name="l00202"></a>00202 
<a name="l00205"></a>00205   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a83334b2df482e9f20c6b80384c9eb849" title="Gets the PickTable of selected display as a NTuple.">getSelPickTable</a> ();
<a name="l00206"></a>00206 
<a name="l00209"></a>00209   <a class="code" href="classhippodraw_1_1NTuple.html" title="A DataSource class implemented with std::vector&amp;lt;double&amp;gt; to store the column...">NTuple</a> * <a class="code" href="classhippodraw_1_1PyCanvas.html#a663f691e6b18f7afa668583ca4ced90a" title="Gets the PickTable for the display.">getPickTable</a> ( <a class="code" href="classhippodraw_1_1QtDisplay.html" title="Qt Displays wraps a derived class of PlotterBase.">QtDisplay</a> * );
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 };
<a name="l00212"></a>00212 
<a name="l00213"></a>00213 } <span class="comment">// namespace hippodraw</span>
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="preprocessor">#endif // PyCanvas_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>