VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkUnsignedLongArray.h 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 "vtkCommonCoreModule.h" // For export macro 00035 #include "vtkDataArray.h" 00036 #include "vtkDataArrayTemplate.h" // Real Superclass 00037 00038 // Fake the superclass for the wrappers. 00039 #ifndef __WRAP__ 00040 #define vtkDataArray vtkDataArrayTemplate<unsigned long> 00041 #endif 00042 class VTKCOMMONCORE_EXPORT vtkUnsignedLongArray : public vtkDataArray 00043 #ifndef __WRAP__ 00044 #undef vtkDataArray 00045 #endif 00046 { 00047 public: 00048 static vtkUnsignedLongArray* New(); 00049 vtkTypeMacro(vtkUnsignedLongArray,vtkDataArray); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00052 // This macro expands to the set of method declarations that 00053 // make up the interface of vtkDataArrayTemplate, which is ignored 00054 // by the wrappers. 00055 #ifdef __WRAP__ 00056 vtkCreateWrappedArrayInterface(unsigned long); 00057 #endif 00058 00060 static unsigned long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_MIN; } 00061 00063 static unsigned long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_MAX; } 00064 00065 protected: 00066 vtkUnsignedLongArray(); 00067 ~vtkUnsignedLongArray(); 00068 00069 private: 00070 //BTX 00071 typedef vtkDataArrayTemplate<unsigned long> RealSuperclass; 00072 //ETX 00073 vtkUnsignedLongArray(const vtkUnsignedLongArray&); // Not implemented. 00074 void operator=(const vtkUnsignedLongArray&); // Not implemented. 00075 }; 00076 00077 #endif