Sophie

Sophie

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

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/vtkTextMapper.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/vtkTextMapper.h</h1><a href="a03559.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: vtkTextMapper.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="l00031"></a>00031 <span class="preprocessor">#ifndef __vtkTextMapper_h</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTextMapper_h</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02304.html">vtkMapper2D.h</a>"</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="a01691.html">00040</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</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="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00043"></a><a class="code" href="a01691.html#f3863a546d199f99455060960cec70c9">00043</a>   vtkTypeRevisionMacro(<a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>,<a class="code" href="a00985.html" title="abstract class specifies interface for objects which render 2D actors">vtkMapper2D</a>);
<a name="l00044"></a>00044   <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="l00045"></a>00045 
<a name="l00047"></a>00047   <span class="keyword">static</span> <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00048"></a>00048 
<a name="l00050"></a>00050 
<a name="l00052"></a><a class="code" href="a01691.html#9d4ff55fed3e6b49a4d6f10ea4ce5e78">00052</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GetSize(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[2]) {size[0]=size[0];}
<a name="l00053"></a>00053   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetWidth(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*v);
<a name="l00054"></a>00054   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetHeight(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*v);
<a name="l00056"></a>00056   
<a name="l00058"></a>00058 
<a name="l00060"></a>00060   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<span class="keyword">const</span> <span class="keywordtype">char</span> *inputString);
<a name="l00061"></a>00061   vtkGetStringMacro(Input);
<a name="l00063"></a>00063 
<a name="l00065"></a>00065 
<a name="l00066"></a>00066   <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="l00067"></a>00067   vtkGetObjectMacro(TextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>);
<a name="l00069"></a>00069   
<a name="l00071"></a>00071   <span class="keywordtype">void</span> <a class="code" href="a00083.html#9e4eab34657ff5bf870a23e9bf5bfc6c">ShallowCopy</a>(<a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> *tm);
<a name="l00072"></a>00072   
<a name="l00075"></a>00075   <span class="keywordtype">int</span>  GetNumberOfLines(<span class="keyword">const</span> <span class="keywordtype">char</span> *input);
<a name="l00076"></a>00076 
<a name="l00078"></a>00078 
<a name="l00081"></a>00081   vtkGetMacro(NumberOfLines,<span class="keywordtype">int</span>);
<a name="l00083"></a>00083   
<a name="l00085"></a>00085 
<a name="l00089"></a>00089   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetConstrainedFontSize(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*, <span class="keywordtype">int</span> targetWidth, <span class="keywordtype">int</span> targetHeight);
<a name="l00090"></a>00090   <span class="keyword">static</span> <span class="keywordtype">int</span> SetConstrainedFontSize(<a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>*, <a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*, <span class="keywordtype">int</span> targetWidth, <span class="keywordtype">int</span> targetHeight);
<a name="l00092"></a>00092 
<a name="l00094"></a>00094 
<a name="l00098"></a>00098   <span class="keyword">static</span> <span class="keywordtype">int</span> SetMultipleConstrainedFontSize(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*, 
<a name="l00099"></a>00099                                             <span class="keywordtype">int</span> targetWidth, <span class="keywordtype">int</span> targetHeight,
<a name="l00100"></a>00100                                             <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>** mappers, 
<a name="l00101"></a>00101                                             <span class="keywordtype">int</span> nbOfMappers, 
<a name="l00102"></a>00102                                             <span class="keywordtype">int</span>* maxResultingSize);
<a name="l00104"></a>00104 
<a name="l00106"></a>00106 
<a name="l00109"></a>00109   <span class="keyword">static</span> <span class="keywordtype">int</span> SetRelativeFontSize(<a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>*, <a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*, <span class="keywordtype">int</span> *winSize, 
<a name="l00110"></a>00110                                  <span class="keywordtype">int</span> *stringSize, <span class="keywordtype">float</span> sizeFactor=0.0);
<a name="l00111"></a>00111   <span class="keyword">static</span> <span class="keywordtype">int</span> SetMultipleRelativeFontSize(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport, 
<a name="l00112"></a>00112                                          <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> **textMappers, 
<a name="l00113"></a>00113                                          <span class="keywordtype">int</span> nbOfMappers, <span class="keywordtype">int</span> *winSize, 
<a name="l00114"></a>00114                                          <span class="keywordtype">int</span> *stringSize, <span class="keywordtype">float</span> sizeFactor);
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="a01691.html#4c3624634c363fbddc9abdeba97e8543">00119</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetSystemFontSize(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>) 
<a name="l00120"></a>00120     { <span class="keywordflow">return</span> size; }
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="keyword">protected</span>:
<a name="l00124"></a>00124   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>();
<a name="l00125"></a>00125   ~<a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>();
<a name="l00126"></a>00126 
<a name="l00127"></a><a class="code" href="a01691.html#96a98ef731ae15a1fbe21720b89edaa8">00127</a>   <span class="keywordtype">char</span>* Input;
<a name="l00128"></a><a class="code" href="a01691.html#eeccbc16afd7083c9a7a9eeac9b97e1d">00128</a>   <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *TextProperty;
<a name="l00129"></a>00129 
<a name="l00130"></a><a class="code" href="a01691.html#06a108462ca6ebc7e58965ed70eb2eae">00130</a>   <span class="keywordtype">int</span>  LineSize;
<a name="l00131"></a><a class="code" href="a01691.html#063af78cfbc097dae809b2699d37a622">00131</a>   <span class="keywordtype">int</span>  NumberOfLines;
<a name="l00132"></a><a class="code" href="a01691.html#04e022a496de830dcad024f07f90354b">00132</a>   <span class="keywordtype">int</span>  NumberOfLinesAllocated;
<a name="l00133"></a>00133 
<a name="l00134"></a><a class="code" href="a01691.html#bbe63042798c4482f16fb19e51d21e1c">00134</a>   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> **TextLines;
<a name="l00135"></a>00135 
<a name="l00136"></a>00136   <span class="comment">// These functions are used to parse, process, and render multiple lines </span>
<a name="l00137"></a>00137   <span class="keywordtype">char</span> *NextLine(<span class="keyword">const</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">int</span> lineNum);
<a name="l00138"></a>00138   <span class="keywordtype">void</span> GetMultiLineSize(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[2]);
<a name="l00139"></a>00139   <span class="keywordtype">void</span> RenderOverlayMultipleLines(<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="l00140"></a>00140   
<a name="l00141"></a>00141 <span class="keyword">private</span>:
<a name="l00142"></a>00142   <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>(<span class="keyword">const</span> <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00143"></a>00143   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00144"></a>00144 };
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="preprocessor">#endif</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:49 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>