<!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/Hybrid/vtkCaptionActor2D.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/Hybrid/vtkCaptionActor2D.h</h1><a href="a02813.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: vtkCaptionActor2D.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="l00057"></a>00057 <span class="preprocessor">#ifndef __vtkCaptionActor2D_h</span> <a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCaptionActor2D_h</span> <a name="l00059"></a>00059 <span class="preprocessor"></span> <a name="l00060"></a>00060 <span class="preprocessor">#include "<a class="code" href="a02186.html">vtkActor2D.h</a>"</span> <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>; <a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a00115.html" title="appends one or more polygonal datasets together">vtkAppendPolyData</a>; <a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a00650.html" title="copy oriented and scaled glyph geometry to every input point (2D specialization)">vtkGlyph2D</a>; <a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00651.html" title="copy oriented and scaled glyph geometry to every input point">vtkGlyph3D</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="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a01689.html" title="An actor that displays text. Scaled or unscaled.">vtkTextActor</a>; <a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>; <a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>; <a name="l00072"></a>00072 <a name="l00073"></a><a class="code" href="a00233.html">00073</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a> : <span class="keyword">public</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> <a name="l00074"></a>00074 { <a name="l00075"></a>00075 <span class="keyword">public</span>: <a name="l00076"></a><a class="code" href="a00233.html#cc0e99b9223a9897727ff66c84bfb109">00076</a> vtkTypeRevisionMacro(<a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>,<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>); <a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="a00093.html#f0bb6b3aeeaa23e0f408990a40a1607a">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="keyword">static</span> <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a> *<a class="code" href="a00093.html#470c524c4d719ddf82b0a32bc55beb6e">New</a>(); <a name="l00080"></a>00080 <a name="l00082"></a>00082 <a name="l00084"></a>00084 vtkSetStringMacro(Caption); <a name="l00085"></a>00085 vtkGetStringMacro(Caption); <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a name="l00092"></a>00092 vtkWorldCoordinateMacro(AttachmentPoint); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00097"></a>00097 vtkSetMacro(Border,<span class="keywordtype">int</span>); <a name="l00098"></a>00098 vtkGetMacro(Border,<span class="keywordtype">int</span>); <a name="l00099"></a>00099 vtkBooleanMacro(Border,<span class="keywordtype">int</span>); <a name="l00101"></a>00101 <a name="l00103"></a>00103 <a name="l00105"></a>00105 vtkSetMacro(Leader,<span class="keywordtype">int</span>); <a name="l00106"></a>00106 vtkGetMacro(Leader,<span class="keywordtype">int</span>); <a name="l00107"></a>00107 vtkBooleanMacro(Leader,<span class="keywordtype">int</span>); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a name="l00113"></a>00113 vtkSetMacro(ThreeDimensionalLeader,<span class="keywordtype">int</span>); <a name="l00114"></a>00114 vtkGetMacro(ThreeDimensionalLeader,<span class="keywordtype">int</span>); <a name="l00115"></a>00115 vtkBooleanMacro(ThreeDimensionalLeader,<span class="keywordtype">int</span>); <a name="l00117"></a>00117 <a name="l00119"></a>00119 <a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLeaderGlyph(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>*); <a name="l00124"></a>00124 vtkGetObjectMacro(LeaderGlyph,<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>); <a name="l00126"></a>00126 <a name="l00128"></a>00128 <a name="l00133"></a>00133 vtkSetClampMacro(LeaderGlyphSize,<span class="keywordtype">double</span>,0.0,0.1); <a name="l00134"></a>00134 vtkGetMacro(LeaderGlyphSize,<span class="keywordtype">double</span>); <a name="l00136"></a>00136 <a name="l00138"></a>00138 <a name="l00141"></a>00141 vtkSetClampMacro(MaximumLeaderGlyphSize,<span class="keywordtype">int</span>,1,1000); <a name="l00142"></a>00142 vtkGetMacro(MaximumLeaderGlyphSize,<span class="keywordtype">int</span>); <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00148"></a>00148 vtkSetClampMacro(Padding, <span class="keywordtype">int</span>, 0, 50); <a name="l00149"></a>00149 vtkGetMacro(Padding, <span class="keywordtype">int</span>); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00155"></a>00155 vtkGetObjectMacro(TextActor,<a class="code" href="a01689.html" title="An actor that displays text. Scaled or unscaled.">vtkTextActor</a>); <a name="l00157"></a>00157 <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetCaptionTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p); <a name="l00161"></a>00161 vtkGetObjectMacro(CaptionTextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>); <a name="l00163"></a>00163 <a name="l00166"></a>00166 <span class="keywordtype">void</span> <a class="code" href="a00093.html#0b8bceafaea20d00f8a3083e3518b457">ShallowCopy</a>(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop); <a name="l00167"></a>00167 <a name="l00169"></a>00169 <a name="l00171"></a>00171 vtkSetMacro(AttachEdgeOnly,<span class="keywordtype">int</span>); <a name="l00172"></a>00172 vtkGetMacro(AttachEdgeOnly,<span class="keywordtype">int</span>); <a name="l00173"></a>00173 vtkBooleanMacro(AttachEdgeOnly,<span class="keywordtype">int</span>); <a name="l00175"></a>00175 <a name="l00176"></a>00176 <span class="comment">//BTX</span> <a name="l00181"></a>00181 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00093.html#dd99f157501a85867005664f4d74008d">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *); <a name="l00182"></a>00182 <a name="l00184"></a>00184 <a name="l00187"></a>00187 <span class="keywordtype">int</span> <a class="code" href="a00093.html#e26bc15689de9781fdf6ecc6ab80c2fe">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport); <a name="l00188"></a><a class="code" href="a00233.html#a70054f1cd51b9cd58ecc337a753d67d">00188</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00093.html#f7a2adb46eba24bb78c825750d46a482">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* ) {<span class="keywordflow">return</span> 0;} <a name="l00189"></a>00189 <span class="keywordtype">int</span> <a class="code" href="a00093.html#95232573f645b775c88dd81a6067addc">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport); <a name="l00191"></a>00191 <a name="l00193"></a>00193 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00093.html#a8f4fb9da8d8a683cf1c4f8541a21ff1">HasTranslucentPolygonalGeometry</a>(); <a name="l00194"></a>00194 <span class="comment">//ETX</span> <a name="l00195"></a>00195 <a name="l00196"></a>00196 <span class="keyword">protected</span>: <a name="l00197"></a>00197 <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>(); <a name="l00198"></a>00198 ~<a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>(); <a name="l00199"></a>00199 <a name="l00200"></a><a class="code" href="a00233.html#d81dfb1567b0c801b971e419d478f3cd">00200</a> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a> *AttachmentPointCoordinate; <a name="l00201"></a>00201 <a name="l00202"></a><a class="code" href="a00233.html#7a38a47594f39ad226ab57c898c29bca">00202</a> <span class="keywordtype">char</span> *Caption; <a name="l00203"></a><a class="code" href="a00233.html#1a29eb194a7f662ca04a5abdf1574aa5">00203</a> <span class="keywordtype">int</span> Border; <a name="l00204"></a><a class="code" href="a00233.html#64c0d2c4814739fe5ec42a76d667a8bf">00204</a> <span class="keywordtype">int</span> Leader; <a name="l00205"></a><a class="code" href="a00233.html#3d671f6492f4999b1e2502b344527e2f">00205</a> <span class="keywordtype">int</span> ThreeDimensionalLeader; <a name="l00206"></a><a class="code" href="a00233.html#dbfd6ff3a4b649c5e64a01e096956c66">00206</a> <span class="keywordtype">double</span> LeaderGlyphSize; <a name="l00207"></a><a class="code" href="a00233.html#da3dda00bda06c73a90dcdd4b16a69d9">00207</a> <span class="keywordtype">int</span> MaximumLeaderGlyphSize; <a name="l00208"></a>00208 <a name="l00209"></a><a class="code" href="a00233.html#a0aa42f138b5b12fca6ef7ca2b9854d9">00209</a> <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *LeaderGlyph; <span class="comment">//what to put on the end of the leader</span> <a name="l00210"></a>00210 <a name="l00211"></a><a class="code" href="a00233.html#60c269bd45b6b1f0c21d4bdd1c921b94">00211</a> <span class="keywordtype">int</span> Padding; <a name="l00212"></a><a class="code" href="a00233.html#fedffd1fbdb31f061411b1b8d2b280e5">00212</a> <span class="keywordtype">int</span> AttachEdgeOnly; <a name="l00213"></a>00213 <a name="l00214"></a>00214 <a name="l00215"></a>00215 <span class="keyword">private</span>: <a name="l00216"></a>00216 <a class="code" href="a01689.html" title="An actor that displays text. Scaled or unscaled.">vtkTextActor</a> *TextActor; <a name="l00217"></a>00217 <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *CaptionTextProperty; <a name="l00218"></a>00218 <a name="l00219"></a>00219 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *BorderPolyData; <a name="l00220"></a>00220 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *BorderMapper; <a name="l00221"></a>00221 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *BorderActor; <a name="l00222"></a>00222 <a name="l00223"></a>00223 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *HeadPolyData; <span class="comment">// single attachment point for glyphing</span> <a name="l00224"></a>00224 <a class="code" href="a00651.html" title="copy oriented and scaled glyph geometry to every input point">vtkGlyph3D</a> *HeadGlyph; <span class="comment">// for 3D leader</span> <a name="l00225"></a>00225 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *LeaderPolyData; <span class="comment">// line represents the leader</span> <a name="l00226"></a>00226 <a class="code" href="a00115.html" title="appends one or more polygonal datasets together">vtkAppendPolyData</a> *AppendLeader; <span class="comment">// append head and leader</span> <a name="l00227"></a>00227 <a name="l00228"></a>00228 <span class="comment">// for 2D leader</span> <a name="l00229"></a>00229 <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a> *MapperCoordinate2D; <a name="l00230"></a>00230 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *LeaderMapper2D; <a name="l00231"></a>00231 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *LeaderActor2D; <a name="l00232"></a>00232 <a name="l00233"></a>00233 <span class="comment">// for 3D leader</span> <a name="l00234"></a>00234 <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *LeaderMapper3D; <a name="l00235"></a>00235 <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *LeaderActor3D; <a name="l00236"></a>00236 <a name="l00237"></a>00237 <span class="keyword">private</span>: <a name="l00238"></a>00238 <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>(<span class="keyword">const</span> <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>&); <span class="comment">// Not implemented.</span> <a name="l00239"></a>00239 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00233.html" title="draw text label associated with a point">vtkCaptionActor2D</a>&); <span class="comment">// Not implemented.</span> <a name="l00240"></a>00240 }; <a name="l00241"></a>00241 <a name="l00242"></a>00242 <a name="l00243"></a>00243 <span class="preprocessor">#endif</span> <a name="l00244"></a>00244 <span class="preprocessor"></span> <a name="l00245"></a>00245 <a name="l00246"></a>00246 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:32 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>