Sophie

Sophie

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

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/Common/vtkParametricRandomHills.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/Common/vtkParametricRandomHills.h</h1><a href="a02100.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: vtkParametricRandomHills.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="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkParametricRandomHills_h</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkParametricRandomHills_h</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a02097.html">vtkParametricFunction.h</a>"</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="a01171.html">00040</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a> : <span class="keyword">public</span> <a class="code" href="a01167.html" title="abstract interface for parametric functions">vtkParametricFunction</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="a01171.html#292fce3779b48a07be06318ab6b00400">00044</a>   vtkTypeRevisionMacro(<a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>,<a class="code" href="a01167.html" title="abstract interface for parametric functions">vtkParametricFunction</a>);
<a name="l00045"></a>00045   <span class="keywordtype">void</span> <a class="code" href="a01167.html#df5f1a91e154220007690f2a4c1e3969">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="l00048"></a><a class="code" href="a01171.html#40ba2c6d9d0f4bcbb60bdaf50dd2a1e2">00048</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01167.html#093975fadf60dc8ce3ea0baac1b2ca34">GetDimension</a>() {<span class="keywordflow">return</span> 2;}
<a name="l00049"></a>00049 
<a name="l00058"></a>00058   <span class="keyword">static</span> <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00059"></a>00059 
<a name="l00061"></a>00061 
<a name="l00062"></a>00062   vtkSetMacro(NumberOfHills,<span class="keywordtype">int</span>);
<a name="l00063"></a>00063   vtkGetMacro(NumberOfHills,<span class="keywordtype">int</span>);
<a name="l00065"></a>00065 
<a name="l00067"></a>00067 
<a name="l00068"></a>00068   vtkSetMacro(HillXVariance,<span class="keywordtype">double</span>);
<a name="l00069"></a>00069   vtkGetMacro(HillXVariance,<span class="keywordtype">double</span>);
<a name="l00071"></a>00071 
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   vtkSetMacro(HillYVariance,<span class="keywordtype">double</span>);
<a name="l00075"></a>00075   vtkGetMacro(HillYVariance,<span class="keywordtype">double</span>);
<a name="l00077"></a>00077 
<a name="l00079"></a>00079 
<a name="l00080"></a>00080   vtkSetMacro(HillAmplitude,<span class="keywordtype">double</span>);
<a name="l00081"></a>00081   vtkGetMacro(HillAmplitude,<span class="keywordtype">double</span>);
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 
<a name="l00088"></a>00088   vtkSetMacro(RandomSeed,<span class="keywordtype">int</span>);
<a name="l00089"></a>00089   vtkGetMacro(RandomSeed,<span class="keywordtype">int</span>);
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00097"></a>00097   vtkSetMacro(AllowRandomGeneration,<span class="keywordtype">int</span>);
<a name="l00098"></a>00098   vtkGetMacro(AllowRandomGeneration,<span class="keywordtype">int</span>);
<a name="l00099"></a>00099   vtkBooleanMacro(AllowRandomGeneration,<span class="keywordtype">int</span>);
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 
<a name="l00105"></a>00105   vtkSetMacro(XVarianceScaleFactor,<span class="keywordtype">double</span>);
<a name="l00106"></a>00106   vtkGetMacro(XVarianceScaleFactor,<span class="keywordtype">double</span>);
<a name="l00108"></a>00108 
<a name="l00110"></a>00110 
<a name="l00112"></a>00112   vtkSetMacro(YVarianceScaleFactor,<span class="keywordtype">double</span>);
<a name="l00113"></a>00113   vtkGetMacro(YVarianceScaleFactor,<span class="keywordtype">double</span>);
<a name="l00115"></a>00115 
<a name="l00117"></a>00117 
<a name="l00118"></a>00118   vtkSetMacro(AmplitudeScaleFactor,<span class="keywordtype">double</span>);
<a name="l00119"></a>00119   vtkGetMacro(AmplitudeScaleFactor,<span class="keywordtype">double</span>);
<a name="l00121"></a>00121 
<a name="l00127"></a>00127   <span class="keywordtype">void</span> GenerateTheHills( <span class="keywordtype">void</span> );
<a name="l00128"></a>00128 
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01167.html#5d13e377b1cff56856b60d10bb66be34">Evaluate</a>(<span class="keywordtype">double</span> uvw[3], <span class="keywordtype">double</span> Pt[3], <span class="keywordtype">double</span> Duvw[9]);
<a name="l00138"></a>00138 
<a name="l00147"></a>00147   <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="a01167.html#bb043638834315b6f18eb049ab8fdb9e">EvaluateScalar</a>(<span class="keywordtype">double</span> uvw[3], <span class="keywordtype">double</span> Pt[3], <span class="keywordtype">double</span> Duvw[9]);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="keyword">protected</span>:
<a name="l00150"></a>00150   <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>();
<a name="l00151"></a>00151   ~<a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>();
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   <span class="comment">// Variables</span>
<a name="l00154"></a><a class="code" href="a01171.html#5274c4c1d88053d4d09018179bf81be7">00154</a>   <span class="keywordtype">int</span> NumberOfHills;
<a name="l00155"></a><a class="code" href="a01171.html#6fe6b1f7d631e7c0c207406d5ef3bab4">00155</a>   <span class="keywordtype">double</span> HillXVariance;
<a name="l00156"></a><a class="code" href="a01171.html#815ae28443e4436a646e2247e9076dce">00156</a>   <span class="keywordtype">double</span> HillYVariance;
<a name="l00157"></a><a class="code" href="a01171.html#94bb4ae4898b6de2b9ae3655dd7346ce">00157</a>   <span class="keywordtype">double</span> HillAmplitude;
<a name="l00158"></a><a class="code" href="a01171.html#a550b3f9563afeafce6070e5c66776b3">00158</a>   <span class="keywordtype">int</span> RandomSeed;
<a name="l00159"></a><a class="code" href="a01171.html#8252a8619960f75c3007ba5e2fed53f3">00159</a>   <span class="keywordtype">double</span> XVarianceScaleFactor;
<a name="l00160"></a><a class="code" href="a01171.html#6d0e428f28b8276517e4e618f44b0ceb">00160</a>   <span class="keywordtype">double</span> YVarianceScaleFactor;
<a name="l00161"></a><a class="code" href="a01171.html#5ab868664e7128b6807b767d16a50c18">00161</a>   <span class="keywordtype">double</span> AmplitudeScaleFactor;
<a name="l00162"></a><a class="code" href="a01171.html#1a1e10e5823d851509ce052a6c85b092">00162</a>   <span class="keywordtype">int</span> AllowRandomGeneration;
<a name="l00163"></a>00163 
<a name="l00164"></a>00164 <span class="keyword">private</span>:
<a name="l00165"></a>00165   <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>(<span class="keyword">const</span> <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00166"></a>00166   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01171.html" title="Generate a surface covered with randomly placed hills.">vtkParametricRandomHills</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00167"></a>00167 
<a name="l00169"></a>00169   <span class="keywordtype">void</span> InitSeed ( <span class="keywordtype">int</span> RandomSeed );
<a name="l00170"></a>00170 
<a name="l00172"></a>00172   <span class="keywordtype">double</span> Rand ( <span class="keywordtype">void</span> );
<a name="l00173"></a>00173 
<a name="l00175"></a>00175   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> * hillData;
<a name="l00176"></a>00176 };
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:11 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>