Sophie

Sophie

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

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/Rendering/vtkLabeledDataMapper.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/Rendering/vtkLabeledDataMapper.h</h1><a href="a03441.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: vtkLabeledDataMapper.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="l00048"></a>00048 <span class="preprocessor">#ifndef __vtkLabeledDataMapper_h</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#define __vtkLabeledDataMapper_h</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#include "<a class="code" href="a02304.html">vtkMapper2D.h</a>"</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>;
<a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>;
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>;
<a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>;
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>;
<a name="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="a03441.html#bf54698a378bd5914d2cd10bce1c161e">00059</a> <span class="preprocessor">#define VTK_LABEL_IDS        0</span>
<a name="l00060"></a><a class="code" href="a03441.html#a53c356cbfb190c2d7c3dd539a2e8f0c">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_SCALARS    1</span>
<a name="l00061"></a><a class="code" href="a03441.html#7784c3e0592c84049bc1d2da637f0e6d">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_VECTORS    2</span>
<a name="l00062"></a><a class="code" href="a03441.html#ceabd4e77539bc2e4a91b4f90a29fe0c">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_NORMALS    3</span>
<a name="l00063"></a><a class="code" href="a03441.html#3334ff1cd6937deb0291df1432fc653e">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_TCOORDS    4</span>
<a name="l00064"></a><a class="code" href="a03441.html#08f445e7c18a2a7358e949cac12a3770">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_TENSORS    5</span>
<a name="l00065"></a><a class="code" href="a03441.html#b260a71741cfd8825bb50a8e5dc5f497">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_LABEL_FIELD_DATA 6</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a><a class="code" href="a00938.html">00067</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a> : <span class="keyword">public</span> <a class="code" href="a00985.html" title="abstract class specifies interface for objects which render 2D actors">vtkMapper2D</a>
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069 <span class="keyword">public</span>:
<a name="l00072"></a>00072   <span class="keyword">static</span> <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="a00938.html#20c0d0c200bcf81decd00a93d2457ccc">00074</a>   vtkTypeRevisionMacro(<a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>,<a class="code" href="a00985.html" title="abstract class specifies interface for objects which render 2D actors">vtkMapper2D</a>);
<a name="l00075"></a>00075   <span class="keywordtype">void</span> <a class="code" href="a00985.html#e353965d0feec19b15b13681784992b3">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00076"></a>00076   
<a name="l00078"></a>00078 
<a name="l00086"></a>00086   vtkSetStringMacro(LabelFormat);
<a name="l00087"></a>00087   vtkGetStringMacro(LabelFormat);
<a name="l00089"></a>00089 
<a name="l00091"></a>00091 
<a name="l00096"></a>00096   vtkSetMacro(LabeledComponent,<span class="keywordtype">int</span>);
<a name="l00097"></a>00097   vtkGetMacro(LabeledComponent,<span class="keywordtype">int</span>);
<a name="l00099"></a>00099 
<a name="l00101"></a>00101 
<a name="l00104"></a>00104   <span class="keywordtype">void</span> SetFieldDataArray(<span class="keywordtype">int</span> arrayIndex);
<a name="l00105"></a>00105   vtkGetMacro(FieldDataArray,<span class="keywordtype">int</span>);
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 
<a name="l00112"></a>00112   <span class="keywordtype">void</span> SetFieldDataName(<span class="keyword">const</span> <span class="keywordtype">char</span> *arrayName);
<a name="l00113"></a>00113   vtkGetStringMacro(FieldDataName);
<a name="l00115"></a>00115 
<a name="l00118"></a>00118   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>*);
<a name="l00119"></a>00119 
<a name="l00122"></a>00122   <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *GetInput();
<a name="l00123"></a>00123 
<a name="l00125"></a>00125 
<a name="l00129"></a>00129   vtkSetMacro(LabelMode, <span class="keywordtype">int</span>);
<a name="l00130"></a>00130   vtkGetMacro(LabelMode, <span class="keywordtype">int</span>);
<a name="l00131"></a><a class="code" href="a00938.html#27381cbef1a777ed39f8319bccb354b0">00131</a>   <span class="keywordtype">void</span> SetLabelModeToLabelIds() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#bf54698a378bd5914d2cd10bce1c161e">VTK_LABEL_IDS</a>);};
<a name="l00132"></a><a class="code" href="a00938.html#87f1d32b198cc38a9ccacefb5accd39e">00132</a>   <span class="keywordtype">void</span> SetLabelModeToLabelScalars() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#a53c356cbfb190c2d7c3dd539a2e8f0c">VTK_LABEL_SCALARS</a>);};
<a name="l00133"></a><a class="code" href="a00938.html#3423b591b0c4617f3f3e45881d711d67">00133</a>   <span class="keywordtype">void</span> SetLabelModeToLabelVectors() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#7784c3e0592c84049bc1d2da637f0e6d">VTK_LABEL_VECTORS</a>);};
<a name="l00134"></a><a class="code" href="a00938.html#433995e79b8bdf1985f181852357d517">00134</a>   <span class="keywordtype">void</span> SetLabelModeToLabelNormals() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#ceabd4e77539bc2e4a91b4f90a29fe0c">VTK_LABEL_NORMALS</a>);};
<a name="l00135"></a><a class="code" href="a00938.html#6f9e77894ecc2c1172f45caa02a2bdc3">00135</a>   <span class="keywordtype">void</span> SetLabelModeToLabelTCoords() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#3334ff1cd6937deb0291df1432fc653e">VTK_LABEL_TCOORDS</a>);};
<a name="l00136"></a><a class="code" href="a00938.html#52afe0dd0208b063c1f3f6dc807f74cf">00136</a>   <span class="keywordtype">void</span> SetLabelModeToLabelTensors() {this-&gt;SetLabelMode(<a class="code" href="a03441.html#08f445e7c18a2a7358e949cac12a3770">VTK_LABEL_TENSORS</a>);};
<a name="l00137"></a><a class="code" href="a00938.html#9824e5ded4f468aafd8df03f328e5887">00137</a>   <span class="keywordtype">void</span> SetLabelModeToLabelFieldData()
<a name="l00138"></a>00138             {this-&gt;SetLabelMode(<a class="code" href="a03441.html#b260a71741cfd8825bb50a8e5dc5f497">VTK_LABEL_FIELD_DATA</a>);};
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLabelTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p);
<a name="l00144"></a>00144   vtkGetObjectMacro(LabelTextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00146"></a>00146 
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="keywordtype">void</span> <a class="code" href="a00985.html#055156c068f964a0c39f371c41032a9b">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport, <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>* actor);
<a name="l00150"></a>00150   <span class="keywordtype">void</span> <a class="code" href="a00985.html#759288e10d41e4a267ee45b9946373e6">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport, <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>* actor);
<a name="l00152"></a>00152 
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00083.html#00b42db0a078a8e2bf28b3ee7703c514">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *);
<a name="l00155"></a>00155   
<a name="l00157"></a>00157 
<a name="l00158"></a>00158   vtkGetObjectMacro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fff3c18ad1157bfb059d04b59dd18eae9">Transform</a>, <a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>);
<a name="l00159"></a>00159   <span class="keywordtype">void</span> SetTransform(<a class="code" href="a01723.html" title="describes linear transformations via a 4x4 matrix">vtkTransform</a>* t);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">protected</span>:
<a name="l00163"></a>00163   <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>();
<a name="l00164"></a>00164   ~<a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>();
<a name="l00165"></a>00165 
<a name="l00166"></a><a class="code" href="a00938.html#c5a94c760a1dc6d696f9573e1f189190">00166</a>   <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *Input;
<a name="l00167"></a><a class="code" href="a00938.html#383a23b2098c16a0944a62295f6f1fa9">00167</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *LabelTextProperty;
<a name="l00168"></a>00168 
<a name="l00169"></a><a class="code" href="a00938.html#93ccd6f0d3d03ec4892791695f825c01">00169</a>   <span class="keywordtype">char</span>  *LabelFormat;
<a name="l00170"></a><a class="code" href="a00938.html#cbc0c8d867bf7a7a1575e48c64a3114e">00170</a>   <span class="keywordtype">int</span>   LabelMode;
<a name="l00171"></a><a class="code" href="a00938.html#8edcee77816ac8c2458320dc86fcda4f">00171</a>   <span class="keywordtype">int</span>   LabeledComponent;
<a name="l00172"></a><a class="code" href="a00938.html#9c3d8253810551c3bb28cd58c5627503">00172</a>   <span class="keywordtype">int</span>   FieldDataArray;
<a name="l00173"></a><a class="code" href="a00938.html#ac6418397066bde561ddeb1b51cf08f0">00173</a>   <span class="keywordtype">char</span>  *FieldDataName;
<a name="l00174"></a>00174 
<a name="l00175"></a><a class="code" href="a00938.html#d4cb4f158036e056bdfe167d9c13f33e">00175</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> BuildTime;
<a name="l00176"></a>00176 
<a name="l00177"></a><a class="code" href="a00938.html#b9e2f999317cbf19b0beed5e4683cee0">00177</a>   <span class="keywordtype">int</span> NumberOfLabels;
<a name="l00178"></a><a class="code" href="a00938.html#3cf3c98905004ca6cfec623b8526eff2">00178</a>   <span class="keywordtype">int</span> NumberOfLabelsAllocated;
<a name="l00179"></a><a class="code" href="a00938.html#58adaebe6bac108b49f55fb6c1cacadd">00179</a>   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> **TextMappers;
<a name="l00180"></a><a class="code" href="a00938.html#afae261ddd824aa9a6929e6e8f6a2448">00180</a>   <span class="keywordtype">double</span>* LabelPositions;
<a name="l00181"></a><a class="code" href="a00938.html#41e02ff5ec72db97eea914d61a5a1124">00181</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="l00182"></a>00182 
<a name="l00183"></a>00183   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00101.html#aad069877868b9c2e8035a946a5d0538">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*);
<a name="l00184"></a>00184 
<a name="l00185"></a>00185   <span class="keywordtype">void</span> AllocateLabels(<span class="keywordtype">int</span> numLabels);
<a name="l00186"></a>00186   <span class="keywordtype">void</span> BuildLabels();
<a name="l00187"></a>00187   <span class="keywordtype">void</span> BuildLabelsInternal(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>*);
<a name="l00188"></a>00188 <span class="keyword">private</span>:
<a name="l00189"></a>00189   <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>(<span class="keyword">const</span> <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00190"></a>00190   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00191"></a>00191 };
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="preprocessor">#endif</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:47 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>