Sophie

Sophie

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

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/Widgets/vtkBalloonWidget.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/Widgets/vtkBalloonWidget.h</h1><a href="a03659.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: vtkBalloonWidget.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="l00073"></a>00073 <span class="preprocessor">#ifndef __vtkBalloonWidget_h</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define __vtkBalloonWidget_h</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00076"></a>00076 <span class="preprocessor">#include "<a class="code" href="a03694.html">vtkHoverWidget.h</a>"</span>
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="keyword">class </span><a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>;
<a name="l00079"></a>00079 <span class="keyword">class </span><a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>;
<a name="l00080"></a>00080 <span class="keyword">class </span><a class="code" href="a00088.html" title="abstract API for pickers that can pick an instance of vtkProp">vtkAbstractPropPicker</a>;
<a name="l00081"></a>00081 <span class="keyword">class </span><a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a>;
<a name="l00082"></a>00082 <span class="keyword">class </span>vtkPropMap;
<a name="l00083"></a>00083 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>;
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="a00157.html">00086</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a> : <span class="keyword">public</span> <a class="code" href="a00697.html" title="invoke a vtkTimerEvent when hovering">vtkHoverWidget</a>
<a name="l00087"></a>00087 {
<a name="l00088"></a>00088 <span class="keyword">public</span>:
<a name="l00090"></a>00090   <span class="keyword">static</span> <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a> *<a class="code" href="a00697.html#febb2d1fafbdafebaa2581cd0d63704f">New</a>();
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="a00157.html#dd83b6466ecc3e73420d2e34b6ff429d">00094</a>   vtkTypeRevisionMacro(<a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>,<a class="code" href="a00697.html" title="invoke a vtkTimerEvent when hovering">vtkHoverWidget</a>);
<a name="l00095"></a>00095   <span class="keywordtype">void</span> <a class="code" href="a00697.html#9c23815f06ec32f08804b379b0838550">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00097"></a>00097 
<a name="l00101"></a>00101   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00697.html#e99d2e58ed1706fc38c11e161b96cb12">SetEnabled</a>(<span class="keywordtype">int</span>);
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00107"></a><a class="code" href="a00157.html#d42e747bb166bbfa9b5037b7b42a4e56">00107</a>   <span class="keywordtype">void</span> SetRepresentation(<a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a> *r)
<a name="l00108"></a>00108     {this-&gt;Superclass::SetWidgetRepresentation(reinterpret_cast&lt;vtkWidgetRepresentation*&gt;(r));}
<a name="l00110"></a>00110   
<a name="l00112"></a>00112   <span class="keywordtype">void</span> <a class="code" href="a00697.html#c3b70efdb928f034ce9430ff83c82c3a">CreateDefaultRepresentation</a>();
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00117"></a>00117   <span class="keywordtype">void</span> AddBalloon(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop, <a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a> *str, <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *img);
<a name="l00118"></a>00118   <span class="keywordtype">void</span> AddBalloon(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop, <span class="keyword">const</span> <span class="keywordtype">char</span> *str, <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *img);
<a name="l00119"></a><a class="code" href="a00157.html#5677f3c3912538e691ac790ef4e46c45">00119</a>   <span class="keywordtype">void</span> AddBalloon(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop, <span class="keyword">const</span> <span class="keywordtype">char</span> *str) <span class="comment">//for wrapping</span>
<a name="l00120"></a>00120     {this-&gt;AddBalloon(prop,str,NULL);}
<a name="l00121"></a>00121   <span class="keywordtype">void</span> RemoveBalloon(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop);
<a name="l00123"></a>00123   
<a name="l00125"></a>00125 
<a name="l00129"></a>00129   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetBalloonString(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop);
<a name="l00130"></a>00130   <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *GetBalloonImage(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop);
<a name="l00132"></a>00132 
<a name="l00134"></a>00134 
<a name="l00136"></a><a class="code" href="a00157.html#2fc77bf6937017a73245eda9da823f28">00136</a>   <span class="keyword">virtual</span> <a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *GetCurrentProp()
<a name="l00137"></a>00137     {<span class="keywordflow">return</span> this-&gt;CurrentProp;}
<a name="l00139"></a>00139   
<a name="l00141"></a>00141 
<a name="l00145"></a>00145   <span class="keywordtype">void</span> SetPicker(<a class="code" href="a00088.html" title="abstract API for pickers that can pick an instance of vtkProp">vtkAbstractPropPicker</a>*);
<a name="l00146"></a>00146   vtkGetObjectMacro(Picker,<a class="code" href="a00088.html" title="abstract API for pickers that can pick an instance of vtkProp">vtkAbstractPropPicker</a>);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="keyword">protected</span>:
<a name="l00150"></a>00150   <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>();
<a name="l00151"></a>00151   ~<a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>();
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   <span class="comment">// This class implements the method called from its superclass.</span>
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00697.html#cbc50a3a66b8f0d556a40cb5da5aa723">SubclassEndHoverAction</a>();
<a name="l00155"></a>00155   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00697.html#f5066f713140bfeb2915e328ea5af9a7">SubclassHoverAction</a>();
<a name="l00156"></a>00156   
<a name="l00157"></a>00157   <span class="comment">// Classes for managing balloons</span>
<a name="l00158"></a><a class="code" href="a00157.html#23f04ebb56e88fda6f77cc121331ae70">00158</a>   vtkPropMap *PropMap; <span class="comment">//PIMPL'd map of (vtkProp,vtkStdString)</span>
<a name="l00159"></a>00159 
<a name="l00160"></a>00160   <span class="comment">// Support for picking</span>
<a name="l00161"></a><a class="code" href="a00157.html#f725079bd4a0a9d7fd50d78a41af30c9">00161</a>   <a class="code" href="a00088.html" title="abstract API for pickers that can pick an instance of vtkProp">vtkAbstractPropPicker</a> *Picker;
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="comment">// The vtkProp that is being hovered over (which may be NULL)</span>
<a name="l00164"></a><a class="code" href="a00157.html#3356943440eeda17900ad994285dd5fb">00164</a>   <a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *CurrentProp;
<a name="l00165"></a>00165   
<a name="l00166"></a>00166 <span class="keyword">private</span>:
<a name="l00167"></a>00167   <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>(<span class="keyword">const</span> <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00168"></a>00168   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00157.html" title="popup text balloons above instance of vtkProp when hovering occurs">vtkBalloonWidget</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:52 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>