Sophie

Sophie

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

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/vtkLegendScaleActor.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/vtkLegendScaleActor.h</h1><a href="a02835.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: vtkLegendScaleActor.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="l00039"></a>00039 <span class="preprocessor">#ifndef __vtkLegendScaleActor_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLegendScaleActor_h</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="a02113.html">vtkProp.h</a>"</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="a02219.html">vtkCoordinate.h</a>"</span> <span class="comment">// For vtkViewportCoordinateMacro</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>;
<a name="l00047"></a>00047 <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="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>;
<a name="l00053"></a>00053 
<a name="l00054"></a><a class="code" href="a00952.html">00054</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a> : <span class="keyword">public</span> <a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 <span class="keyword">public</span>:
<a name="l00058"></a>00058   <span class="keyword">static</span> <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00059"></a>00059 
<a name="l00061"></a>00061 
<a name="l00062"></a><a class="code" href="a00952.html#6a2079d5fb8a024ef3b1b7afd92cac2c">00062</a>   vtkTypeRevisionMacro(<a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>,<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a>);
<a name="l00063"></a>00063   <span class="keywordtype">void</span> <a class="code" href="a01317.html#68159056e27c3e2c4b372f6bd253e3f9">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="comment">//BTX</span>
<a name="l00067"></a><a class="code" href="a00952.html#9b7e4f3763eda606bf7832a66e2e4a82">00067</a>   <span class="keyword">enum</span> <a class="code" href="a00952.html#9b7e4f3763eda606bf7832a66e2e4a82">AttributeLocation</a>
<a name="l00068"></a>00068   {
<a name="l00069"></a><a class="code" href="a00952.html#9b7e4f3763eda606bf7832a66e2e4a82e388ce6dca676ca4ce97a126d50ff37d">00069</a>     DISTANCE=0,
<a name="l00070"></a><a class="code" href="a00952.html#9b7e4f3763eda606bf7832a66e2e4a82e50a62050e256385c1be5ba715cb8a81">00070</a>     XY_COORDINATES=1
<a name="l00071"></a>00071   };
<a name="l00072"></a>00072 <span class="comment">//ETX</span>
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00079"></a>00079   vtkSetClampMacro(LabelMode,<span class="keywordtype">int</span>,DISTANCE,XY_COORDINATES);
<a name="l00080"></a>00080   vtkGetMacro(LabelMode,<span class="keywordtype">int</span>);
<a name="l00081"></a><a class="code" href="a00952.html#4bc66271d769c81ffed0a8e880ee4d05">00081</a>   <span class="keywordtype">void</span> SetLabelModeToDistance() {this-&gt;SetLabelMode(DISTANCE);}
<a name="l00082"></a><a class="code" href="a00952.html#caa3d0ddb2bc3b5160141d9d3d4d809c">00082</a>   <span class="keywordtype">void</span> SetLabelModeToXYCoordinates() {this-&gt;SetLabelMode(XY_COORDINATES);}
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00089"></a>00089   vtkSetMacro(RightAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00090"></a>00090   vtkGetMacro(RightAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00091"></a>00091   vtkBooleanMacro(RightAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00092"></a>00092   vtkSetMacro(TopAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00093"></a>00093   vtkGetMacro(TopAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00094"></a>00094   vtkBooleanMacro(TopAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00095"></a>00095   vtkSetMacro(LeftAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00096"></a>00096   vtkGetMacro(LeftAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00097"></a>00097   vtkBooleanMacro(LeftAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00098"></a>00098   vtkSetMacro(BottomAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00099"></a>00099   vtkGetMacro(BottomAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00100"></a>00100   vtkBooleanMacro(BottomAxisVisibility,<span class="keywordtype">int</span>);
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00105"></a>00105   vtkSetMacro(LegendVisibility,<span class="keywordtype">int</span>);
<a name="l00106"></a>00106   vtkGetMacro(LegendVisibility,<span class="keywordtype">int</span>);
<a name="l00107"></a>00107   vtkBooleanMacro(LegendVisibility,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00112"></a>00112   <span class="keywordtype">void</span> AllAxesOn();
<a name="l00113"></a>00113   <span class="keywordtype">void</span> AllAxesOff();
<a name="l00115"></a>00115 
<a name="l00117"></a>00117 
<a name="l00118"></a>00118   <span class="keywordtype">void</span> AllAnnotationsOn();
<a name="l00119"></a>00119   <span class="keywordtype">void</span> AllAnnotationsOff();
<a name="l00121"></a>00121 
<a name="l00123"></a>00123 
<a name="l00126"></a>00126   vtkSetClampMacro(RightBorderOffset,<span class="keywordtype">int</span>,5,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00127"></a>00127   vtkGetMacro(RightBorderOffset,<span class="keywordtype">int</span>);
<a name="l00128"></a>00128   vtkSetClampMacro(TopBorderOffset,<span class="keywordtype">int</span>,5,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00129"></a>00129   vtkGetMacro(TopBorderOffset,<span class="keywordtype">int</span>);
<a name="l00130"></a>00130   vtkSetClampMacro(LeftBorderOffset,<span class="keywordtype">int</span>,5,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00131"></a>00131   vtkGetMacro(LeftBorderOffset,<span class="keywordtype">int</span>);
<a name="l00132"></a>00132   vtkSetClampMacro(BottomBorderOffset,<span class="keywordtype">int</span>,5,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00133"></a>00133   vtkGetMacro(BottomBorderOffset,<span class="keywordtype">int</span>);
<a name="l00135"></a>00135 
<a name="l00137"></a>00137 
<a name="l00138"></a>00138   vtkGetObjectMacro(LegendTitleProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00139"></a>00139   vtkGetObjectMacro(LegendLabelProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00141"></a>00141       
<a name="l00143"></a>00143 
<a name="l00146"></a>00146   vtkGetObjectMacro(RightAxis,<a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>);
<a name="l00147"></a>00147   vtkGetObjectMacro(TopAxis,<a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>);
<a name="l00148"></a>00148   vtkGetObjectMacro(LeftAxis,<a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>);
<a name="l00149"></a>00149   vtkGetObjectMacro(BottomAxis,<a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>);
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">void</span> BuildRepresentation(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00155"></a>00155   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01317.html#f8df3a3e67b6d97748bb1a6505265218">GetActors2D</a>(<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a>*);
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01317.html#f2034bece75524dfa42553396d208a22">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a>*);
<a name="l00157"></a>00157   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01317.html#d7e0fa1336c19247f11a73b4ebaddf13">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*);
<a name="l00158"></a>00158   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01317.html#4d7c8be45744400fba096728ce81f33a">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*);
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="keyword">protected</span>:
<a name="l00162"></a>00162   <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>();
<a name="l00163"></a>00163   ~<a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>();
<a name="l00164"></a>00164 
<a name="l00165"></a><a class="code" href="a00952.html#180ad5b9e87313cab13f486a99e5e795">00165</a>   <span class="keywordtype">int</span>    LabelMode;
<a name="l00166"></a><a class="code" href="a00952.html#faa35349bda3174a4f2789353380c547">00166</a>   <span class="keywordtype">int</span>    RightBorderOffset;
<a name="l00167"></a><a class="code" href="a00952.html#23d3bef4d19f966eea24596261685e2e">00167</a>   <span class="keywordtype">int</span>    TopBorderOffset;
<a name="l00168"></a><a class="code" href="a00952.html#b134ffe131be3da1c4de8f315fa5be11">00168</a>   <span class="keywordtype">int</span>    LeftBorderOffset;
<a name="l00169"></a><a class="code" href="a00952.html#74c3b23ccc340a5eebca523783cd2045">00169</a>   <span class="keywordtype">int</span>    BottomBorderOffset;
<a name="l00170"></a>00170   
<a name="l00171"></a>00171   <span class="comment">// The four axes around the borders of the renderer</span>
<a name="l00172"></a><a class="code" href="a00952.html#4b6adc227866f34f4cdc6c7dd81248a6">00172</a>   <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *RightAxis;
<a name="l00173"></a><a class="code" href="a00952.html#95a238cb89784f6004437f4b521d16a0">00173</a>   <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *TopAxis;
<a name="l00174"></a><a class="code" href="a00952.html#3da5828984e1f72b89501dc35950defa">00174</a>   <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *LeftAxis;
<a name="l00175"></a><a class="code" href="a00952.html#6c99147d6a37ef170f6e3d981ebc12bf">00175</a>   <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *BottomAxis;
<a name="l00176"></a>00176   
<a name="l00177"></a>00177   <span class="comment">// Control the display of the axes</span>
<a name="l00178"></a><a class="code" href="a00952.html#a87ad35ced1aa0597bce96165ba970de">00178</a>   <span class="keywordtype">int</span> RightAxisVisibility;
<a name="l00179"></a><a class="code" href="a00952.html#0528707f0dc80df482b10065e0632e24">00179</a>   <span class="keywordtype">int</span> TopAxisVisibility;
<a name="l00180"></a><a class="code" href="a00952.html#3f726809d78a6628b505efd5c63214c7">00180</a>   <span class="keywordtype">int</span> LeftAxisVisibility;
<a name="l00181"></a><a class="code" href="a00952.html#479e6cd67fd5b2f41f50135a36e161f0">00181</a>   <span class="keywordtype">int</span> BottomAxisVisibility;
<a name="l00182"></a>00182   
<a name="l00183"></a>00183   <span class="comment">// Support for the legend.</span>
<a name="l00184"></a><a class="code" href="a00952.html#242351b06808600862dfefb3518da1dc">00184</a>   <span class="keywordtype">int</span>                  LegendVisibility;
<a name="l00185"></a><a class="code" href="a00952.html#3b91a48f2d446ffa35bcdcae5b707180">00185</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>         *Legend;
<a name="l00186"></a><a class="code" href="a00952.html#22793de8c99f90c48af5d745ca34661f">00186</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>           *LegendPoints;
<a name="l00187"></a><a class="code" href="a00952.html#7536dd975ecfa472d38962dba93afc51">00187</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *LegendMapper;
<a name="l00188"></a><a class="code" href="a00952.html#43ca617539b7b654ddeb41cd17bc5a86">00188</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *LegendActor;
<a name="l00189"></a><a class="code" href="a00952.html#41ec776a973333ef6b6920ef848c2ac8">00189</a>   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>       *LabelMappers[6];
<a name="l00190"></a><a class="code" href="a00952.html#8b9f30f16d9b8788346e931f3da9f991">00190</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>          *LabelActors[6];
<a name="l00191"></a><a class="code" href="a00952.html#50f0656f238af370be36d5777b17d173">00191</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>     *LegendTitleProperty;
<a name="l00192"></a><a class="code" href="a00952.html#2156e11a4a253a09c2cdc9fc73f8b383">00192</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>     *LegendLabelProperty;
<a name="l00193"></a><a class="code" href="a00952.html#8fe63106cd6bf9a0ef1575b1ffc854b6">00193</a>   <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>       *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f9058864979bae3fb15994db271d5bb41">Coordinate</a>;
<a name="l00194"></a>00194   
<a name="l00195"></a><a class="code" href="a00952.html#2ccd0e32faf8e342d56cd2e07ab4ac65">00195</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a>         BuildTime;
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <span class="keyword">private</span>:
<a name="l00198"></a>00198   <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>(<span class="keyword">const</span> <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00199"></a>00199   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00952.html" title="annotate the render window with scale and distance information">vtkLegendScaleActor</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00200"></a>00200 };
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="preprocessor">#endif</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>