VTK
dox/Common/Core/vtkDoubleArray.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDoubleArray.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 __vtkDoubleArray_h
00030 #define __vtkDoubleArray_h
00031 
00032 // Tell the template header how to give our superclass a DLL interface.
00033 #if !defined(__vtkDoubleArray_cxx)
00034 # define VTK_DATA_ARRAY_TEMPLATE_TYPE double
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<double>
00044 #endif
00045 class VTKCOMMONCORE_EXPORT vtkDoubleArray : public vtkDataArray
00046 #ifndef __WRAP__
00047 #undef vtkDataArray
00048 #endif
00049 {
00050 public:
00051   static vtkDoubleArray* New();
00052   vtkTypeMacro(vtkDoubleArray,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(double);
00060 #endif
00061 
00063   static double GetDataTypeValueMin() { return VTK_DOUBLE_MIN; }
00064 
00066   static double GetDataTypeValueMax() { return VTK_DOUBLE_MAX; }
00067 
00068 protected:
00069   vtkDoubleArray();
00070   ~vtkDoubleArray();
00071 
00072 private:
00073   //BTX
00074   typedef vtkDataArrayTemplate<double> RealSuperclass;
00075   //ETX
00076   vtkDoubleArray(const vtkDoubleArray&);  // Not implemented.
00077   void operator=(const vtkDoubleArray&);  // Not implemented.
00078 };
00079 
00080 #endif