Sophie

Sophie

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

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/Filtering/vtkRectilinearGrid.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/Filtering/vtkRectilinearGrid.h</h1><a href="a02351.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: vtkRectilinearGrid.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="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkRectilinearGrid_h</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkRectilinearGrid_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02226.html">vtkDataSet.h</a>"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="a02137.html">vtkStructuredData.h</a>"</span> <span class="comment">// For inline methods</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01821.html" title="a cell that represents a 3D point">vtkVertex</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00960.html" title="cell represents a 1D line">vtkLine</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01221.html" title="a cell that represents an orthogonal quadrilateral">vtkPixel</a>;
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a01859.html" title="a cell that represents a 3D orthogonal parallelepiped">vtkVoxel</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="a01460.html">00050</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a> : <span class="keyword">public</span> <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a>00053   <span class="keyword">static</span> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a> *<a class="code" href="a00362.html#13d4f201619a19a9b39978e92239cd98">New</a>();
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="a01460.html#c849a3d24174d4e3808468cc2673d79c">00055</a>   vtkTypeRevisionMacro(<a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>,<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>);
<a name="l00056"></a>00056   <span class="keywordtype">void</span> <a class="code" href="a00374.html#8888a27602c40c1fecb773126bb4a30f">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00057"></a>00057 
<a name="l00059"></a><a class="code" href="a01460.html#68387cf6245a5bd34a9e669384999be0">00059</a>   <span class="keywordtype">int</span> <a class="code" href="a00374.html#40c6592489f97ca77ecd5c4abbbbe7b9">GetDataObjectType</a>() {<span class="keywordflow">return</span> <a class="code" href="a02149.html#68b4fcb3c62d03d36babd739d865c488">VTK_RECTILINEAR_GRID</a>;};
<a name="l00060"></a>00060 
<a name="l00063"></a>00063   <span class="keywordtype">void</span> <a class="code" href="a00374.html#a257bc67d26310ad0d6bef97c066c099">CopyStructure</a>(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *ds);
<a name="l00064"></a>00064 
<a name="l00066"></a>00066   <span class="keywordtype">void</span> <a class="code" href="a00374.html#39cf7f4c5af1f2eb0bf92a44adc0b6b3">Initialize</a>();
<a name="l00067"></a>00067 
<a name="l00069"></a>00069 
<a name="l00070"></a>00070   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#71c110da748f73e5c5f5c42a33805460">GetNumberOfCells</a>();
<a name="l00071"></a>00071   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#61b3ec9367dcb1be34a93026e92c2cab">GetNumberOfPoints</a>();
<a name="l00072"></a>00072   <span class="keywordtype">double</span> *<a class="code" href="a00374.html#e8406fa1dc144b392ef28111c71a47b0">GetPoint</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> ptId);
<a name="l00073"></a>00073   <span class="keywordtype">void</span> <a class="code" href="a00374.html#e8406fa1dc144b392ef28111c71a47b0">GetPoint</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, <span class="keywordtype">double</span> x[3]);
<a name="l00074"></a>00074   <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *<a class="code" href="a00374.html#711ed1ebb7bdf4a4e2ed6896081cd1b2">GetCell</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId);
<a name="l00075"></a>00075   <span class="keywordtype">void</span> <a class="code" href="a00374.html#711ed1ebb7bdf4a4e2ed6896081cd1b2">GetCell</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell);
<a name="l00076"></a>00076   <span class="keywordtype">void</span> <a class="code" href="a00374.html#5078085a8efba2d934e9a00d328b0b80">GetCellBounds</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <span class="keywordtype">double</span> bounds[6]);
<a name="l00077"></a><a class="code" href="a01460.html#6b5fda94b984f0db3f76f9f4cea6e0ce">00077</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#d01fb4f295210a2c707801cb7c3da5ce">FindPoint</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z) { <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00374.html#d01fb4f295210a2c707801cb7c3da5ce">vtkDataSet::FindPoint</a>(x, y, z);};
<a name="l00078"></a>00078   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#d01fb4f295210a2c707801cb7c3da5ce">FindPoint</a>(<span class="keywordtype">double</span> x[3]);
<a name="l00079"></a>00079   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#2221c10d3c4cca44e82c5ef70e4e1cbd">FindCell</a>(<span class="keywordtype">double</span> x[3], <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *cell, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <span class="keywordtype">double</span> tol2,
<a name="l00080"></a>00080                      <span class="keywordtype">int</span>&amp; subId, <span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> *weights);
<a name="l00081"></a>00081   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00374.html#2221c10d3c4cca44e82c5ef70e4e1cbd">FindCell</a>(<span class="keywordtype">double</span> x[3], <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *cell, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *gencell,
<a name="l00082"></a>00082                      <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <span class="keywordtype">double</span> tol2, <span class="keywordtype">int</span>&amp; subId, 
<a name="l00083"></a>00083                      <span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> *weights);
<a name="l00084"></a>00084   <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *<a class="code" href="a00374.html#2237e772166dbbfb6421ee2e8f4492d1">FindAndGetCell</a>(<span class="keywordtype">double</span> x[3], <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *cell, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, 
<a name="l00085"></a>00085                           <span class="keywordtype">double</span> tol2, <span class="keywordtype">int</span>&amp; subId, <span class="keywordtype">double</span> pcoords[3],
<a name="l00086"></a>00086                           <span class="keywordtype">double</span> *weights);
<a name="l00087"></a>00087   <span class="keywordtype">int</span> <a class="code" href="a00374.html#b28fa53d04647bf06d549b5b7c331462">GetCellType</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId);
<a name="l00088"></a><a class="code" href="a01460.html#d3cf14e7cf1fe9771b671a531dd8f1f0">00088</a>   <span class="keywordtype">void</span> <a class="code" href="a00374.html#b4d677c257a58e4eb4a80757f9b371ea">GetCellPoints</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *ptIds)
<a name="l00089"></a>00089     {<a class="code" href="a01624.html#4e76a1d37c32ac11b92bb0fb6ffcb862">vtkStructuredData::GetCellPoints</a>(cellId,ptIds,this-&gt;DataDescription,
<a name="l00090"></a>00090                                       this-&gt;Dimensions);}
<a name="l00091"></a><a class="code" href="a01460.html#4aa6ac3fd5d716b7d45fab38f69efe25">00091</a>   <span class="keywordtype">void</span> <a class="code" href="a00374.html#36d1d8f67ad67adf4d1a9cfb30dade49">GetPointCells</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> ptId, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cellIds)
<a name="l00092"></a>00092     {<a class="code" href="a01624.html#d2b062274df45ed1263b54257ee0f9c9">vtkStructuredData::GetPointCells</a>(ptId,cellIds,this-&gt;Dimensions);}
<a name="l00093"></a>00093   <span class="keywordtype">void</span> <a class="code" href="a00374.html#261a4f32cd2f8ff336c2d85cc33d21ae">ComputeBounds</a>();
<a name="l00094"></a><a class="code" href="a01460.html#3c399edb702d7d39edd48b64241ef696">00094</a>   <span class="keywordtype">int</span> <a class="code" href="a00374.html#e0749b27b9429010617f21932a1313fd">GetMaxCellSize</a>() {<span class="keywordflow">return</span> 8;}; <span class="comment">//voxel is the largest</span>
<a name="l00095"></a>00095   <span class="keywordtype">void</span> <a class="code" href="a00374.html#e1ba413c15802ef50d9b1955a66521e4">GetCellNeighbors</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *ptIds,
<a name="l00096"></a>00096                         <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cellIds);
<a name="l00098"></a>00098 
<a name="l00100"></a>00100 
<a name="l00102"></a>00102   <span class="keywordtype">void</span> SetDimensions(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">int</span> k);
<a name="l00103"></a>00103   <span class="keywordtype">void</span> SetDimensions(<span class="keywordtype">int</span> dim[3]);
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00108"></a>00108   vtkGetVectorMacro(Dimensions,<span class="keywordtype">int</span>,3);
<a name="l00110"></a>00110 
<a name="l00112"></a>00112   <span class="keywordtype">int</span> GetDataDimension();
<a name="l00113"></a>00113 
<a name="l00119"></a>00119   <span class="keywordtype">int</span> ComputeStructuredCoordinates(<span class="keywordtype">double</span> x[3], <span class="keywordtype">int</span> ijk[3], <span class="keywordtype">double</span> pcoords[3]);
<a name="l00120"></a>00120 
<a name="l00123"></a>00123   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> ComputePointId(<span class="keywordtype">int</span> ijk[3]);
<a name="l00124"></a>00124 
<a name="l00127"></a>00127   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> ComputeCellId(<span class="keywordtype">int</span> ijk[3]);
<a name="l00128"></a>00128 
<a name="l00130"></a>00130 
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetXCoordinates(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>*);
<a name="l00132"></a>00132   vtkGetObjectMacro(XCoordinates,<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>);
<a name="l00134"></a>00134 
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetYCoordinates(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>*);
<a name="l00138"></a>00138   vtkGetObjectMacro(YCoordinates,<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>);
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetZCoordinates(<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>*);
<a name="l00144"></a>00144   vtkGetObjectMacro(ZCoordinates,<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>);
<a name="l00146"></a>00146 
<a name="l00148"></a>00148 
<a name="l00151"></a>00151   <span class="keywordtype">void</span> SetExtent(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>[6]);
<a name="l00152"></a>00152   <span class="keywordtype">void</span> SetExtent(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> y2, <span class="keywordtype">int</span> z1, <span class="keywordtype">int</span> z2);
<a name="l00153"></a>00153   vtkGetVector6Macro(Extent, <span class="keywordtype">int</span>);
<a name="l00155"></a>00155 
<a name="l00161"></a>00161   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00374.html#ee582232dad64e0c3abb88ddc1b1a3c8">GetActualMemorySize</a>();
<a name="l00162"></a>00162 
<a name="l00164"></a>00164 
<a name="l00165"></a>00165   <span class="keywordtype">void</span> <a class="code" href="a00374.html#e4a9b08662d920f454501a36f71ad1a5">ShallowCopy</a>(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *src);  
<a name="l00166"></a>00166   <span class="keywordtype">void</span> <a class="code" href="a00374.html#ded3bdeaa9acf491b4c2fb0be9be298d">DeepCopy</a>(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *src);
<a name="l00168"></a>00168 
<a name="l00170"></a><a class="code" href="a01460.html#0a5d2448daead7ffca73d0d56ee8cd7c">00170</a>   <span class="keywordtype">int</span> <a class="code" href="a00362.html#e9d129f8fc75eb04d67d6d805dde6763">GetExtentType</a>() { <span class="keywordflow">return</span> <a class="code" href="a02221.html#509b2bf75060bd01efde76343165347d">VTK_3D_EXTENT</a>; };
<a name="l00171"></a>00171 
<a name="l00175"></a>00175   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00362.html#46a86e4758cbba177a827e4abd93cae9">Crop</a>();
<a name="l00176"></a>00176 
<a name="l00177"></a>00177   <span class="comment">//BTX</span>
<a name="l00179"></a>00179 <span class="comment"></span>
<a name="l00180"></a>00180   <span class="keyword">static</span> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>* <a class="code" href="a00374.html#1f2fa3ed6b77868bf5a814b0dafd3706">GetData</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="l00181"></a>00181   <span class="keyword">static</span> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>* <a class="code" href="a00374.html#1f2fa3ed6b77868bf5a814b0dafd3706">GetData</a>(<a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* v, <span class="keywordtype">int</span> i=0);
<a name="l00182"></a>00182   <span class="comment">//ETX</span>
<a name="l00184"></a>00184 <span class="comment"></span>
<a name="l00185"></a>00185 <span class="keyword">protected</span>:
<a name="l00186"></a>00186   <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>();
<a name="l00187"></a>00187   ~<a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>();
<a name="l00188"></a>00188 
<a name="l00189"></a>00189   <span class="comment">// for the GetCell method</span>
<a name="l00190"></a><a class="code" href="a01460.html#97d82ccf5efb90fd060cbf0902aa9f1e">00190</a>   <a class="code" href="a01821.html" title="a cell that represents a 3D point">vtkVertex</a> *Vertex;
<a name="l00191"></a><a class="code" href="a01460.html#8beba4e42c19b29fe8346c2a14d49701">00191</a>   <a class="code" href="a00960.html" title="cell represents a 1D line">vtkLine</a> *Line;
<a name="l00192"></a><a class="code" href="a01460.html#9d0d9a553a08c063609620001d811941">00192</a>   <a class="code" href="a01221.html" title="a cell that represents an orthogonal quadrilateral">vtkPixel</a> *Pixel;
<a name="l00193"></a><a class="code" href="a01460.html#4d4196f59cb9cb4147ee3b16eba32552">00193</a>   <a class="code" href="a01859.html" title="a cell that represents a 3D orthogonal parallelepiped">vtkVoxel</a> *Voxel;
<a name="l00194"></a>00194   
<a name="l00195"></a><a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">00195</a>   <span class="keywordtype">int</span> Dimensions[3];
<a name="l00196"></a><a class="code" href="a01460.html#2e77dafe34b46b663ecc89b715bb7a27">00196</a>   <span class="keywordtype">int</span> DataDescription;
<a name="l00197"></a>00197 
<a name="l00198"></a><a class="code" href="a01460.html#3e6b3c11a5408b70447aa298813ded99">00198</a>   <span class="keywordtype">int</span> Extent[6];
<a name="l00199"></a>00199 
<a name="l00200"></a><a class="code" href="a01460.html#71faa2e4cbcb78383a6303aea4e27f0c">00200</a>   <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *XCoordinates;
<a name="l00201"></a><a class="code" href="a01460.html#60e532d4c516a9bc1d7168855579c9b4">00201</a>   <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *YCoordinates;
<a name="l00202"></a><a class="code" href="a01460.html#bc3876a902d765fab428c5488110e31e">00202</a>   <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *ZCoordinates;
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   <span class="comment">// Hang on to some space for returning points when GetPoint(id) is called.</span>
<a name="l00205"></a><a class="code" href="a01460.html#c5d7e0e974ea17d96db0db343368b8c7">00205</a>   <span class="keywordtype">double</span> PointReturn[3];
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="keyword">private</span>:
<a name="l00209"></a>00209   VTK_LEGACY(<span class="keywordtype">void</span> <a class="code" href="a00374.html#e1ba413c15802ef50d9b1955a66521e4">GetCellNeighbors</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>&amp; ptIds, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>&amp; cellIds));
<a name="l00210"></a>00210 <span class="keyword">private</span>:
<a name="l00211"></a>00211   <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>(<span class="keyword">const</span> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00212"></a>00212   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00213"></a>00213 };
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00216"></a><a class="code" href="a01460.html#30758da137568363eaa5c71388490fcd">00216</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01460.html#30758da137568363eaa5c71388490fcd">vtkRectilinearGrid::GetNumberOfCells</a>() 
<a name="l00217"></a>00217 {
<a name="l00218"></a>00218   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> nCells=1;
<a name="l00219"></a>00219   <span class="keywordtype">int</span> i;
<a name="l00220"></a>00220 
<a name="l00221"></a>00221   <span class="keywordflow">for</span> (i=0; i&lt;3; i++)
<a name="l00222"></a>00222     {
<a name="l00223"></a>00223     <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[i] &lt;= 0)
<a name="l00224"></a>00224       {
<a name="l00225"></a>00225       <span class="keywordflow">return</span> 0;
<a name="l00226"></a>00226       }
<a name="l00227"></a>00227     <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[i] &gt; 1)
<a name="l00228"></a>00228       {
<a name="l00229"></a>00229       nCells *= (this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[i]-1);
<a name="l00230"></a>00230       }
<a name="l00231"></a>00231     }
<a name="l00232"></a>00232 
<a name="l00233"></a>00233   <span class="keywordflow">return</span> nCells;
<a name="l00234"></a>00234 }
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00237"></a><a class="code" href="a01460.html#cdbbbf71a289097caf5fae746b6571d0">00237</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01460.html#cdbbbf71a289097caf5fae746b6571d0">vtkRectilinearGrid::GetNumberOfPoints</a>()
<a name="l00238"></a>00238 {
<a name="l00239"></a>00239   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[0]*this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[1]*this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>[2];
<a name="l00240"></a>00240 }
<a name="l00241"></a>00241 
<a name="l00242"></a>00242 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00243"></a><a class="code" href="a01460.html#e40e21dd80ad0478ce22408b77e46ca3">00243</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01460.html#e40e21dd80ad0478ce22408b77e46ca3">vtkRectilinearGrid::GetDataDimension</a>()
<a name="l00244"></a>00244 {
<a name="l00245"></a>00245   <span class="keywordflow">return</span> <a class="code" href="a01624.html#8092295265c02b00ab80a1ec707b0731">vtkStructuredData::GetDataDimension</a>(this-&gt;<a class="code" href="a01460.html#2e77dafe34b46b663ecc89b715bb7a27">DataDescription</a>);
<a name="l00246"></a>00246 }
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00249"></a><a class="code" href="a01460.html#a60322b1f9335d660023ccbaee00dad4">00249</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01460.html#a60322b1f9335d660023ccbaee00dad4">vtkRectilinearGrid::ComputePointId</a>(<span class="keywordtype">int</span> ijk[3])
<a name="l00250"></a>00250 {
<a name="l00251"></a>00251   <span class="keywordflow">return</span> <a class="code" href="a01624.html#8e256019c315c3f1ba3de7c34ce7e016">vtkStructuredData::ComputePointId</a>(this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>,ijk);
<a name="l00252"></a>00252 }
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00255"></a><a class="code" href="a01460.html#478019f1b500a6db7339af65d8089414">00255</a> <span class="keyword">inline</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a01460.html#478019f1b500a6db7339af65d8089414">vtkRectilinearGrid::ComputeCellId</a>(<span class="keywordtype">int</span> ijk[3])
<a name="l00256"></a>00256 {
<a name="l00257"></a>00257   <span class="keywordflow">return</span> <a class="code" href="a01624.html#9bb9486010fa7aa394148bdc8b330cc8">vtkStructuredData::ComputeCellId</a>(this-&gt;<a class="code" href="a01460.html#73d75ec2f13fc8e1840ad71026deaf1d">Dimensions</a>,ijk);
<a name="l00258"></a>00258 }
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 <span class="comment">//----------------------------------------------------------------------------</span>
<a name="l00261"></a>00261 <span class="preprocessor">#ifndef VTK_LEGACY_REMOVE</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a01460.html#5ef004814a16baa6d7ad0c837ba6d733">vtkRectilinearGrid::GetCellNeighbors</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, 
<a name="l00263"></a>00263   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>&amp; ptIds, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>&amp; cellIds)
<a name="l00264"></a>00264 {
<a name="l00265"></a>00265   this-&gt;<a class="code" href="a01460.html#5ef004814a16baa6d7ad0c837ba6d733">GetCellNeighbors</a>(cellId, &amp;ptIds, &amp;cellIds);
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267 <span class="preprocessor">#endif</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span>
<a name="l00269"></a>00269 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:17 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>