<!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/vtkQtChartZoomHistory.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 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="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/vtkQtChartZoomHistory.h</h1><a href="a02769.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: vtkQtChartZoomHistory.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 _vtkQtChartZoomHistory_h</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define _vtkQtChartZoomHistory_h</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#include "vtkQtChartExport.h"</span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="keyword">class </span>vtkQtChartZoomHistoryInternal; <a name="l00031"></a>00031 <a name="l00032"></a>00032 <a name="l00040"></a><a class="code" href="a01396.html">00040</a> <span class="keyword">class </span>VTKQTCHART_EXPORT <a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a> <a name="l00041"></a>00041 { <a name="l00042"></a>00042 <span class="keyword">public</span>: <a name="l00043"></a>00043 <a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a>(); <a name="l00044"></a><a class="code" href="a01396.html#bffd2aaf450135f3c6be563ced5bcbb7">00044</a> ~<a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a>() {} <a name="l00045"></a>00045 <a name="l00052"></a>00052 <span class="keywordtype">void</span> setPosition(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00053"></a>00053 <a name="l00060"></a>00060 <span class="keywordtype">void</span> setZoom(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00061"></a>00061 <a name="l00067"></a><a class="code" href="a01396.html#c8ad8c467197b785a94f032185891e02">00067</a> <span class="keywordtype">float</span> getXPosition()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->X;} <a name="l00068"></a>00068 <a name="l00074"></a><a class="code" href="a01396.html#7ae2cdaedf41aa16972b6110dced33cc">00074</a> <span class="keywordtype">float</span> getYPosition()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->Y;} <a name="l00075"></a>00075 <a name="l00081"></a><a class="code" href="a01396.html#1e78a61cdb6d7016542466c6a3ee6b0a">00081</a> <span class="keywordtype">float</span> getXZoom()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->XFactor;} <a name="l00082"></a>00082 <a name="l00088"></a><a class="code" href="a01396.html#905bfd014d20b000373267ff29e62302">00088</a> <span class="keywordtype">float</span> getYZoom()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->YFactor;} <a name="l00089"></a>00089 <a name="l00090"></a>00090 <span class="keyword">private</span>: <a name="l00091"></a>00091 <span class="keywordtype">float</span> X; <a name="l00092"></a>00092 <span class="keywordtype">float</span> Y; <a name="l00093"></a>00093 <span class="keywordtype">float</span> XFactor; <a name="l00094"></a>00094 <span class="keywordtype">float</span> YFactor; <a name="l00095"></a>00095 }; <a name="l00096"></a>00096 <a name="l00097"></a>00097 <a name="l00124"></a><a class="code" href="a01395.html">00124</a> <span class="keyword">class </span>VTKQTCHART_EXPORT <a class="code" href="a01395.html" title="The vtkQtChartZoomHistory class stores a list of vtkQtChartZoomViewport objects.">vtkQtChartZoomHistory</a> <a name="l00125"></a>00125 { <a name="l00126"></a>00126 <span class="keyword">public</span>: <a name="l00127"></a>00127 <a class="code" href="a01395.html" title="The vtkQtChartZoomHistory class stores a list of vtkQtChartZoomViewport objects.">vtkQtChartZoomHistory</a>(); <a name="l00128"></a>00128 ~<a class="code" href="a01395.html" title="The vtkQtChartZoomHistory class stores a list of vtkQtChartZoomViewport objects.">vtkQtChartZoomHistory</a>(); <a name="l00129"></a>00129 <a name="l00133"></a>00133 <span class="keywordtype">void</span> setLimit(<span class="keywordtype">int</span> limit); <a name="l00134"></a>00134 <a name="l00139"></a><a class="code" href="a01395.html#1f39f30666ab492cbedef77380bc3e1a">00139</a> <span class="keywordtype">int</span> getLimit()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->Allowed;} <a name="l00140"></a>00140 <a name="l00154"></a>00154 <span class="keywordtype">void</span> addHistory(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> xZoom, <span class="keywordtype">float</span> yZoom); <a name="l00155"></a>00155 <a name="l00166"></a>00166 <span class="keywordtype">void</span> updatePosition(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); <a name="l00167"></a>00167 <a name="l00172"></a>00172 <span class="keywordtype">bool</span> isPreviousAvailable() <span class="keyword">const</span>; <a name="l00173"></a>00173 <a name="l00178"></a>00178 <span class="keywordtype">bool</span> isNextAvailable() <span class="keyword">const</span>; <a name="l00179"></a>00179 <a name="l00185"></a>00185 <span class="keyword">const</span> <a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a> *getCurrent() <span class="keyword">const</span>; <a name="l00186"></a>00186 <a name="l00193"></a>00193 <span class="keyword">const</span> <a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a> *getPrevious(); <a name="l00194"></a>00194 <a name="l00201"></a>00201 <span class="keyword">const</span> <a class="code" href="a01396.html" title="The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport...">vtkQtChartZoomViewport</a> *getNext(); <a name="l00202"></a>00202 <a name="l00203"></a>00203 <span class="keyword">private</span>: <a name="l00205"></a>00205 vtkQtChartZoomHistoryInternal *Internal; <a name="l00206"></a>00206 <a name="l00207"></a>00207 <span class="keywordtype">int</span> Current; <a name="l00208"></a>00208 <span class="keywordtype">int</span> Allowed; <a name="l00209"></a>00209 }; <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:31 2009 for VTK by <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>