Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkDoubleArray.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDoubleArray.h,v $
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 =========================================================================*/
00042 #ifndef __vtkDoubleArray_h
00043 #define __vtkDoubleArray_h
00044 
00045 // Tell the template header how to give our superclass a DLL interface.
00046 #if !defined(__vtkDoubleArray_cxx)
00047 # define VTK_DATA_ARRAY_TEMPLATE_TYPE double
00048 #endif
00049 
00050 #include "vtkDataArray.h"
00051 #include "vtkDataArrayTemplate.h" // Real Superclass
00052 
00053 // Fake the superclass for the wrappers.
00054 #define vtkDataArray vtkDataArrayTemplate<double>
00055 class VTK_COMMON_EXPORT vtkDoubleArray : public vtkDataArray
00056 #undef vtkDataArray
00057 {
00058 public:
00059   static vtkDoubleArray* New();
00060   vtkTypeRevisionMacro(vtkDoubleArray,vtkDataArray);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064 
00065   int GetDataType()
00066     { return VTK_DOUBLE; }
00068 
00070 
00071   double GetValue(vtkIdType id)
00072     { return this->RealSuperclass::GetValue(id); }
00074 
00076 
00078   void SetValue(vtkIdType id, double value)
00079     { this->RealSuperclass::SetValue(id, value); }
00081 
00083 
00086   void SetNumberOfValues(vtkIdType number)
00087     { this->RealSuperclass::SetNumberOfValues(number); }
00089 
00091 
00092   void InsertValue(vtkIdType id, double f)
00093     { this->RealSuperclass::InsertValue(id, f); }
00095 
00097 
00099   vtkIdType InsertNextValue(double f)
00100     { return this->RealSuperclass::InsertNextValue(f); }
00102 
00104 
00107   double* WritePointer(vtkIdType id, vtkIdType number)
00108     { return this->RealSuperclass::WritePointer(id, number); }
00110 
00112 
00114   double* GetPointer(vtkIdType id)
00115     { return this->RealSuperclass::GetPointer(id); }
00117 
00119 
00125   void SetArray(double* array, vtkIdType size, int save)
00126     { this->RealSuperclass::SetArray(array, size, save); }
00128 
00129 protected:
00130   vtkDoubleArray(vtkIdType numComp=1);
00131   ~vtkDoubleArray();
00132 
00133 private:
00134   //BTX
00135   typedef vtkDataArrayTemplate<double> RealSuperclass;
00136   //ETX
00137   vtkDoubleArray(const vtkDoubleArray&);  // Not implemented.
00138   void operator=(const vtkDoubleArray&);  // Not implemented.
00139 };
00140 
00141 #endif