Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 1388

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: vtkQtChartShapeLocator Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<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 class="current"><a href="classes.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>vtkQtChartShapeLocator Class Reference</h1><!-- doxytag: class="vtkQtChartShapeLocator" --><code>#include &lt;<a class="el" href="a04553.html">vtkQtChartShapeLocator.h</a>&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for vtkQtChartShapeLocator:</div>
<div class="dynsection">
<p><center><img src="a13724.png" border="0" usemap="#a13725" alt="Collaboration graph"></center>
<map name="a13725">
<area shape="rect" href="a01386.html" title="The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes." alt="" coords="5,96,211,123"><area shape="rect" href="a01384.html" title="The vtkQtChartShape class is the base class for shapes used in the chart shape locators..." alt="" coords="44,6,172,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="a13726.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="a01385.html" title="The vtkQtChartShapeLocator class is used to locate shapes in a tree structure.">vtkQtChartShapeLocator</a> class is used to locate shapes in a tree structure. 
<p>
The tree is built from a table of shapes. The leaf nodes store the shapes and use them for searches. The parent nodes in the tree use the bounding rectangle for searches. The bounding rectangles can be updated if the layout remains unchanged. 
<p>Definition at line <a class="el" href="a04553.html#l00142">142</a> of file <a class="el" href="a04553.html">vtkQtChartShapeLocator.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#57b7908410542d8d5cb38789d5fe929b">vtkQtChartShapeLocator</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#ff104ae4b7456f8e84ae37b251ffe3f7">~vtkQtChartShapeLocator</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#bce9d0f394bf115916008a641aa61a57">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes all the tree items.  <a href="#bce9d0f394bf115916008a641aa61a57"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#44bb92d5ec9db89174e47454232a7496">build</a> (const QList&lt; QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &gt; &amp;table)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Builds a shape tree from the ordered table of shapes.  <a href="#44bb92d5ec9db89174e47454232a7496"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#dc0fb2050f0ecdf5b8c4c247da83a4ab">build</a> (const QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &amp;list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Builds a shape tree from the list of shapes.  <a href="#dc0fb2050f0ecdf5b8c4c247da83a4ab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#f8418a0af45b311235a169603cbe433e">update</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Updates the bounding rectangles in the shape tree.  <a href="#f8418a0af45b311235a169603cbe433e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#f9e30acaf2862445e3adc0797b2f39fa">getItemsAt</a> (const QPointF &amp;point) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the shapes at the specified point.  <a href="#f9e30acaf2862445e3adc0797b2f39fa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#32fb57564dc8f029c865d97c394235bb">getItemsIn</a> (const QRectF &amp;area) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the shapes in the specified rectangle.  <a href="#32fb57564dc8f029c865d97c394235bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#efcf48b0d542d791de08a8cbdd3fe633">getLast</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the last node in the tree.  <a href="#efcf48b0d542d791de08a8cbdd3fe633"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#0fbb0d8e92a4e2ccf3d23c68115b9690">getPrevious</a> (<a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the previous node in the tree.  <a href="#0fbb0d8e92a4e2ccf3d23c68115b9690"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a01385.html#dde4acfb10d984dcdcec0d0edba87d85">sort</a> (QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &amp;list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sorts the list of shapes according to the y value.  <a href="#dde4acfb10d984dcdcec0d0edba87d85"></a><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="57b7908410542d8d5cb38789d5fe929b"></a><!-- doxytag: member="vtkQtChartShapeLocator::vtkQtChartShapeLocator" ref="57b7908410542d8d5cb38789d5fe929b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkQtChartShapeLocator::vtkQtChartShapeLocator           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="ff104ae4b7456f8e84ae37b251ffe3f7"></a><!-- doxytag: member="vtkQtChartShapeLocator::~vtkQtChartShapeLocator" ref="ff104ae4b7456f8e84ae37b251ffe3f7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkQtChartShapeLocator::~vtkQtChartShapeLocator           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bce9d0f394bf115916008a641aa61a57"></a><!-- doxytag: member="vtkQtChartShapeLocator::clear" ref="bce9d0f394bf115916008a641aa61a57" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkQtChartShapeLocator::clear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes all the tree items. 
<p>

