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