Sophie

Sophie

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

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/IO/vtkPLYWriter.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/IO/vtkPLYWriter.h</h1><a href="a03173.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: vtkPLYWriter.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 __vtkPLYWriter_h</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPLYWriter_h</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="a03179.html">vtkPolyDataWriter.h</a>"</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>;
<a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>;
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="a03173.html#15f59668de69ab8658a7f1e9c4e2d744">00045</a> <span class="preprocessor">#define VTK_LITTLE_ENDIAN 0</span>
<a name="l00046"></a><a class="code" href="a03173.html#a80c120cdb0df1e8e7d94731ff11c57b">00046</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_BIG_ENDIAN    1</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a><a class="code" href="a03173.html#419aa0270a6270b411538be81342c45d">00048</a> <span class="preprocessor">#define VTK_COLOR_MODE_DEFAULT 0</span>
<a name="l00049"></a><a class="code" href="a03173.html#c3b66986a231a77798436f6fc5922211">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1</span>
<a name="l00050"></a><a class="code" href="a03173.html#578bd20d7823259608d316ce73197e14">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2</span>
<a name="l00051"></a><a class="code" href="a03173.html#9bbd003469f4fc55902c1e133241648c">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_COLOR_MODE_UNIFORM_COLOR 3</span>
<a name="l00052"></a><a class="code" href="a03173.html#497410034f072dc3fcba68770eac619b">00052</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_COLOR_MODE_OFF 4</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="a01236.html">00055</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a> : <span class="keyword">public</span> <a class="code" href="a01277.html" title="write vtk polygonal data">vtkPolyDataWriter</a>
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00058"></a>00058   <span class="keyword">static</span> <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a> *<a class="code" href="a01277.html#12d7b56628c38ad812f1425fae4a1ccd">New</a>();
<a name="l00059"></a><a class="code" href="a01236.html#72635fcf7068daff0cf5593a72ee1ebe">00059</a>   vtkTypeRevisionMacro(<a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>,<a class="code" href="a01277.html" title="write vtk polygonal data">vtkPolyDataWriter</a>);
<a name="l00060"></a>00060   <span class="keywordtype">void</span> <a class="code" href="a01277.html#9bc9317ca5fdf8ae70f549c3e4059e68">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00065"></a>00065   vtkSetClampMacro(DataByteOrder,<span class="keywordtype">int</span>,<a class="code" href="a03173.html#15f59668de69ab8658a7f1e9c4e2d744">VTK_LITTLE_ENDIAN</a>,<a class="code" href="a03173.html#a80c120cdb0df1e8e7d94731ff11c57b">VTK_BIG_ENDIAN</a>);
<a name="l00066"></a>00066   vtkGetMacro(DataByteOrder,<span class="keywordtype">int</span>);
<a name="l00067"></a><a class="code" href="a01236.html#1b6834437647bf91195ab08a1d59c414">00067</a>   <span class="keywordtype">void</span> SetDataByteOrderToBigEndian()
<a name="l00068"></a>00068     {this-&gt;SetDataByteOrder(<a class="code" href="a03173.html#a80c120cdb0df1e8e7d94731ff11c57b">VTK_BIG_ENDIAN</a>);}
<a name="l00069"></a><a class="code" href="a01236.html#08e3e7dfe4ba0cb11d18cc4329058532">00069</a>   <span class="keywordtype">void</span> SetDataByteOrderToLittleEndian()
<a name="l00070"></a>00070     {this-&gt;SetDataByteOrder(<a class="code" href="a03173.html#15f59668de69ab8658a7f1e9c4e2d744">VTK_LITTLE_ENDIAN</a>);}
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 
<a name="l00087"></a>00087   vtkSetMacro(ColorMode,<span class="keywordtype">int</span>);
<a name="l00088"></a>00088   vtkGetMacro(ColorMode,<span class="keywordtype">int</span>);
<a name="l00089"></a><a class="code" href="a01236.html#a7f0bdbb2decdc7a7360a890a6c10e8b">00089</a>   <span class="keywordtype">void</span> SetColorModeToDefault() 
<a name="l00090"></a>00090     {this-&gt;SetColorMode(<a class="code" href="a02139.html#419aa0270a6270b411538be81342c45d">VTK_COLOR_MODE_DEFAULT</a>);}
<a name="l00091"></a><a class="code" href="a01236.html#0e5727d4eec4fe1bd511ab77be8f5b1e">00091</a>   <span class="keywordtype">void</span> SetColorModeToUniformCellColor() 
<a name="l00092"></a>00092     {this-&gt;SetColorMode(<a class="code" href="a03173.html#c3b66986a231a77798436f6fc5922211">VTK_COLOR_MODE_UNIFORM_CELL_COLOR</a>);}
<a name="l00093"></a><a class="code" href="a01236.html#b86c1b604f487a4561fa877600ea87aa">00093</a>   <span class="keywordtype">void</span> SetColorModeToUniformPointColor() 
<a name="l00094"></a>00094     {this-&gt;SetColorMode(<a class="code" href="a03173.html#578bd20d7823259608d316ce73197e14">VTK_COLOR_MODE_UNIFORM_POINT_COLOR</a>);}
<a name="l00095"></a><a class="code" href="a01236.html#11fccf1b09af83a048f5381ae71e6ad8">00095</a>   <span class="keywordtype">void</span> SetColorModeToUniformColor() <span class="comment">//both cells and points are colored</span>
<a name="l00096"></a>00096     {this-&gt;SetColorMode(<a class="code" href="a03173.html#9bbd003469f4fc55902c1e133241648c">VTK_COLOR_MODE_UNIFORM_COLOR</a>);}
<a name="l00097"></a><a class="code" href="a01236.html#e8dc10b6f6cf081c663120a5acec1ff4">00097</a>   <span class="keywordtype">void</span> SetColorModeToOff() <span class="comment">//No color information is written</span>
<a name="l00098"></a>00098     {this-&gt;SetColorMode(<a class="code" href="a03173.html#497410034f072dc3fcba68770eac619b">VTK_COLOR_MODE_OFF</a>);}
<a name="l00100"></a>00100   
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   vtkSetStringMacro(ArrayName);
<a name="l00104"></a>00104   vtkGetStringMacro(ArrayName);
<a name="l00106"></a>00106   
<a name="l00108"></a>00108 
<a name="l00109"></a>00109   vtkSetClampMacro(Component,<span class="keywordtype">int</span>,0,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>);
<a name="l00110"></a>00110   vtkGetMacro(Component,<span class="keywordtype">int</span>);
<a name="l00112"></a>00112 
<a name="l00114"></a>00114 
<a name="l00116"></a>00116   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLookupTable(<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>*);
<a name="l00117"></a>00117   vtkGetObjectMacro(LookupTable,<a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a>);
<a name="l00119"></a>00119   
<a name="l00121"></a>00121 
<a name="l00125"></a>00125   vtkSetVector3Macro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f17c6615bb6855c26543a4a2c0aaa529f">Color</a>,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>);
<a name="l00126"></a>00126   vtkGetVector3Macro(<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f17c6615bb6855c26543a4a2c0aaa529f">Color</a>,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>);
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="keyword">protected</span>:
<a name="l00130"></a>00130   <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>();
<a name="l00131"></a>00131   ~<a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>();
<a name="l00132"></a>00132 
<a name="l00133"></a>00133   <span class="keywordtype">void</span> <a class="code" href="a01277.html#8f54eeac33432c35d41d2796f05ac560">WriteData</a>();
<a name="l00134"></a>00134   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *GetColors(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> num, <a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a> *dsa);
<a name="l00135"></a>00135   
<a name="l00136"></a><a class="code" href="a01236.html#8099441ebe255d775828528990109497">00136</a>   <span class="keywordtype">int</span> DataByteOrder;
<a name="l00137"></a><a class="code" href="a01236.html#2c775f125042156c2884860c288f4902">00137</a>   <span class="keywordtype">char</span> *ArrayName;
<a name="l00138"></a><a class="code" href="a01236.html#a4b8c481d98429fda12e04cae9995625">00138</a>   <span class="keywordtype">int</span> Component;
<a name="l00139"></a><a class="code" href="a01236.html#7114fd8b551ba468fb72316ca8520c43">00139</a>   <span class="keywordtype">int</span> ColorMode;
<a name="l00140"></a><a class="code" href="a01236.html#6c88fdf09c10febcc2546932230f015d">00140</a>   <a class="code" href="a01513.html" title="map scalar values into colors">vtkScalarsToColors</a> *LookupTable;
<a name="l00141"></a><a class="code" href="a01236.html#895f5c58709ab547542b7e7668e430ee">00141</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f17c6615bb6855c26543a4a2c0aaa529f">Color</a>[3];
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="keyword">private</span>:
<a name="l00144"></a>00144   <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>(<span class="keyword">const</span> <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00145"></a>00145   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01236.html" title="write Stanford PLY file format">vtkPLYWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00146"></a>00146 };
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="preprocessor">#endif</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:40 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>