Sophie

Sophie

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

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/vtkShortArray.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/vtkShortArray.h</h1><a href="a02125.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: vtkShortArray.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="l00026"></a>00026 <span class="preprocessor">#ifndef __vtkShortArray_h</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define __vtkShortArray_h</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="comment">// Tell the template header how to give our superclass a DLL interface.</span>
<a name="l00030"></a>00030 <span class="preprocessor">#if !defined(__vtkShortArray_cxx)</span>
<a name="l00031"></a><a class="code" href="a02125.html#a276a7d042ddd61dda514b71cb5c0b80">00031</a> <span class="preprocessor"></span><span class="preprocessor"># define VTK_DATA_ARRAY_TEMPLATE_TYPE short</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02005.html">vtkDataArray.h</a>"</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="a02009.html">vtkDataArrayTemplate.h</a>"</span> <span class="comment">// Real Superclass</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="comment">// Fake the superclass for the wrappers.</span>
<a name="l00038"></a><a class="code" href="a02125.html#a36fc55274dde79398d335bc11db90c3">00038</a> <span class="preprocessor">#define vtkDataArray vtkDataArrayTemplate&lt;short&gt;</span>
<a name="l00039"></a><a class="code" href="a01541.html">00039</a> <span class="preprocessor"></span><span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a> : <span class="keyword">public</span> <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>
<a name="l00040"></a>00040 #undef <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00043"></a>00043   <span class="keyword">static</span> <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00044"></a><a class="code" href="a01541.html#62c713861bc9ac05e40bf774b0b7a9ea">00044</a>   vtkTypeRevisionMacro(<a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>,<a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>);
<a name="l00045"></a>00045   <span class="keywordtype">void</span> <a class="code" href="a00356.html#ad0e8ab37eacfb957845c1ee962edc6b">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>00048 
<a name="l00049"></a><a class="code" href="a01541.html#aa666fa59f6da25954fdf495b589474a">00049</a>   <span class="keywordtype">int</span> <a class="code" href="a00081.html#d34364f5fcbbe55c3c70434376b4f081">GetDataType</a>()
<a name="l00050"></a>00050     { <span class="keywordflow">return</span> <a class="code" href="a02149.html#16468f12840502cb95648b1299f7f26e">VTK_SHORT</a>; }
<a name="l00052"></a>00052 
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="a01541.html#5402af9acad4c2eb9b3d9d468001c4e7">00055</a>   <span class="keywordtype">void</span> GetTupleValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> i, <span class="keywordtype">short</span>* tuple)
<a name="l00056"></a>00056     { this-&gt;RealSuperclass::GetTupleValue(i, tuple); }
<a name="l00058"></a>00058 
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="a01541.html#8627dab164d3a564b1b6617690c87b6e">00061</a>   <span class="keywordtype">void</span> SetTupleValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> i, <span class="keyword">const</span> <span class="keywordtype">short</span>* tuple)
<a name="l00062"></a>00062     { this-&gt;RealSuperclass::SetTupleValue(i, tuple); }
<a name="l00064"></a>00064 
<a name="l00066"></a>00066 
<a name="l00068"></a><a class="code" href="a01541.html#76f616f5b354d31af4ba4188a79598a7">00068</a>   <span class="keywordtype">void</span> InsertTupleValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> i, <span class="keyword">const</span> <span class="keywordtype">short</span>* tuple)
<a name="l00069"></a>00069     { this-&gt;RealSuperclass::InsertTupleValue(i, tuple); }
<a name="l00071"></a>00071 
<a name="l00073"></a>00073 
<a name="l00075"></a><a class="code" href="a01541.html#ded6bef0b1ca6ae472f142d146f27295">00075</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> InsertNextTupleValue(<span class="keyword">const</span> <span class="keywordtype">short</span>* tuple)
<a name="l00076"></a>00076     { <span class="keywordflow">return</span> this-&gt;RealSuperclass::InsertNextTupleValue(tuple); }
<a name="l00078"></a>00078 
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="a01541.html#238ccc802adaaedd2badab5dd7392a3b">00081</a>   <span class="keywordtype">short</span> GetValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>)
<a name="l00082"></a>00082     { <span class="keywordflow">return</span> this-&gt;RealSuperclass::GetValue(<span class="keywordtype">id</span>); }
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00088"></a><a class="code" href="a01541.html#21956de034b0a0dd5c50ba863a7e4806">00088</a>   <span class="keywordtype">void</span> SetValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, <span class="keywordtype">short</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>)
<a name="l00089"></a>00089     { this-&gt;RealSuperclass::SetValue(<span class="keywordtype">id</span>, value); }
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00096"></a><a class="code" href="a01541.html#81249e1d68377f85e40ed960cd530ca4">00096</a>   <span class="keywordtype">void</span> SetNumberOfValues(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> number)
<a name="l00097"></a>00097     { this-&gt;RealSuperclass::SetNumberOfValues(number); }
<a name="l00099"></a>00099 
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="a01541.html#297077ec8941ab0ed60e83a03225c6a5">00102</a>   <span class="keywordtype">void</span> InsertValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, <span class="keywordtype">short</span> f)
<a name="l00103"></a>00103     { this-&gt;RealSuperclass::InsertValue(<span class="keywordtype">id</span>, f); }
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="a01541.html#406c601a76e61790e547ed93993def34">00109</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> InsertNextValue(<span class="keywordtype">short</span> f)
<a name="l00110"></a>00110     { <span class="keywordflow">return</span> this-&gt;RealSuperclass::InsertNextValue(f); }
<a name="l00112"></a>00112 
<a name="l00114"></a>00114 
<a name="l00117"></a><a class="code" href="a01541.html#bdf8eb92c1f87617358eb8337f1a875a">00117</a>   <span class="keywordtype">short</span>* WritePointer(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> number)
<a name="l00118"></a>00118     { <span class="keywordflow">return</span> this-&gt;RealSuperclass::WritePointer(<span class="keywordtype">id</span>, number); }
<a name="l00120"></a>00120 
<a name="l00122"></a>00122 
<a name="l00124"></a><a class="code" href="a01541.html#774fdbda0dcbc6eea1a9f2043cee1fc3">00124</a>   <span class="keywordtype">short</span>* GetPointer(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>)
<a name="l00125"></a>00125     { <span class="keywordflow">return</span> this-&gt;RealSuperclass::GetPointer(<span class="keywordtype">id</span>); }
<a name="l00127"></a>00127 
<a name="l00129"></a>00129 
<a name="l00135"></a><a class="code" href="a01541.html#6364ded1bef74eea87eef649cb2cd8de">00135</a>   <span class="keywordtype">void</span> SetArray(<span class="keywordtype">short</span>* array, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <span class="keywordtype">int</span> <a class="code" href="a02161.html#d6bef997add92b8246718df030c029c8">save</a>)
<a name="l00136"></a>00136     { this-&gt;RealSuperclass::SetArray(array, size, save); }
<a name="l00137"></a><a class="code" href="a01541.html#c2ad4d822e8ce5448ae1050a96c5bb1c">00137</a>   <span class="keywordtype">void</span> SetArray(<span class="keywordtype">short</span>* array, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <span class="keywordtype">int</span> <a class="code" href="a02161.html#d6bef997add92b8246718df030c029c8">save</a>, <span class="keywordtype">int</span> deleteMethod)
<a name="l00138"></a>00138     { this-&gt;RealSuperclass::SetArray(array, size, save, deleteMethod); }
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 <span class="keyword">protected</span>:
<a name="l00142"></a>00142   <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> numComp=1);
<a name="l00143"></a>00143   ~<a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>();
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="keyword">private</span>:
<a name="l00146"></a>00146   <span class="comment">//BTX</span>
<a name="l00147"></a>00147   <span class="keyword">typedef</span> <a class="code" href="a00360.html" title="Implementation template for vtkDataArray.">vtkDataArrayTemplate&lt;short&gt;</a> RealSuperclass;
<a name="l00148"></a>00148   <span class="comment">//ETX</span>
<a name="l00149"></a>00149   <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>(<span class="keyword">const</span> <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00150"></a>00150   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01541.html" title="dynamic, self-adjusting array of short">vtkShortArray</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00151"></a>00151 };
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 <span class="preprocessor">#endif</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>