<!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/vtkQtChartInteractor.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/vtkQtChartInteractor.h</h1><a href="a02736.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: vtkQtChartInteractor.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 _vtkQtChartInteractor_h</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define _vtkQtChartInteractor_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 <span class="preprocessor">#include <QObject></span> <a name="l00030"></a>00030 <a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="a01335.html" title="The vtkQtChartArea class manages the chart axes and layers.">vtkQtChartArea</a>; <a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a01349.html" title="The vtkQtChartContentsSpace class defines the contents space for a chart.">vtkQtChartContentsSpace</a>; <a name="l00033"></a>00033 <span class="keyword">class </span>vtkQtChartInteractorInternal; <a name="l00034"></a>00034 <span class="keyword">class </span>vtkQtChartInteractorModeList; <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a01359.html" title="The vtkQtChartMouseBox class is used to draw a mouse box that can be used for zooming...">vtkQtChartMouseBox</a>; <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a>; <a name="l00037"></a>00037 <span class="keyword">class </span>QCursor; <a name="l00038"></a>00038 <span class="keyword">class </span>QKeyEvent; <a name="l00039"></a>00039 <span class="keyword">class </span>QMouseEvent; <a name="l00040"></a>00040 <span class="keyword">class </span>QRect; <a name="l00041"></a>00041 <span class="keyword">class </span>QWheelEvent; <a name="l00042"></a>00042 <a name="l00043"></a>00043 <a name="l00072"></a><a class="code" href="a01352.html">00072</a> <span class="keyword">class </span>VTKQTCHART_EXPORT <a class="code" href="a01352.html" title="The vtkQtChartInteractor class is used to interact with a chart.">vtkQtChartInteractor</a> : <span class="keyword">public</span> QObject <a name="l00073"></a>00073 { <a name="l00074"></a>00074 Q_OBJECT <a name="l00075"></a>00075 <a name="l00076"></a>00076 <span class="keyword">public</span>: <a name="l00080"></a>00080 <a class="code" href="a01352.html" title="The vtkQtChartInteractor class is used to interact with a chart.">vtkQtChartInteractor</a>(QObject *parent=0); <a name="l00081"></a>00081 <span class="keyword">virtual</span> ~<a class="code" href="a01352.html" title="The vtkQtChartInteractor class is used to interact with a chart.">vtkQtChartInteractor</a>(); <a name="l00082"></a>00082 <a name="l00084"></a>00084 <a name="l00085"></a>00085 <a name="l00086"></a>00086 <a name="l00087"></a>00087 <a name="l00088"></a>00088 <a name="l00089"></a><a class="code" href="a01352.html#a62d955f80d1ad156cac5b48340eb41a">00089</a> <a class="code" href="a01335.html" title="The vtkQtChartArea class manages the chart axes and layers.">vtkQtChartArea</a> *getChartArea()<span class="keyword"> const </span>{<span class="keywordflow">return</span> this->ChartArea;} <a name="l00090"></a>00090 <a name="l00094"></a><a class="code" href="a01352.html#3cf73a6a491fba2be3327da5ba072c58">00094</a> <span class="keywordtype">void</span> setChartArea(<a class="code" href="a01335.html" title="The vtkQtChartArea class manages the chart axes and layers.">vtkQtChartArea</a> *area) {this->ChartArea = area;} <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a name="l00099"></a>00099 <a name="l00100"></a>00100 <a name="l00101"></a>00101 <a name="l00102"></a>00102 <a name="l00103"></a>00103 <a name="l00104"></a>00104 <a name="l00105"></a>00105 <a name="l00106"></a>00106 <a name="l00107"></a>00107 <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keywordtype">void</span> setFunction(Qt::MouseButton button, <a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>, <a name="l00110"></a>00110 Qt::KeyboardModifiers modifiers=Qt::NoModifier); <a name="l00111"></a>00111 <a name="l00117"></a>00117 <span class="keywordtype">void</span> setWheelFunction(<a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>, <a name="l00118"></a>00118 Qt::KeyboardModifiers modifiers=Qt::NoModifier); <a name="l00119"></a>00119 <a name="l00131"></a>00131 <span class="keywordtype">void</span> addFunction(Qt::MouseButton button, <a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>, <a name="l00132"></a>00132 Qt::KeyboardModifiers modifiers=Qt::NoModifier); <a name="l00133"></a>00133 <a name="l00139"></a>00139 <span class="keywordtype">void</span> addWheelFunction(<a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>, <a name="l00140"></a>00140 Qt::KeyboardModifiers modifiers=Qt::NoModifier); <a name="l00141"></a>00141 <a name="l00145"></a>00145 <span class="keywordtype">void</span> removeFunction(<a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>); <a name="l00146"></a>00146 <a name="l00150"></a>00150 <span class="keywordtype">void</span> removeFunctions(Qt::MouseButton button); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <span class="keywordtype">void</span> removeWheelFunctions(); <a name="l00154"></a>00154 <a name="l00156"></a>00156 <span class="keywordtype">void</span> removeAllFunctions(); <a name="l00157"></a>00157 <a name="l00163"></a>00163 <span class="keywordtype">int</span> getNumberOfModes(Qt::MouseButton button) <span class="keyword">const</span>; <a name="l00164"></a>00164 <a name="l00170"></a>00170 <span class="keywordtype">int</span> getMode(Qt::MouseButton button) <span class="keyword">const</span>; <a name="l00171"></a>00171 <a name="l00176"></a>00176 <span class="keywordtype">void</span> setMode(Qt::MouseButton button, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>); <a name="l00177"></a>00177 <a name="l00182"></a>00182 <span class="keywordtype">int</span> getNumberOfWheelModes() <span class="keyword">const</span>; <a name="l00183"></a>00183 <a name="l00188"></a>00188 <span class="keywordtype">int</span> getWheelMode() <span class="keyword">const</span>; <a name="l00189"></a>00189 <a name="l00193"></a>00193 <span class="keywordtype">void</span> setWheelMode(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>); <a name="l00195"></a>00195 <a name="l00197"></a>00197 <a name="l00198"></a>00198 <a name="l00199"></a>00199 <a name="l00200"></a>00200 <a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> keyPressEvent(QKeyEvent *e); <a name="l00202"></a>00202 <a name="l00211"></a>00211 <span class="keyword">virtual</span> <span class="keywordtype">void</span> mousePressEvent(QMouseEvent *e); <a name="l00212"></a>00212 <a name="l00216"></a>00216 <span class="keyword">virtual</span> <span class="keywordtype">void</span> mouseMoveEvent(QMouseEvent *e); <a name="l00217"></a>00217 <a name="l00221"></a>00221 <span class="keyword">virtual</span> <span class="keywordtype">void</span> mouseReleaseEvent(QMouseEvent *e); <a name="l00222"></a>00222 <a name="l00226"></a>00226 <span class="keyword">virtual</span> <span class="keywordtype">void</span> mouseDoubleClickEvent(QMouseEvent *e); <a name="l00227"></a>00227 <a name="l00231"></a>00231 <span class="keyword">virtual</span> <span class="keywordtype">void</span> wheelEvent(QWheelEvent *e); <a name="l00233"></a>00233 <a name="l00234"></a>00234 signals: <a name="l00238"></a>00238 <span class="keywordtype">void</span> cursorChangeRequested(<span class="keyword">const</span> QCursor &cursor); <a name="l00239"></a>00239 <a name="l00240"></a>00240 <span class="keyword">private</span> slots: <a name="l00247"></a>00247 <span class="keywordtype">void</span> beginState(<a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *owner); <a name="l00248"></a>00248 <a name="l00255"></a>00255 <span class="keywordtype">void</span> endState(<a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *owner); <a name="l00256"></a>00256 <a name="l00257"></a>00257 <span class="keyword">private</span>: <a name="l00264"></a>00264 <span class="keywordtype">void</span> addFunction(vtkQtChartInteractorModeList *list, <a name="l00265"></a>00265 <a class="code" href="a01360.html" title="The vtkQtChartMouseFunction class is the base class for all chart mouse functions...">vtkQtChartMouseFunction</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>, Qt::KeyboardModifiers modifiers); <a name="l00266"></a>00266 <a name="l00270"></a>00270 <span class="keywordtype">void</span> removeFunctions(vtkQtChartInteractorModeList *list); <a name="l00271"></a>00271 <a name="l00272"></a>00272 <span class="keyword">private</span>: <a name="l00274"></a>00274 vtkQtChartInteractorInternal *Internal; <a name="l00275"></a>00275 <a class="code" href="a01335.html" title="The vtkQtChartArea class manages the chart axes and layers.">vtkQtChartArea</a> *ChartArea; <a name="l00276"></a>00276 Qt::KeyboardModifier XModifier; <a name="l00277"></a>00277 Qt::KeyboardModifier YModifier; <a name="l00278"></a>00278 }; <a name="l00279"></a>00279 <a name="l00280"></a>00280 <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 <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>