Sophie

Sophie

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

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/vtkQuadratureSchemeDefinition.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/vtkQuadratureSchemeDefinition.h</h1><a href="a02116.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: vtkQuadratureSchemeDefinition.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="l00034"></a>00034 <span class="preprocessor">#ifndef vtkQuadratureSchemeDefinition_h</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define vtkQuadratureSchemeDefinition_h</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a00890.html" title="Key for vtkQuadratureSchemeDefinition vector values.">vtkInformationQuadratureSchemeDefinitionVectorKey</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a>;
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="a01441.html">00042</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a>00045   <span class="comment">// vtk stuff</span>
<a name="l00046"></a><a class="code" href="a01441.html#775219ebe2f8c7bb49b3097d4585ac56">00046</a>   vtkTypeRevisionMacro(<a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00047"></a>00047   <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="l00048"></a>00048   <span class="keyword">static</span> <a class="code" href="a00890.html" title="Key for vtkQuadratureSchemeDefinition vector values.">vtkInformationQuadratureSchemeDefinitionVectorKey</a>* DICTIONARY();
<a name="l00049"></a>00049 
<a name="l00052"></a>00052   <span class="keyword">static</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00053"></a>00053 
<a name="l00055"></a>00055   <span class="keywordtype">int</span> DeepCopy(<span class="keyword">const</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> *other);
<a name="l00056"></a>00056 
<a name="l00058"></a>00058 
<a name="l00060"></a>00060   <span class="keywordtype">int</span> SaveState(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a> *e);
<a name="l00061"></a>00061   <span class="comment">// Description:</span>
<a name="l00062"></a>00062   <span class="comment">// Restore the object from an XML representation.</span>
<a name="l00063"></a>00063   <span class="keywordtype">int</span> RestoreState(<a class="code" href="a01902.html" title="Represents an XML element and those nested inside.">vtkXMLDataElement</a> *e);
<a name="l00065"></a>00065 
<a name="l00068"></a>00068   <span class="keywordtype">void</span> Clear();
<a name="l00069"></a>00069 
<a name="l00071"></a>00071 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> Initialize(<span class="keywordtype">int</span> cellType,
<a name="l00073"></a>00073                   <span class="keywordtype">int</span> numberOfNodes,
<a name="l00074"></a>00074                   <span class="keywordtype">int</span> numberOfQuadraturePoints,
<a name="l00075"></a>00075                   <span class="keywordtype">double</span> *shapeFunctionWeights);
<a name="l00076"></a>00076   <span class="comment">// Description:</span>
<a name="l00077"></a>00077   <span class="comment">// Initialize the object allocating resources as needed.</span>
<a name="l00078"></a>00078   <span class="keywordtype">void</span> Initialize(<span class="keywordtype">int</span> cellType,
<a name="l00079"></a>00079                   <span class="keywordtype">int</span> numberOfNodes,
<a name="l00080"></a>00080                   <span class="keywordtype">int</span> numberOfQuadraturePoints,
<a name="l00081"></a>00081                   <span class="keywordtype">double</span> *shapeFunctionWeights,
<a name="l00082"></a>00082                   <span class="keywordtype">double</span> *quadratureWeights);
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00087"></a><a class="code" href="a01441.html#64f2b5a6e7ee7c382973bd4b99814c77">00087</a>   <span class="keywordtype">int</span> GetCellType()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;CellType; }
<a name="l00088"></a>00088   <span class="comment">// Description:</span>
<a name="l00089"></a>00089   <span class="comment">// Access to an alternative key.</span>
<a name="l00090"></a><a class="code" href="a01441.html#ba302b28e222d59a91e9f93bac358875">00090</a>   <span class="keywordtype">int</span> GetQuadratureKey()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;QuadratureKey; }
<a name="l00091"></a>00091   <span class="comment">// Description:</span>
<a name="l00092"></a>00092   <span class="comment">// Get the number of nodes associated with the interpolation.</span>
<a name="l00093"></a><a class="code" href="a01441.html#5ab32d114c14e57a5ad71837d2b7216d">00093</a>   <span class="keywordtype">int</span> GetNumberOfNodes()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;NumberOfNodes; }
<a name="l00094"></a>00094   <span class="comment">// Description:</span>
<a name="l00095"></a>00095   <span class="comment">// Get the number of quadrature points associated with the scheme.</span>
<a name="l00096"></a><a class="code" href="a01441.html#3f7807cbe35cebf8b85a092f41832783">00096</a>   <span class="keywordtype">int</span> GetNumberOfQuadraturePoints()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;NumberOfQuadraturePoints; }
<a name="l00097"></a>00097   <span class="comment">// Description:</span>
<a name="l00098"></a>00098   <span class="comment">// Get the array of shape function weights. Shape function weights are</span>
<a name="l00099"></a>00099   <span class="comment">// the shape functions evaluated at the quadrature points. There are </span>
<a name="l00100"></a>00100   <span class="comment">// "NumberOfNodes" weights for each quadrature point.</span>
<a name="l00101"></a><a class="code" href="a01441.html#c4e01e52c0f32bbe84085e0513ef53d3">00101</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> *GetShapeFunctionWeights()<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> this-&gt;ShapeFunctionWeights; }
<a name="l00102"></a>00102   <span class="comment">// Description:</span>
<a name="l00103"></a>00103   <span class="comment">// Get the array of shape function weights associated with a</span>
<a name="l00104"></a>00104   <span class="comment">// single quadrature point.</span>
<a name="l00105"></a><a class="code" href="a01441.html#c01638ef990f9ef6229aa4020033d225">00105</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> *GetShapeFunctionWeights(<span class="keywordtype">int</span> quadraturePointId)<span class="keyword"> const</span>
<a name="l00106"></a>00106 <span class="keyword">  </span>{
<a name="l00107"></a>00107     <span class="keywordtype">int</span> idx=quadraturePointId*this-&gt;NumberOfNodes;
<a name="l00108"></a>00108     <span class="keywordflow">return</span> this-&gt;ShapeFunctionWeights+idx;
<a name="l00109"></a>00109   }
<a name="l00110"></a>00110   <span class="comment">// Description:</span>
<a name="l00111"></a>00111   <span class="comment">// Access to teh quadrature weights.</span>
<a name="l00112"></a><a class="code" href="a01441.html#bd97c28d0ece69bb29f415f2606e11a0">00112</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> *GetQuadratureWeights()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;QuadratureWeights; }
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="keyword">protected</span>:
<a name="l00116"></a>00116   <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a>();
<a name="l00117"></a>00117   ~<a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a>();
<a name="l00118"></a>00118 <span class="keyword">private</span>:
<a name="l00120"></a>00120 
<a name="l00122"></a>00122   <span class="keywordtype">void</span> ReleaseResources();
<a name="l00123"></a>00123   <span class="comment">// Description:</span>
<a name="l00124"></a>00124   <span class="comment">// Allocate resources according to the objects</span>
<a name="l00125"></a>00125   <span class="comment">// current internal state.</span>
<a name="l00126"></a>00126   <span class="keywordtype">int</span> SecureResources();
<a name="l00127"></a>00127   <span class="comment">// Description:</span>
<a name="l00128"></a>00128   <span class="comment">// Initialize the shape function weights definition.</span>
<a name="l00129"></a>00129   <span class="comment">// Must call SecureResources prior.</span>
<a name="l00130"></a>00130   <span class="keywordtype">void</span> SetShapeFunctionWeights(<span class="keyword">const</span> <span class="keywordtype">double</span> *W);
<a name="l00131"></a>00131   <span class="comment">// Description:</span>
<a name="l00132"></a>00132   <span class="comment">// Initialize the shape function weights definition.</span>
<a name="l00133"></a>00133   <span class="comment">// Must call SecureResources prior.</span>
<a name="l00134"></a>00134   <span class="keywordtype">void</span> SetQuadratureWeights(<span class="keyword">const</span> <span class="keywordtype">double</span> *W);
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="comment">//</span>
<a name="l00138"></a>00138   <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a>(<span class="keyword">const</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> &amp;); <span class="comment">// Not implemented.</span>
<a name="l00139"></a>00139   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> &amp;); <span class="comment">// Not implemented.</span>
<a name="l00140"></a>00140   <span class="keyword">friend</span> ostream &amp;<a class="code" href="a01085.html#c9e7206f207b66c9ccab6ac7bafaa848">operator&lt;&lt;</a>(ostream &amp;s, <span class="keyword">const</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> &amp;d);
<a name="l00141"></a>00141   <span class="keyword">friend</span> istream &amp;operator&gt;&gt;(istream &amp;s, <span class="keyword">const</span> <a class="code" href="a01441.html">vtkQuadratureSchemeDefinition</a> &amp;d);
<a name="l00142"></a>00142   <span class="comment">//</span>
<a name="l00143"></a>00143   <span class="keywordtype">int</span> CellType;
<a name="l00144"></a>00144   <span class="keywordtype">int</span> QuadratureKey;
<a name="l00145"></a>00145   <span class="keywordtype">int</span> NumberOfNodes;
<a name="l00146"></a>00146   <span class="keywordtype">int</span> NumberOfQuadraturePoints;
<a name="l00147"></a>00147   <span class="keywordtype">double</span> *ShapeFunctionWeights;
<a name="l00148"></a>00148   <span class="keywordtype">double</span> *QuadratureWeights;
<a name="l00149"></a>00149 };
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="preprocessor">#endif</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:12 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>