VTK
dox/Common/Core/vtkIntArray.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkIntArray.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 =========================================================================*/
00029 #ifndef __vtkIntArray_h
00030 #define __vtkIntArray_h
00031 
00032 // Tell the template header how to give our superclass a DLL interface.
00033 #if !defined(__vtkIntArray_cxx) && (defined(VTK_USE_64BIT_IDS) || !defined(__vtkIdTypeArray_h))
00034 # define VTK_DATA_ARRAY_TEMPLATE_TYPE int
00035 #endif
00036 
00037 #include "vtkCommonCoreModule.h" // For export macro
00038 #include "vtkDataArray.h"
00039 #include "vtkDataArrayTemplate.h" // Real Superclass
00040 
00041 // Fake the superclass for the wrappers.
00042 #ifndef __WRAP__
00043 #define vtkDataArray vtkDataArrayTemplate<int>
00044 #endif
00045 class VTKCOMMONCORE_EXPORT vtkIntArray : public vtkDataArray
00046 #ifndef __WRAP__
00047 #undef vtkDataArray
00048 #endif
00049 {
00050 public:
00051   static vtkIntArray* New();
00052   vtkTypeMacro(vtkIntArray,vtkDataArray);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00055   // This macro expands to the set of method declarations that
00056   // make up the interface of vtkDataArrayTemplate, which is ignored
00057   // by the wrappers.
00058 #ifdef __WRAP__
00059   vtkCreateWrappedArrayInterface(int);
00060 #endif
00061 
00063   static int GetDataTypeValueMin() { return VTK_INT_MIN; }
00064 
00066   static int GetDataTypeValueMax() { return VTK_INT_MAX; }
00067 
00068 protected:
00069   vtkIntArray();
00070   ~vtkIntArray();
00071 
00072 private:
00073   //BTX
00074   typedef vtkDataArrayTemplate<int> RealSuperclass;
00075   //ETX
00076   vtkIntArray(const vtkIntArray&);  // Not implemented.
00077   void operator=(const vtkIntArray&);  // Not implemented.
00078 };
00079 
00080 #endif