</div>
</div><p>
<a class="anchor" name="44bb92d5ec9db89174e47454232a7496"></a><!-- doxytag: member="vtkQtChartShapeLocator::build" ref="44bb92d5ec9db89174e47454232a7496" args="(const QList&lt; QList&lt; vtkQtChartShape * &gt; &gt; &amp;table)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkQtChartShapeLocator::build           </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>table</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Builds a shape tree from the ordered table of shapes. 
<p>
The shape pointers are stored by the tree and should not be deleted until the tree has been cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>table</em>&nbsp;</td><td>The ordered table of shapes. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="dc0fb2050f0ecdf5b8c4c247da83a4ab"></a><!-- doxytag: member="vtkQtChartShapeLocator::build" ref="dc0fb2050f0ecdf5b8c4c247da83a4ab" args="(const QList&lt; vtkQtChartShape * &gt; &amp;list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkQtChartShapeLocator::build           </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Builds a shape tree from the list of shapes. 
<p>
The list of shapes should be sorted in the x-axis direction before calling this method. The list will be divided into a table and sorted in the y-axis direction before building the tree. The shape pointers are stored by the tree and should not be deleted until the tree has been cleared.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>The list of shapes. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="f8418a0af45b311235a169603cbe433e"></a><!-- doxytag: member="vtkQtChartShapeLocator::update" ref="f8418a0af45b311235a169603cbe433e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkQtChartShapeLocator::update           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Updates the bounding rectangles in the shape tree. 
<p>
The nodes are traversed from last to first. The bounding rectangle of each node is updated using the shape if it is a leaf or the bounds of the children otherwise. 
</div>
</div><p>
<a class="anchor" name="f9e30acaf2862445e3adc0797b2f39fa"></a><!-- doxytag: member="vtkQtChartShapeLocator::getItemsAt" ref="f9e30acaf2862445e3adc0797b2f39fa" args="(const QPointF &amp;point) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt;<a class="el" href="a01384.html">vtkQtChartShape</a> *&gt; vtkQtChartShapeLocator::getItemsAt           </td>
          <td>(</td>
          <td class="paramtype">const QPointF &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the shapes at the specified point. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>point</em>&nbsp;</td><td>The point to search. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of shapes at the given point. </dd></dl>

</div>
</div><p>
<a class="anchor" name="32fb57564dc8f029c865d97c394235bb"></a><!-- doxytag: member="vtkQtChartShapeLocator::getItemsIn" ref="32fb57564dc8f029c865d97c394235bb" args="(const QRectF &amp;area) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt;<a class="el" href="a01384.html">vtkQtChartShape</a> *&gt; vtkQtChartShapeLocator::getItemsIn           </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&nbsp;</td>
          <td class="paramname"> <em>area</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the shapes in the specified rectangle. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>area</em>&nbsp;</td><td>The rectangle to search. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The list of shapes in the given rectangle. </dd></dl>

</div>
</div><p>
<a class="anchor" name="efcf48b0d542d791de08a8cbdd3fe633"></a><!-- doxytag: member="vtkQtChartShapeLocator::getLast" ref="efcf48b0d542d791de08a8cbdd3fe633" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a>* vtkQtChartShapeLocator::getLast           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the last node in the tree. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the last node in the tree. </dd></dl>

</div>
</div><p>
<a class="anchor" name="0fbb0d8e92a4e2ccf3d23c68115b9690"></a><!-- doxytag: member="vtkQtChartShapeLocator::getPrevious" ref="0fbb0d8e92a4e2ccf3d23c68115b9690" args="(vtkQtChartShapeLocatorNode *node)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a>* vtkQtChartShapeLocator::getPrevious           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01386.html">vtkQtChartShapeLocatorNode</a> *&nbsp;</td>
          <td class="paramname"> <em>node</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the previous node in the tree. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td>The node to search from. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the previous node in the tree. </dd></dl>

</div>
</div><p>
<a class="anchor" name="dde4acfb10d984dcdcec0d0edba87d85"></a><!-- doxytag: member="vtkQtChartShapeLocator::sort" ref="dde4acfb10d984dcdcec0d0edba87d85" args="(QList&lt; vtkQtChartShape * &gt; &amp;list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void vtkQtChartShapeLocator::sort           </td>
          <td>(</td>
          <td class="paramtype">QList&lt; <a class="el" href="a01384.html">vtkQtChartShape</a> * &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sorts the list of shapes according to the y value. 
<p>
The list of shapes is sorted by the y-axis value using a quick sort algorithm. The list is sorted in place and non-recursively.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>The list of shapes to be sorted. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>dox/GUISupport/Qt/Chart/<a class="el" href="a04553.html">vtkQtChartShapeLocator.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:28:39 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>