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

vtkUnsignedIntArray.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnsignedIntArray.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 =========================================================================*/
00039 #ifndef __vtkUnsignedIntArray_h
00040 #define __vtkUnsignedIntArray_h
00041 
00042 // Tell the template header how to give our superclass a DLL interface.
00043 #if !defined(__vtkUnsignedIntArray_cxx)
00044 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned int
00045 #endif
00046 
00047 #include "vtkDataArray.h"
00048 #include "vtkDataArrayTemplate.h" // Real Superclass
00049 
00050 // Fake the superclass for the wrappers.
00051 #define vtkDataArray vtkDataArrayTemplate<unsigned int>
00052 class VTK_COMMON_EXPORT vtkUnsignedIntArray : public vtkDataArray
00053 #undef vtkDataArray
00054 {
00055 public:
00056   static vtkUnsignedIntArray* New();
00057   vtkTypeRevisionMacro(vtkUnsignedIntArray,vtkDataArray);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   int GetDataType()
00063     { return VTK_UNSIGNED_INT; }
00065 
00067 
00068   unsigned int GetValue(vtkIdType id)
00069     { return this->RealSuperclass::GetValue(id); }
00071 
00073 
00075   void SetValue(vtkIdType id, unsigned int value)
00076     { this->RealSuperclass::SetValue(id, value); }
00078 
00080 
00083   void SetNumberOfValues(vtkIdType number)
00084     { this->RealSuperclass::SetNumberOfValues(number); }
00086 
00088 
00089   void InsertValue(vtkIdType id, unsigned int f)
00090     { this->RealSuperclass::InsertValue(id, f); }
00092 
00094 
00096   vtkIdType InsertNextValue(unsigned int f)
00097     { return this->RealSuperclass::InsertNextValue(f); }
00099 
00101 
00104   unsigned int* WritePointer(vtkIdType id, vtkIdType number)
00105     { return this->RealSuperclass::WritePointer(id, number); }
00107 
00109 
00111   unsigned int* GetPointer(vtkIdType id)
00112     { return this->RealSuperclass::GetPointer(id); }
00114 
00116 
00122   void SetArray(unsigned int* array, vtkIdType size, int save)
00123     { this->RealSuperclass::SetArray(array, size, save); }
00125 
00126 protected:
00127   vtkUnsignedIntArray(vtkIdType numComp=1);
00128   ~vtkUnsignedIntArray();
00129 
00130 private:
00131   //BTX
00132   typedef vtkDataArrayTemplate<unsigned int> RealSuperclass;
00133   //ETX
00134   vtkUnsignedIntArray(const vtkUnsignedIntArray&);  // Not implemented.
00135   void operator=(const vtkUnsignedIntArray&);  // Not implemented.
00136 };
00137 
00138 #endif