Sophie

Sophie

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

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/Hybrid/vtkLegendBoxActor.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/Hybrid/vtkLegendBoxActor.h</h1><a href="a02834.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: vtkLegendBoxActor.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="l00037"></a>00037 <span class="preprocessor">#ifndef __vtkLegendBoxActor_h</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLegendBoxActor_h</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="a02186.html">vtkActor2D.h</a>"</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>;
<a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00044"></a>00044 <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="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>;
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01731.html" title="transform points and associated normals and vectors for polygonal dataset">vtkTransformPolyDataFilter</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="a00951.html">00053</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a> : <span class="keyword">public</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keyword">public</span>:
<a name="l00056"></a><a class="code" href="a00951.html#0e6b13656d85e77f7941f29f3ef5b3b4">00056</a>   vtkTypeRevisionMacro(<a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>,<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>);
<a name="l00057"></a>00057   <span class="keywordtype">void</span> <a class="code" href="a00093.html#f0bb6b3aeeaa23e0f408990a40a1607a">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00058"></a>00058 
<a name="l00061"></a>00061   <span class="keyword">static</span> <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a> *<a class="code" href="a00093.html#470c524c4d719ddf82b0a32bc55beb6e">New</a>();
<a name="l00062"></a>00062 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065   <span class="keywordtype">void</span> SetNumberOfEntries(<span class="keywordtype">int</span> num);
<a name="l00066"></a><a class="code" href="a00951.html#44b97a7a5f72addb1062670ff803b0c4">00066</a>   <span class="keywordtype">int</span> GetNumberOfEntries()
<a name="l00067"></a>00067     {<span class="keywordflow">return</span> this-&gt;NumberOfEntries;}
<a name="l00069"></a>00069 
<a name="l00071"></a>00071 
<a name="l00079"></a>00079   <span class="keywordtype">void</span> SetEntry(<span class="keywordtype">int</span> i, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *symbol, <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210ab06a058f9ffb559855ff8495aa7e53e">color</a>[3]);
<a name="l00080"></a>00080   <span class="keywordtype">void</span> SetEntrySymbol(<span class="keywordtype">int</span> i, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *symbol);
<a name="l00081"></a>00081   <span class="keywordtype">void</span> SetEntryString(<span class="keywordtype">int</span> i, <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>);
<a name="l00082"></a>00082   <span class="keywordtype">void</span> SetEntryColor(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210ab06a058f9ffb559855ff8495aa7e53e">color</a>[3]);
<a name="l00083"></a>00083   <span class="keywordtype">void</span> SetEntryColor(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> r, <span class="keywordtype">double</span> g, <span class="keywordtype">double</span> b);
<a name="l00084"></a>00084   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetEntrySymbol(<span class="keywordtype">int</span> i);
<a name="l00085"></a>00085   <span class="keyword">const</span> <span class="keywordtype">char</span>* GetEntryString(<span class="keywordtype">int</span> i);
<a name="l00086"></a>00086   <span class="keywordtype">double</span> *GetEntryColor(<span class="keywordtype">int</span> i);
<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> SetEntryTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p);
<a name="l00092"></a>00092   vtkGetObjectMacro(EntryTextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00094"></a>00094 
<a name="l00096"></a>00096 
<a name="l00098"></a>00098   vtkSetMacro(Border, <span class="keywordtype">int</span>);
<a name="l00099"></a>00099   vtkGetMacro(Border, <span class="keywordtype">int</span>);
<a name="l00100"></a>00100   vtkBooleanMacro(Border, <span class="keywordtype">int</span>);
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00110"></a>00110   vtkSetMacro(LockBorder, <span class="keywordtype">int</span>);
<a name="l00111"></a>00111   vtkGetMacro(LockBorder, <span class="keywordtype">int</span>);
<a name="l00112"></a>00112   vtkBooleanMacro(LockBorder, <span class="keywordtype">int</span>);
<a name="l00114"></a>00114 
<a name="l00116"></a>00116 
<a name="l00118"></a>00118   vtkSetMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f7e412548280b02c9eab8af16389177f3">Box</a>, <span class="keywordtype">int</span>);
<a name="l00119"></a>00119   vtkGetMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f7e412548280b02c9eab8af16389177f3">Box</a>, <span class="keywordtype">int</span>);
<a name="l00120"></a>00120   vtkBooleanMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f7e412548280b02c9eab8af16389177f3">Box</a>, <span class="keywordtype">int</span>);
<a name="l00122"></a>00122 
<a name="l00124"></a><a class="code" href="a00951.html#2a98349816e5e7d855e97651326118d1">00124</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>* GetBoxProperty() { <span class="keywordflow">return</span> this-&gt;BoxActor-&gt;GetProperty(); };
<a name="l00125"></a>00125 
<a name="l00127"></a>00127 
<a name="l00129"></a>00129   vtkSetClampMacro(Padding, <span class="keywordtype">int</span>, 0, 50);
<a name="l00130"></a>00130   vtkGetMacro(Padding, <span class="keywordtype">int</span>);
<a name="l00132"></a>00132 
<a name="l00134"></a>00134 
<a name="l00137"></a>00137   vtkSetMacro(ScalarVisibility,<span class="keywordtype">int</span>);
<a name="l00138"></a>00138   vtkGetMacro(ScalarVisibility,<span class="keywordtype">int</span>);
<a name="l00139"></a>00139   vtkBooleanMacro(ScalarVisibility,<span class="keywordtype">int</span>);
<a name="l00141"></a>00141 
<a name="l00144"></a>00144   <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="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="comment">//BTX</span>
<a name="l00151"></a>00151 <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="l00152"></a>00152 
<a name="l00154"></a>00154 
<a name="l00157"></a>00157   <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="l00158"></a><a class="code" href="a00951.html#361962649fec9a3ce8586ee8bf109af1">00158</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="l00159"></a>00159   <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="l00161"></a>00161   
<a name="l00163"></a>00163   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00093.html#a8f4fb9da8d8a683cf1c4f8541a21ff1">HasTranslucentPolygonalGeometry</a>();
<a name="l00164"></a>00164 <span class="comment">//ETX</span>
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 <span class="keyword">protected</span>:
<a name="l00167"></a>00167   <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>();
<a name="l00168"></a>00168   ~<a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>();
<a name="l00169"></a>00169 
<a name="l00170"></a>00170   <span class="keywordtype">void</span> InitializeEntries();
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 
<a name="l00173"></a><a class="code" href="a00951.html#0e2fac4e78cba86f8b3f632db9253f18">00173</a>   <span class="keywordtype">int</span>   Border;
<a name="l00174"></a><a class="code" href="a00951.html#394102d1714ecafcb7241958283ceb66">00174</a>   <span class="keywordtype">int</span>   <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f7e412548280b02c9eab8af16389177f3">Box</a>;
<a name="l00175"></a><a class="code" href="a00951.html#a0ffcb26b64e09f8493410e8cabe4e76">00175</a>   <span class="keywordtype">int</span>   Padding;
<a name="l00176"></a><a class="code" href="a00951.html#54b2ab78d2917f944a1a0ddb03fca31b">00176</a>   <span class="keywordtype">int</span>   LockBorder;
<a name="l00177"></a><a class="code" href="a00951.html#c54c4e2ebc26bb9df4773dd693939cb9">00177</a>   <span class="keywordtype">int</span>   ScalarVisibility;
<a name="l00178"></a><a class="code" href="a00951.html#d69b999ec2f7b43f4c448c2238700c6f">00178</a>   <span class="keywordtype">double</span> BoxOpacity;
<a name="l00179"></a>00179 
<a name="l00180"></a>00180   <span class="comment">// Internal actors, mappers, data to represent the legend</span>
<a name="l00181"></a><a class="code" href="a00951.html#fbbeb22ae7830fb4e6a290e4f68c0427">00181</a>   <span class="keywordtype">int</span>                        NumberOfEntries;
<a name="l00182"></a><a class="code" href="a00951.html#fdaa13ac1a4d0cb56b69f26a0edd72e6">00182</a>   <span class="keywordtype">int</span>                        Size; <span class="comment">//allocation size</span>
<a name="l00183"></a><a class="code" href="a00951.html#8f1c450839e674fecbc2e8ea30f98485">00183</a>   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>              *Colors;
<a name="l00184"></a><a class="code" href="a00951.html#b2c3d07e6a967790d6ebd9f988ff63cd">00184</a>   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>              **TextMapper;
<a name="l00185"></a><a class="code" href="a00951.html#e975f64430787a65be23977a39ea82f3">00185</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>                 **TextActor;
<a name="l00186"></a><a class="code" href="a00951.html#cd84ca7c9e91f84d41af282982570e27">00186</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>                **Symbol;
<a name="l00187"></a><a class="code" href="a00951.html#c14cffc6a135b159d639bfc1cff6155f">00187</a>   <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>               **<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>;
<a name="l00188"></a><a class="code" href="a00951.html#49cf5f7ad48bb7acda1b0a7dc25b4402">00188</a>   <a class="code" href="a01731.html" title="transform points and associated normals and vectors for polygonal dataset">vtkTransformPolyDataFilter</a> **SymbolTransform;
<a name="l00189"></a><a class="code" href="a00951.html#c88e2843b759c28d713fc72d33aed9bc">00189</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>        **SymbolMapper;
<a name="l00190"></a><a class="code" href="a00951.html#e66c85440b7db60087e70102e2fc13b1">00190</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>                 **SymbolActor;
<a name="l00191"></a><a class="code" href="a00951.html#b93d68d4281176d4c5a475a7c144a7c1">00191</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>                *BorderPolyData;
<a name="l00192"></a><a class="code" href="a00951.html#6bf76b83519df5a128e8401768acb28b">00192</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>        *BorderMapper;
<a name="l00193"></a><a class="code" href="a00951.html#7b31e24b50a20bbbea5f4b879ddf8e69">00193</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>                 *BorderActor;
<a name="l00194"></a><a class="code" href="a00951.html#1a67786d87763e758f346d904d00daa3">00194</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>                *BoxPolyData;
<a name="l00195"></a><a class="code" href="a00951.html#ca91ead7a20b4760989497fab85e9ee7">00195</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>        *BoxMapper;
<a name="l00196"></a><a class="code" href="a00951.html#110b18d11bc36ea84421bb58838a2ea1">00196</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>                 *BoxActor;
<a name="l00197"></a><a class="code" href="a00951.html#3675bfbb097d08aed03c01cb144f4c1a">00197</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>            *EntryTextProperty;
<a name="l00198"></a>00198 
<a name="l00199"></a>00199   <span class="comment">// Used to control whether the stuff is recomputed</span>
<a name="l00200"></a><a class="code" href="a00951.html#6c654a0bf46dc5919e124b90fc879a3a">00200</a>   <span class="keywordtype">int</span>           LegendEntriesVisible;
<a name="l00201"></a><a class="code" href="a00951.html#cc40104a5c188eefa3a22c9e40355d72">00201</a>   <span class="keywordtype">int</span>           CachedSize[2];
<a name="l00202"></a><a class="code" href="a00951.html#22fb64d871e3fc0f87d0399a28f397a2">00202</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a>  BuildTime;
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 <span class="keyword">private</span>:
<a name="l00205"></a>00205   <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>(<span class="keyword">const</span> <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00206"></a>00206   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00207"></a>00207 };
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 
<a name="l00210"></a>00210 <span class="preprocessor">#endif</span>
<a name="l00211"></a>00211 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:32 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>