VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkUnsignedShortArray.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 __vtkUnsignedShortArray_h 00027 #define __vtkUnsignedShortArray_h 00028 00029 // Tell the template header how to give our superclass a DLL interface. 00030 #if !defined(__vtkUnsignedShortArray_cxx) 00031 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned short 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 short> 00041 #endif 00042 class VTKCOMMONCORE_EXPORT vtkUnsignedShortArray : public vtkDataArray 00043 #ifndef __WRAP__ 00044 #undef vtkDataArray 00045 #endif 00046 { 00047 public: 00048 static vtkUnsignedShortArray* New(); 00049 vtkTypeMacro(vtkUnsignedShortArray,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 short); 00057 #endif 00058 00060 static unsigned short GetDataTypeValueMin() { return VTK_UNSIGNED_SHORT_MIN; } 00061 00063 static unsigned short GetDataTypeValueMax() { return VTK_UNSIGNED_SHORT_MAX; } 00064 00065 protected: 00066 vtkUnsignedShortArray(); 00067 ~vtkUnsignedShortArray(); 00068 00069 private: 00070 //BTX 00071 typedef vtkDataArrayTemplate<unsigned short> RealSuperclass; 00072 //ETX 00073 vtkUnsignedShortArray(const vtkUnsignedShortArray&); // Not implemented. 00074 void operator=(const vtkUnsignedShortArray&); // Not implemented. 00075 }; 00076 00077 #endif