Sophie

Sophie

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

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/vtkTesting.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/vtkTesting.h</h1><a href="a03556.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: vtkTesting.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="l00064"></a>00064 <span class="preprocessor">#ifndef __vtkTesting_h</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTesting_h</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a>00067 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00068"></a>00068 <span class="preprocessor">#include &lt;vtkstd/vector&gt;</span> <span class="comment">// used for argv</span>
<a name="l00069"></a>00069 <span class="preprocessor">#include &lt;vtkstd/string&gt;</span> <span class="comment">// used for argv</span>
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>;
<a name="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>;
<a name="l00073"></a>00073 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>;
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="a01687.html">00076</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078 <span class="keyword">public</span>:
<a name="l00079"></a>00079   <span class="keyword">static</span> <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00080"></a><a class="code" href="a01687.html#6472b15fc89c3c77c43e1717680b580e">00080</a>   vtkTypeRevisionMacro(<a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00081"></a>00081   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="comment">//BTX</span>
<a name="l00084"></a><a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b6">00084</a>   <span class="keyword">enum</span> <a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b6">ReturnValue</a> {
<a name="l00085"></a><a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b64fa8b7886ad7c0cea523466c1c4c5f46">00085</a>     FAILED = 0,
<a name="l00086"></a><a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b6d048722f6b4ec5038275b17703e6e87d">00086</a>     PASSED = 1,
<a name="l00087"></a><a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b6fd33007195540f66bc709fcfea35a302">00087</a>     NOT_RUN = 2,
<a name="l00088"></a><a class="code" href="a01687.html#8fb4a86f4d9e8407fe74d9f12877a3b60fad89103b720e41729e04e6f0b63027">00088</a>     DO_INTERACTOR = 3
<a name="l00089"></a>00089   };
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <span class="keyword">static</span> <span class="keywordtype">int</span> Test(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[], <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a> *rw, <span class="keywordtype">double</span> thresh);
<a name="l00092"></a>00092 <span class="comment">//ETX</span>
<a name="l00093"></a>00093   
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   vtkSetClampMacro(FrontBuffer, <span class="keywordtype">int</span>, 0, 1);
<a name="l00097"></a>00097   vtkBooleanMacro(FrontBuffer, <span class="keywordtype">int</span>);
<a name="l00098"></a>00098   vtkGetMacro(FrontBuffer, <span class="keywordtype">int</span>);
<a name="l00100"></a>00100 
<a name="l00102"></a>00102 
<a name="l00104"></a>00104   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RegressionTest(<span class="keywordtype">double</span> thresh);
<a name="l00105"></a>00105   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RegressionTest(<span class="keywordtype">double</span> thresh,ostream &amp;os);
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 
<a name="l00110"></a>00110   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RegressionTest(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210cf2918d8c9015394a60a23572e257359">image</a>, <span class="keywordtype">double</span> thresh);
<a name="l00111"></a>00111   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RegressionTest(<a class="code" href="a00751.html" title="topologically and geometrically regular array of data">vtkImageData</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210cf2918d8c9015394a60a23572e257359">image</a>, <span class="keywordtype">double</span> thresh, ostream&amp; os);
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00119"></a>00119   <span class="keywordtype">int</span> CompareAverageOfL2Norm(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *pdA, <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *pdB, <span class="keywordtype">double</span> tol);
<a name="l00120"></a>00120   <span class="comment">// Description:</span>
<a name="l00121"></a>00121   <span class="comment">// Compute the average L2 norm between two data arrays "daA" and "daB" </span>
<a name="l00122"></a>00122   <span class="comment">// and compare against "tol".</span>
<a name="l00123"></a>00123   <span class="keywordtype">int</span> CompareAverageOfL2Norm(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *daA, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *daB, <span class="keywordtype">double</span> tol);
<a name="l00125"></a>00125 
<a name="l00127"></a>00127 
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRenderWindow(<a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>* rw);
<a name="l00130"></a>00130   vtkGetObjectMacro(RenderWindow, <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>);
<a name="l00132"></a>00132 
<a name="l00134"></a>00134 
<a name="l00135"></a>00135   vtkSetStringMacro(ValidImageFileName);
<a name="l00136"></a>00136   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetValidImageFileName();
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 
<a name="l00141"></a>00141   vtkGetMacro(ImageDifference, <span class="keywordtype">double</span>);
<a name="l00143"></a>00143 
<a name="l00145"></a>00145 
<a name="l00150"></a>00150   <span class="keywordtype">void</span> AddArgument(<span class="keyword">const</span> <span class="keywordtype">char</span> *argv);
<a name="l00151"></a>00151   <span class="keywordtype">void</span> AddArguments(<span class="keywordtype">int</span> argc,<span class="keyword">const</span> <span class="keywordtype">char</span> **argv);
<a name="l00153"></a>00153 
<a name="l00154"></a>00154   <span class="comment">//BTX</span>
<a name="l00156"></a>00156 <span class="comment"></span>
<a name="l00159"></a>00159   <span class="keywordtype">char</span> *GetArgument(<span class="keyword">const</span> <span class="keywordtype">char</span> *arg);
<a name="l00160"></a>00160   <span class="comment">//ETX </span>
<a name="l00162"></a>00162 <span class="comment"></span>
<a name="l00165"></a>00165   <span class="keywordtype">void</span> CleanArguments();
<a name="l00166"></a>00166   
<a name="l00168"></a>00168 
<a name="l00169"></a>00169   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetDataRoot();
<a name="l00170"></a>00170   vtkSetStringMacro(DataRoot);
<a name="l00172"></a>00172 
<a name="l00174"></a>00174 
<a name="l00175"></a>00175   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetTempDirectory();
<a name="l00176"></a>00176   vtkSetStringMacro(TempDirectory);
<a name="l00178"></a>00178 
<a name="l00180"></a>00180   <span class="keywordtype">int</span> IsValidImageSpecified();
<a name="l00181"></a>00181 
<a name="l00183"></a>00183   <span class="keywordtype">int</span> IsInteractiveModeSpecified();
<a name="l00184"></a>00184 
<a name="l00186"></a>00186   <span class="keywordtype">int</span> IsFlagSpecified(<span class="keyword">const</span> <span class="keywordtype">char</span> *flag);
<a name="l00187"></a>00187 
<a name="l00189"></a>00189 
<a name="l00191"></a>00191   vtkSetMacro(BorderOffset, <span class="keywordtype">int</span>);
<a name="l00192"></a>00192   vtkGetMacro(BorderOffset, <span class="keywordtype">int</span>);
<a name="l00194"></a>00194 
<a name="l00196"></a>00196 
<a name="l00197"></a>00197   vtkSetMacro(Verbose, <span class="keywordtype">int</span>);
<a name="l00198"></a>00198   vtkGetMacro(Verbose, <span class="keywordtype">int</span>);
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 <span class="keyword">protected</span>:
<a name="l00202"></a>00202   <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>();
<a name="l00203"></a>00203   ~<a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>();
<a name="l00204"></a>00204 
<a name="l00205"></a>00205   <span class="keyword">static</span> <span class="keywordtype">char</span>* IncrementFileName(<span class="keyword">const</span> <span class="keywordtype">char</span>* fname, <span class="keywordtype">int</span> count);
<a name="l00206"></a>00206   <span class="keyword">static</span> <span class="keywordtype">int</span> LookForFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* newFileName);
<a name="l00207"></a>00207 
<a name="l00208"></a><a class="code" href="a01687.html#866c95007dd92bdffdbf4af9a570fe79">00208</a>   <span class="keywordtype">int</span> FrontBuffer;
<a name="l00209"></a><a class="code" href="a01687.html#9cea2ac97c1b908d67f0d132e0e965f1">00209</a>   <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>* RenderWindow;
<a name="l00210"></a><a class="code" href="a01687.html#7445f2fc9b5df91c7cafc6d25e2de5de">00210</a>   <span class="keywordtype">char</span>* ValidImageFileName;
<a name="l00211"></a><a class="code" href="a01687.html#8846ad8a9934555a9ff637261e3432cc">00211</a>   <span class="keywordtype">double</span> ImageDifference;
<a name="l00212"></a><a class="code" href="a01687.html#c9be883a99dd5ac7ae8e74a26ed60d63">00212</a>   <span class="keywordtype">char</span> *TempDirectory;
<a name="l00213"></a><a class="code" href="a01687.html#fa4ab85c892a749d810b118733740d8c">00213</a>   <span class="keywordtype">int</span> BorderOffset;
<a name="l00214"></a><a class="code" href="a01687.html#b1b0f8630ff45733e27f2783cc6e1e2e">00214</a>   <span class="keywordtype">int</span> Verbose;
<a name="l00215"></a>00215   
<a name="l00216"></a>00216 <span class="comment">//BTX</span>
<a name="l00217"></a><a class="code" href="a01687.html#d822b446c8756d92dcb940ecaa163173">00217</a>   vtkstd::vector&lt;vtkstd::string&gt; Args;
<a name="l00218"></a>00218 <span class="comment">//ETX</span>
<a name="l00219"></a><a class="code" href="a01687.html#ee5a3afa1dc4a72b2b44124da8d8eee1">00219</a>   <span class="keywordtype">char</span> *DataRoot;
<a name="l00220"></a><a class="code" href="a01687.html#64d0d88538cc4ceeaa42370b5080a2c3">00220</a>   <span class="keywordtype">double</span> StartWallTime;
<a name="l00221"></a><a class="code" href="a01687.html#45a3de76e40deb914646277cc26bc495">00221</a>   <span class="keywordtype">double</span> StartCPUTime;
<a name="l00222"></a>00222   
<a name="l00223"></a>00223 <span class="keyword">private</span>:
<a name="l00224"></a>00224   <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>(<span class="keyword">const</span> <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00225"></a>00225   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01687.html" title="a unified VTK regression testing framework">vtkTesting</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00226"></a>00226 };
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 <span class="preprocessor">#endif</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span>
<a name="l00230"></a>00230 
</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>