Sophie

Sophie

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

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/vtkBalloonRepresentation.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/vtkBalloonRepresentation.h</h1><a href="a03658.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: vtkBalloonRepresentation.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="l00056"></a>00056 <span class="preprocessor">#ifndef __vtkBalloonRepresentation_h</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define __vtkBalloonRepresentation_h</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span>
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>;
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a01689.html" title="An actor that displays text. Scaled or unscaled.">vtkTextActor</a>;
<a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>;
<a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>;
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>;
<a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>;
<a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>;
<a name="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00073"></a>00073 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>;
<a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00075"></a>00075 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="a00156.html">00077</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079 <span class="keyword">public</span>:
<a name="l00081"></a>00081   <span class="keyword">static</span> <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00085"></a><a class="code" href="a00156.html#f4663adee19baa25852a751461dd8b49">00085</a>   vtkTypeRevisionMacro(<a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>);
<a name="l00086"></a>00086   <span class="keywordtype">void</span> <a class="code" href="a01877.html#dea6d0138ff965f86cac0a91553ad78f">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00088"></a>00088 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetBalloonImage(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *img);
<a name="l00092"></a>00092   vtkGetObjectMacro(BalloonImage,<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>);
<a name="l00094"></a>00094 
<a name="l00096"></a>00096 
<a name="l00097"></a>00097   vtkGetStringMacro(BalloonText);
<a name="l00098"></a>00098   vtkSetStringMacro(BalloonText);
<a name="l00100"></a>00100 
<a name="l00102"></a>00102 
<a name="l00106"></a>00106   vtkSetVector2Macro(ImageSize,<span class="keywordtype">int</span>);
<a name="l00107"></a>00107   vtkGetVector2Macro(ImageSize,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p);
<a name="l00113"></a>00113   vtkGetObjectMacro(TextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00115"></a>00115     
<a name="l00117"></a>00117 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFrameProperty(<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *p);
<a name="l00120"></a>00120   vtkGetObjectMacro(FrameProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00122"></a>00122     
<a name="l00124"></a>00124 
<a name="l00125"></a>00125   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetImageProperty(<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *p);
<a name="l00126"></a>00126   vtkGetObjectMacro(ImageProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00128"></a>00128     
<a name="l00129"></a>00129 <span class="comment">//BTX</span>
<a name="l00130"></a><a class="code" href="a00156.html#3fb946699a5ffa9b2104b20c255bfe857c1df3d89aded0d3f81eb9ca17c0a918">00130</a>   <span class="keyword">enum</span> {ImageLeft=0,ImageRight,ImageBottom,ImageTop};
<a name="l00131"></a>00131 <span class="comment">//ETX</span>
<a name="l00133"></a>00133 <span class="comment"></span>
<a name="l00139"></a>00139   vtkSetMacro(BalloonLayout,<span class="keywordtype">int</span>);
<a name="l00140"></a>00140   vtkGetMacro(BalloonLayout,<span class="keywordtype">int</span>);
<a name="l00141"></a><a class="code" href="a00156.html#0cc9416617030caea267065287e710d5">00141</a>   <span class="keywordtype">void</span> SetBalloonLayoutToImageLeft() {this-&gt;SetBalloonLayout(ImageLeft);}
<a name="l00142"></a><a class="code" href="a00156.html#26b05a827b07c8293e59a73d924aa68d">00142</a>   <span class="keywordtype">void</span> SetBalloonLayoutToImageRight() {this-&gt;SetBalloonLayout(ImageRight);}
<a name="l00143"></a><a class="code" href="a00156.html#9f61e40f48927ebdbfafe4be1bbe6223">00143</a>   <span class="keywordtype">void</span> SetBalloonLayoutToImageBottom() {this-&gt;SetBalloonLayout(ImageBottom);}
<a name="l00144"></a><a class="code" href="a00156.html#91f8771fcba945d3618e2ce9e6eeff44">00144</a>   <span class="keywordtype">void</span> SetBalloonLayoutToImageTop() {this-&gt;SetBalloonLayout(ImageTop);}
<a name="l00145"></a><a class="code" href="a00156.html#9ab479861730c55342b545355dc8a5b3">00145</a>   <span class="keywordtype">void</span> SetBalloonLayoutToTextLeft() {this-&gt;SetBalloonLayout(ImageRight);}
<a name="l00146"></a><a class="code" href="a00156.html#049ab5677fd9aa4a5903befc71e81752">00146</a>   <span class="keywordtype">void</span> SetBalloonLayoutToTextRight() {this-&gt;SetBalloonLayout(ImageLeft);}
<a name="l00147"></a><a class="code" href="a00156.html#11bde39beaf8d3ab13fcee1b24729e3b">00147</a>   <span class="keywordtype">void</span> SetBalloonLayoutToTextTop() {this-&gt;SetBalloonLayout(ImageBottom);}
<a name="l00148"></a><a class="code" href="a00156.html#acfd06e15fd5010d51ce69fe4acacac4">00148</a>   <span class="keywordtype">void</span> SetBalloonLayoutToTextBottom() {this-&gt;SetBalloonLayout(ImageTop);}
<a name="l00150"></a>00150 
<a name="l00152"></a>00152 
<a name="l00156"></a>00156   vtkSetVector2Macro(Offset,<span class="keywordtype">int</span>);
<a name="l00157"></a>00157   vtkGetVector2Macro(Offset,<span class="keywordtype">int</span>);
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00163"></a>00163   vtkSetClampMacro(Padding,<span class="keywordtype">int</span>,0,100);
<a name="l00164"></a>00164   vtkGetMacro(Padding,<span class="keywordtype">int</span>);
<a name="l00166"></a>00166 
<a name="l00168"></a>00168 
<a name="l00169"></a>00169   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#9aece0d7ff74c1fcfd5f427088cab77b">StartWidgetInteraction</a>(<span class="keywordtype">double</span> e[2]);
<a name="l00170"></a>00170   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#879e55c5bac3cc9a471140addd500900">EndWidgetInteraction</a>(<span class="keywordtype">double</span> e[2]);
<a name="l00171"></a>00171   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>();
<a name="l00173"></a>00173   
<a name="l00175"></a>00175 
<a name="l00176"></a>00176   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a5428644337fcf61013390e6d619ff9f">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *w);
<a name="l00177"></a>00177   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#01e90cbe6f75838c27c1d1c0c5e37521">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="keyword">protected</span>:
<a name="l00181"></a>00181   <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>();
<a name="l00182"></a>00182   ~<a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>();
<a name="l00183"></a>00183 
<a name="l00184"></a>00184   <span class="comment">// The balloon text and image</span>
<a name="l00185"></a><a class="code" href="a00156.html#42814ba0e0da2b62484cb667af90b649">00185</a>   <span class="keywordtype">char</span>         *BalloonText;
<a name="l00186"></a><a class="code" href="a00156.html#a20676514dc184dc4bd56a955bc384e1">00186</a>   <a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a> *BalloonImage;
<a name="l00187"></a>00187 
<a name="l00188"></a>00188   <span class="comment">// The layout of the balloon</span>
<a name="l00189"></a><a class="code" href="a00156.html#4e69cfcc7970e380ee11cf85239ffb8e">00189</a>   <span class="keywordtype">int</span> BalloonLayout;
<a name="l00190"></a>00190 
<a name="l00191"></a>00191   <span class="comment">// Controlling placement</span>
<a name="l00192"></a><a class="code" href="a00156.html#522655741aa6b1020f9bcb7bf19c6840">00192</a>   <span class="keywordtype">int</span> Padding;
<a name="l00193"></a><a class="code" href="a00156.html#c9ce04ba7bc623ef20135be593271c55">00193</a>   <span class="keywordtype">int</span> Offset[2];
<a name="l00194"></a><a class="code" href="a00156.html#633d7c6b5960fd6329856f14e8e79b1b">00194</a>   <span class="keywordtype">int</span> ImageSize[2];
<a name="l00195"></a>00195 
<a name="l00196"></a>00196   <span class="comment">// Represent the text</span>
<a name="l00197"></a><a class="code" href="a00156.html#de4ec6d1e6909866efbfdbe5c70830c5">00197</a>   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>       *TextMapper;
<a name="l00198"></a><a class="code" href="a00156.html#63e850735e87d63af718a08c64678749">00198</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *TextActor;
<a name="l00199"></a><a class="code" href="a00156.html#72f62aa0f6eb7830072c687e251c5dbe">00199</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>     *TextProperty;
<a name="l00200"></a>00200   
<a name="l00201"></a>00201   <span class="comment">// Represent the image</span>
<a name="l00202"></a><a class="code" href="a00156.html#71c2c341199bad53517a6577f78a8716">00202</a>   <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>          *Texture;
<a name="l00203"></a><a class="code" href="a00156.html#75f28ce6530b4e172812e2ea38925e4a">00203</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>         *TexturePolyData;
<a name="l00204"></a><a class="code" href="a00156.html#eadb4277069528da066c6af3052adf47">00204</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>           *TexturePoints;
<a name="l00205"></a><a class="code" href="a00156.html#2a3612771cdd6930bec20ca893e6788d">00205</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *TextureMapper;
<a name="l00206"></a><a class="code" href="a00156.html#561bf8fd97545e7a23fbfaf549288a34">00206</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *TextureActor;
<a name="l00207"></a><a class="code" href="a00156.html#e085d6c2ac19d8d739aa9f6502bcf44f">00207</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>       *ImageProperty;
<a name="l00208"></a>00208 
<a name="l00209"></a>00209   <span class="comment">// The frame</span>
<a name="l00210"></a><a class="code" href="a00156.html#4093a7cfa80f897ff93f1cc2d450800a">00210</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>           *FramePoints;
<a name="l00211"></a><a class="code" href="a00156.html#b025777dfb0e66667d0b214b6d87c25a">00211</a>   <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>        *FramePolygon;
<a name="l00212"></a><a class="code" href="a00156.html#c1009e2391a2314fa939748a94bbaa93">00212</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>         *FramePolyData;
<a name="l00213"></a><a class="code" href="a00156.html#799fd1098e3a0cec3947216a7a98ab4b">00213</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *FrameMapper;
<a name="l00214"></a><a class="code" href="a00156.html#33d273ac1c8448b83e80f18cafea86ba">00214</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *FrameActor;
<a name="l00215"></a><a class="code" href="a00156.html#e1277276ea02d050d2fdb0cf4419d02d">00215</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>       *FrameProperty;
<a name="l00216"></a>00216   
<a name="l00217"></a>00217   <span class="comment">// Internal variable controlling rendering process</span>
<a name="l00218"></a><a class="code" href="a00156.html#c5fa169b57576d46cd781d0a53db82f6">00218</a>   <span class="keywordtype">int</span> TextVisible;
<a name="l00219"></a><a class="code" href="a00156.html#a46c4d2e960bc5e4b514f27e17787731">00219</a>   <span class="keywordtype">int</span> ImageVisible;
<a name="l00220"></a>00220   
<a name="l00221"></a>00221   <span class="comment">// Helper methods</span>
<a name="l00222"></a>00222   <span class="keywordtype">void</span> AdjustImageSize(<span class="keywordtype">double</span> imageSize[2]);
<a name="l00223"></a>00223   <span class="keywordtype">void</span> ScaleImage(<span class="keywordtype">double</span> imageSize[2],<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210733bd1e54b6acd59b06105c91204401e">scale</a>);
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 <span class="keyword">private</span>:
<a name="l00226"></a>00226   <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00227"></a>00227   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00156.html" title="represent the vtkBalloonWidget">vtkBalloonRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00228"></a>00228 };
<a name="l00229"></a>00229 
<a name="l00230"></a>00230 <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>