Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkUnsignedLongArray.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnsignedLongArray.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef __vtkUnsignedLongArray_h
00027 #define __vtkUnsignedLongArray_h
00028 
00029 // Tell the template header how to give our superclass a DLL interface.
00030 #if !defined(__vtkUnsignedLongArray_cxx)
00031 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned long
00032 #endif
00033 
00034 #include "vtkDataArray.h"
00035 #include "vtkDataArrayTemplate.h" // Real Superclass
00036 
00037 // Fake the superclass for the wrappers.
00038 #define vtkDataArray vtkDataArrayTemplate<unsigned long>
00039 class VTK_COMMON_EXPORT vtkUnsignedLongArray : public vtkDataArray
00040 #undef vtkDataArray
00041 {
00042 public:
00043   static vtkUnsignedLongArray* New();
00044   vtkTypeRevisionMacro(vtkUnsignedLongArray,vtkDataArray);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   int GetDataType()
00050     { return VTK_UNSIGNED_LONG; }
00052 
00054 
00055   void GetTupleValue(vtkIdType i, unsigned long* tuple)
00056     { this->RealSuperclass::GetTupleValue(i, tuple); }
00058 
00060 
00061   void SetTupleValue(vtkIdType i, const unsigned long* tuple)
00062     { this->RealSuperclass::SetTupleValue(i, tuple); }
00064 
00066 
00068   void InsertTupleValue(vtkIdType i, const unsigned long* tuple)
00069     { this->RealSuperclass::InsertTupleValue(i, tuple); }
00071 
00073 
00075   vtkIdType InsertNextTupleValue(const unsigned long* tuple)
00076     { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00078 
00080 
00081   unsigned long GetValue(vtkIdType id)
00082     { return this->RealSuperclass::GetValue(id); }
00084 
00086 
00088   void SetValue(vtkIdType id, unsigned long value)
00089     { this->RealSuperclass::SetValue(id, value); }
00091 
00093 
00096   void SetNumberOfValues(vtkIdType number)
00097     { this->RealSuperclass::SetNumberOfValues(number); }
00099 
00101 
00102   void InsertValue(vtkIdType id, unsigned long f)
00103     { this->RealSuperclass::InsertValue(id, f); }
00105 
00107 
00109   vtkIdType InsertNextValue(unsigned long f)
00110     { return this->RealSuperclass::InsertNextValue(f); }
00112 
00114 
00117   unsigned long* WritePointer(vtkIdType id, vtkIdType number)
00118     { return this->RealSuperclass::WritePointer(id, number); }
00120 
00122 
00124   unsigned long* GetPointer(vtkIdType id)
00125     { return this->RealSuperclass::GetPointer(id); }
00127 
00129 
00135   void SetArray(unsigned long* array, vtkIdType size, int save)
00136     { this->RealSuperclass::SetArray(array, size, save); }
00138 
00139 protected:
00140   vtkUnsignedLongArray(vtkIdType numComp=1);
00141   ~vtkUnsignedLongArray();
00142 
00143 private:
00144   //BTX
00145   typedef vtkDataArrayTemplate<unsigned long> RealSuperclass;
00146   //ETX
00147   vtkUnsignedLongArray(const vtkUnsignedLongArray&);  // Not implemented.
00148   void operator=(const vtkUnsignedLongArray&);  // Not implemented.
00149 };
00150 
00151 #endif

Generated on Mon Jan 21 23:07:18 2008 for VTK by  doxygen 1.4.3-20050530