Sophie

Sophie

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

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: dox/GUISupport/Qt/Chart/vtkQtChartAxisLayer.h Source File</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><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/GUISupport/Qt/Chart/vtkQtChartAxisLayer.h</h1><a href="a02724.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkQtChartAxisLayer.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00015"></a>00015 <span class="comment">/*-------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment">  Copyright 2008 Sandia Corporation.</span>
<a name="l00017"></a>00017 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span>
<a name="l00018"></a>00018 <span class="comment">  the U.S. Government retains certain rights in this software.</span>
<a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span>
<a name="l00020"></a>00020 
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef _vtkQtChartAxisLayer_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define _vtkQtChartAxisLayer_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "vtkQtChartExport.h"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="a02738.html">vtkQtChartLayer.h</a>"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="a02720.html">vtkQtChartAxis.h</a>"</span> <span class="comment">// Needed for enum</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="a01338.html" title="The vtkQtChartAxisDomain class is used to merge similar domains for an axis.">vtkQtChartAxisDomain</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a01339.html" title="The vtkQtChartAxisDomainPriority class stores the domain priority order.">vtkQtChartAxisDomainPriority</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span>vtkQtChartAxisLayerItem;
<a name="l00034"></a>00034 <span class="keyword">class </span>QFont;
<a name="l00035"></a>00035 <span class="keyword">class </span>QGraphicsRectItem;
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 
<a name="l00041"></a><a class="code" href="a01340.html">00041</a> <span class="keyword">class </span>VTKQTCHART_EXPORT <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a> : <span class="keyword">public</span> <a class="code" href="a01354.html" title="The vtkQtChartLayer class is the base class for all chart drawing layers.">vtkQtChartLayer</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043   Q_OBJECT
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a><a class="code" href="a01340.html#6eba01eaeca8cfae3d55a1af2c29e4fb">00046</a>   <span class="keyword">enum</span> <a class="code" href="a01340.html#6eba01eaeca8cfae3d55a1af2c29e4fb">AxisBehavior</a>
<a name="l00047"></a>00047     {
<a name="l00048"></a><a class="code" href="a01340.html#6eba01eaeca8cfae3d55a1af2c29e4fbf3d35a3e9541bcbb9fb711ff3a88b022">00048</a>     ChartSelect = 0, 
<a name="l00049"></a><a class="code" href="a01340.html#6eba01eaeca8cfae3d55a1af2c29e4fb4ee3c8e8f974c6c869b334987fc94290">00049</a>     BestFit,         
<a name="l00050"></a><a class="code" href="a01340.html#6eba01eaeca8cfae3d55a1af2c29e4fb1badd3d4a93ef2432b99dd326039e49b">00050</a>     FixedInterval    
<a name="l00051"></a>00051     };
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="a01340.html#271389413c8dcfc018daa27832de9a1055e6918489a5c8b3d378460a39a377c4">00053</a>   <span class="keyword">enum</span> {Type = <a class="code" href="a02733.html#e01dc815aadee555644759281591d4284a2cbe01c7798955c5fa6607714c3199">vtkQtChart_AxisLayerType</a>};
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a>00056   <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a>();
<a name="l00057"></a>00057   <span class="keyword">virtual</span> ~<a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a>();
<a name="l00058"></a>00058 
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 
<a name="l00066"></a>00066   <a class="code" href="a01336.html" title="The vtkQtChartAxis class is used to display a cartesian axis.">vtkQtChartAxis</a> *getAxis(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>) <span class="keyword">const</span>;
<a name="l00067"></a>00067 
<a name="l00073"></a>00073   <a class="code" href="a01336.html" title="The vtkQtChartAxis class is used to display a cartesian axis.">vtkQtChartAxis</a> *getHorizontalAxis(<a class="code" href="a01354.html#64c2323243fa52c1948966b3739f7b7c">vtkQtChartLayer::AxesCorner</a> axes) <span class="keyword">const</span>;
<a name="l00074"></a>00074 
<a name="l00080"></a>00080   <a class="code" href="a01336.html" title="The vtkQtChartAxis class is used to display a cartesian axis.">vtkQtChartAxis</a> *getVerticalAxis(<a class="code" href="a01354.html#64c2323243fa52c1948966b3739f7b7c">vtkQtChartLayer::AxesCorner</a> axes) <span class="keyword">const</span>;
<a name="l00081"></a>00081 
<a name="l00087"></a>00087   AxisBehavior getAxisBehavior(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>) <span class="keyword">const</span>;
<a name="l00088"></a>00088 
<a name="l00093"></a>00093   <span class="keywordtype">void</span> setAxisBehavior(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>,
<a name="l00094"></a>00094       AxisBehavior behavior);
<a name="l00095"></a>00095 
<a name="l00101"></a>00101   <span class="keyword">const</span> <a class="code" href="a01339.html" title="The vtkQtChartAxisDomainPriority class stores the domain priority order.">vtkQtChartAxisDomainPriority</a> &amp;getAxisDomainPriority(
<a name="l00102"></a>00102       <a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>) <span class="keyword">const</span>;
<a name="l00103"></a>00103 
<a name="l00108"></a>00108   <span class="keywordtype">void</span> setAxisDomainPriority(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>,
<a name="l00109"></a>00109       <span class="keyword">const</span> <a class="code" href="a01339.html" title="The vtkQtChartAxisDomainPriority class stores the domain priority order.">vtkQtChartAxisDomainPriority</a> &amp;<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21024293a2f7a2743668a74cff1eb1382e2">priority</a>);
<a name="l00111"></a>00111 
<a name="l00123"></a>00123   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01354.html#1a9e147bb42a080ee062580d817a72fb" title="Used to layout the chart layer.">layoutChart</a>(<span class="keyword">const</span> QRectF &amp;area);
<a name="l00124"></a>00124 
<a name="l00132"></a>00132   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01354.html#f6377ae976f4d2a8e937c82013d15ab9" title="Sets the chart area that contains this layer.">setChartArea</a>(<a class="code" href="a01335.html" title="The vtkQtChartArea class manages the chart axes and layers.">vtkQtChartArea</a> *area);
<a name="l00133"></a>00133 
<a name="l00138"></a><a class="code" href="a01340.html#1e374ae1c90e676142a1b8abcce31a99">00138</a>   QRectF getLayerBounds()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this-&gt;LayerBounds;}
<a name="l00139"></a>00139 
<a name="l00140"></a>00140   <span class="keyword">virtual</span> QRectF boundingRect() <span class="keyword">const</span>;
<a name="l00141"></a>00141   <span class="keyword">virtual</span> <span class="keywordtype">void</span> paint(QPainter *painter, <span class="keyword">const</span> QStyleOptionGraphicsItem *option,
<a name="l00142"></a>00142     QWidget *widget=0);
<a name="l00143"></a>00143 
<a name="l00144"></a>00144 <span class="keyword">public</span> slots:
<a name="l00146"></a>00146   <span class="keywordtype">void</span> handleChartRangeChange();
<a name="l00147"></a>00147 
<a name="l00149"></a>00149   <span class="keywordtype">void</span> cancelChartRangeChange();
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keyword">private</span>:
<a name="l00153"></a>00153   <span class="keywordtype">void</span> setupAxesCorner();
<a name="l00154"></a>00154 
<a name="l00160"></a>00160   <a class="code" href="a01336.html#31c4294ce25acb2c8dd312626c852f20">vtkQtChartAxis::AxisDomain</a> getAxisDomain(
<a name="l00161"></a>00161       <a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>) <span class="keyword">const</span>;
<a name="l00162"></a>00162 
<a name="l00169"></a>00169   <a class="code" href="a01354.html#64c2323243fa52c1948966b3739f7b7c">vtkQtChartLayer::AxesCorner</a> getCorner(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> first,
<a name="l00170"></a>00170       <a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> second) <span class="keyword">const</span>;
<a name="l00171"></a>00171 
<a name="l00179"></a>00179   <span class="keywordtype">void</span> findAxisDomain(<a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> axis,
<a name="l00180"></a>00180       <a class="code" href="a01336.html#af57eeb498589774f5ce3dca74b4cbb5">vtkQtChartAxis::AxisLocation</a> neighbor,
<a name="l00181"></a>00181       <a class="code" href="a01336.html#31c4294ce25acb2c8dd312626c852f20">vtkQtChartAxis::AxisDomain</a> neighborDomain,
<a name="l00182"></a>00182       <span class="keyword">const</span> <a class="code" href="a01355.html" title="The vtkQtChartLayerDomain class is used to merge chart layer domains.">vtkQtChartLayerDomain</a> &amp;layerDomain,
<a name="l00183"></a>00183       <a class="code" href="a01338.html" title="The vtkQtChartAxisDomain class is used to merge similar domains for an axis.">vtkQtChartAxisDomain</a> &amp;axisDomain) <span class="keyword">const</span>;
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <span class="keyword">private</span>:
<a name="l00186"></a>00186   QRectF LayerBounds;                 
<a name="l00187"></a>00187   QGraphicsRectItem *Border;          
<a name="l00188"></a>00188   <a class="code" href="a01336.html" title="The vtkQtChartAxis class is used to display a cartesian axis.">vtkQtChartAxis</a> *Axis[4];            
<a name="l00189"></a>00189   vtkQtChartAxisLayerItem *Option[4]; 
<a name="l00190"></a>00190   <span class="keywordtype">bool</span> RangeChanged;                  
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="keyword">private</span>:
<a name="l00193"></a>00193   <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a>(<span class="keyword">const</span> <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a> &amp;);
<a name="l00194"></a>00194   <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="a01340.html" title="The vtkQtChartAxisLayer class is used to display the chart axes.">vtkQtChartAxisLayer</a> &amp;);
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:30 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>