Sophie

Sophie

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

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/Parallel/vtkEnSightWriter.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/Parallel/vtkEnSightWriter.h</h1><a href="a03290.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: vtkEnSightWriter.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="l00015"></a>00015 <span class="comment">/*----------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment"> Copyright (c) Sandia Corporation</span>
<a name="l00017"></a>00017 <span class="comment"> See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.</span>
<a name="l00018"></a>00018 <span class="comment">----------------------------------------------------------------------------*/</span>
<a name="l00019"></a>00019 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef __vtkEnSightWriter_h</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define __vtkEnSightWriter_h</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="a03216.html">vtkWriter.h</a>"</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a01046.html" title="This class encapsulates the metadata that appear in mesh-based file formats but do...">vtkModelMetadata</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="a00467.html">00040</a> <span class="keyword">class </span><a class="code" href="a02170.html#7438b32736749f34b46d66222305e60b">VTK_PARALLEL_EXPORT</a> <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a> : <span class="keyword">public</span> <a class="code" href="a01891.html" title="abstract class to write data to file(s)">vtkWriter</a>
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a><a class="code" href="a00467.html#9c3d59fde47fa6685fbfd61a7062df51">00044</a>   vtkTypeRevisionMacro(<a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>,<a class="code" href="a01891.html" title="abstract class to write data to file(s)">vtkWriter</a>);
<a name="l00045"></a>00045   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01891.html#abfdb66435e6dae2859d326d6dcddade">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00046"></a>00046 
<a name="l00047"></a>00047  */
<a name="l00048"></a>00048   <span class="keyword">static</span> <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00049"></a>00049 
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   vtkSetMacro(ProcessNumber,<span class="keywordtype">int</span>);
<a name="l00053"></a>00053   vtkGetMacro(ProcessNumber,<span class="keywordtype">int</span>);
<a name="l00055"></a>00055 
<a name="l00057"></a>00057 
<a name="l00058"></a>00058   vtkSetStringMacro(Path);
<a name="l00059"></a>00059   vtkGetStringMacro(Path);
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064   vtkSetStringMacro(BaseName);
<a name="l00065"></a>00065   vtkGetStringMacro(BaseName);
<a name="l00067"></a>00067 
<a name="l00069"></a>00069 
<a name="l00070"></a>00070   vtkSetStringMacro(FileName);
<a name="l00071"></a>00071   vtkGetStringMacro(FileName);
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 
<a name="l00076"></a>00076   vtkSetMacro(TimeStep,<span class="keywordtype">int</span>);
<a name="l00077"></a>00077   vtkGetMacro(TimeStep,<span class="keywordtype">int</span>);
<a name="l00079"></a>00079 
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   vtkSetMacro(GhostLevel,<span class="keywordtype">int</span>);
<a name="l00083"></a>00083   vtkGetMacro(GhostLevel,<span class="keywordtype">int</span>);
<a name="l00085"></a>00085 
<a name="l00087"></a>00087 
<a name="l00089"></a>00089   vtkSetMacro(TransientGeometry,<span class="keywordtype">bool</span>);
<a name="l00090"></a>00090   vtkGetMacro(TransientGeometry,<span class="keywordtype">bool</span>);
<a name="l00092"></a>00092 
<a name="l00094"></a>00094 
<a name="l00095"></a>00095   vtkSetMacro(NumberOfBlocks,<span class="keywordtype">int</span>);
<a name="l00096"></a>00096   vtkGetMacro(NumberOfBlocks,<span class="keywordtype">int</span>);
<a name="l00098"></a>00098 
<a name="l00100"></a>00100 
<a name="l00102"></a><a class="code" href="a00467.html#8a6457be27dbae9c1684d1042d3a7943">00102</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetBlockIDs(<span class="keywordtype">int</span>* val)
<a name="l00103"></a>00103     {
<a name="l00104"></a>00104     BlockIDs=val;
<a name="l00105"></a>00105     }
<a name="l00106"></a><a class="code" href="a00467.html#544243d7f62a1903e9a31ce8b8b31e9c">00106</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span>* GetBlockIDs()
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108     <span class="keywordflow">return</span> BlockIDs;
<a name="l00109"></a>00109     }
<a name="l00111"></a>00111 
<a name="l00113"></a>00113 
<a name="l00114"></a>00114   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01891.html#1f3cfb207d2c82fcf0e2acc5f33f54ad">SetInput</a>(<a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *input);
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* <a class="code" href="a01891.html#6b5a81ff411ac4cbd30a705ba9dc38e1">GetInput</a>();
<a name="l00117"></a>00117 
<a name="l00119"></a>00119 
<a name="l00123"></a>00123   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteCaseFile(<span class="keywordtype">int</span> TotalTimeSteps);
<a name="l00124"></a>00124   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteSOSCaseFile(<span class="keywordtype">int</span> NumProcs);
<a name="l00126"></a>00126 
<a name="l00128"></a>00128 
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetModelMetadata(<a class="code" href="a01046.html" title="This class encapsulates the metadata that appear in mesh-based file formats but do...">vtkModelMetadata</a>* model);
<a name="l00130"></a>00130   vtkGetObjectMacro(ModelMetadata, <a class="code" href="a01046.html" title="This class encapsulates the metadata that appear in mesh-based file formats but do...">vtkModelMetadata</a>);
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="keyword">protected</span>:
<a name="l00134"></a>00134   <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>();
<a name="l00135"></a>00135   <span class="keyword">virtual</span> ~<a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>();
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <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="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00138"></a>00138 
<a name="l00139"></a>00139   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01891.html#8b6c0be89a6a2a78146775a5ee735fcc">WriteData</a>(); <span class="comment">// method to allow this class to be instantiated and delegated to</span>
<a name="l00140"></a>00140 
<a name="l00141"></a>00141   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteStringToFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, FILE* file);
<a name="l00142"></a>00142   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteTerminatedStringToFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, FILE* file);
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteIntToFile(<span class="keyword">const</span> <span class="keywordtype">int</span> i,FILE* file);
<a name="l00144"></a>00144   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteFloatToFile(<span class="keyword">const</span> <span class="keywordtype">float</span> f,FILE* file);
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteElementTypeToFile(<span class="keywordtype">int</span> ElementType, FILE* fd);
<a name="l00146"></a>00146 
<a name="l00147"></a>00147   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ShouldWriteGeometry();
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SanitizeFileName(<span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00149"></a>00149   <span class="keyword">virtual</span> FILE* OpenFile(<span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151   <span class="keywordtype">void</span> ComputeNames();
<a name="l00152"></a>00152   <span class="keywordtype">void</span> DefaultNames();
<a name="l00153"></a>00153 
<a name="l00154"></a>00154   <span class="keywordtype">int</span> GetExodusModelIndex(<span class="keywordtype">int</span> *ElementArray,<span class="keywordtype">int</span> NumberElements,<span class="keywordtype">int</span> PartID);
<a name="l00155"></a>00155 
<a name="l00156"></a><a class="code" href="a00467.html#3d01fd094872642634e24f47e5cd9d94">00156</a>   <span class="keywordtype">char</span> *Path;
<a name="l00157"></a><a class="code" href="a00467.html#b88f424f07a0f043af0a68b5d512ce4b">00157</a>   <span class="keywordtype">char</span> *BaseName;
<a name="l00158"></a><a class="code" href="a00467.html#89df643099ef7bc2f4c84f3d2a4e71be">00158</a>   <span class="keywordtype">char</span> *FileName;
<a name="l00159"></a><a class="code" href="a00467.html#c03120768337289e4cd91c1c84321170">00159</a>   <span class="keywordtype">int</span> TimeStep;
<a name="l00160"></a><a class="code" href="a00467.html#43fc7d8bb9d041e6b9aa0a5c3d79ce72">00160</a>   <span class="keywordtype">int</span> GhostLevelMultiplier;
<a name="l00161"></a><a class="code" href="a00467.html#0ddc6e6319e0d83f1c944b290bc49f49">00161</a>   <span class="keywordtype">int</span> ProcessNumber;
<a name="l00162"></a><a class="code" href="a00467.html#43a3fb0cd5af0bb9a6a907e2017f5d6c">00162</a>   <span class="keywordtype">int</span> NumberOfProcesses;
<a name="l00163"></a><a class="code" href="a00467.html#0e2412f27262aa25546e937e2b726906">00163</a>   <span class="keywordtype">int</span> NumberOfBlocks;
<a name="l00164"></a><a class="code" href="a00467.html#9d2a23d261020a8b480cfc5629131635">00164</a>   <span class="keywordtype">int</span> * BlockIDs;
<a name="l00165"></a><a class="code" href="a00467.html#b1ef634db7eaaebeb965136feeff550b">00165</a>   <span class="keywordtype">bool</span> TransientGeometry;
<a name="l00166"></a><a class="code" href="a00467.html#4e3ae21b35926e01587f6f3624f05867">00166</a>   <span class="keywordtype">int</span> GhostLevel;
<a name="l00167"></a><a class="code" href="a00467.html#3eec36155410938a04b00b21b8585c26">00167</a>   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>* TmpInput;
<a name="l00168"></a><a class="code" href="a00467.html#9016f7c7a4be61d16198937a9459ff7d">00168</a>   <a class="code" href="a01046.html" title="This class encapsulates the metadata that appear in mesh-based file formats but do...">vtkModelMetadata</a>* ModelMetadata;
<a name="l00169"></a>00169 
<a name="l00170"></a>00170   <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>(<span class="keyword">const</span> <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00171"></a>00171   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00467.html" title="write vtk unstructured grid data as an EnSight file">vtkEnSightWriter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 };
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:43 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>