Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
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 "vtkDataArray.h"
00038 #include "vtkDataArrayTemplate.h" // Real Superclass
00039 
00040 // Fake the superclass for the wrappers.
00041 #define vtkDataArray vtkDataArrayTemplate<double>
00042 class VTK_COMMON_EXPORT vtkDoubleArray : public vtkDataArray
00043 #undef vtkDataArray
00044 {
00045 public:
00046   static vtkDoubleArray* New();
00047   vtkTypeRevisionMacro(vtkDoubleArray,vtkDataArray);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00052   int GetDataType()
00053     { return VTK_DOUBLE; }
00055 
00057 
00058   void GetTupleValue(vtkIdType i, double* tuple)
00059     { this->RealSuperclass::GetTupleValue(i, tuple); }
00061 
00063 
00064   void SetTupleValue(vtkIdType i, const double* tuple)
00065     { this->RealSuperclass::SetTupleValue(i, tuple); }
00067 
00069 
00071   void InsertTupleValue(vtkIdType i, const double* tuple)
00072     { this->RealSuperclass::InsertTupleValue(i, tuple); }
00074 
00076 
00078   vtkIdType InsertNextTupleValue(const double* tuple)
00079     { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00081 
00083 
00084   double GetValue(vtkIdType id)
00085     { return this->RealSuperclass::GetValue(id); }
00087 
00089 
00091   void SetValue(vtkIdType id, double value)
00092     { this->RealSuperclass::SetValue(id, value); }
00094 
00096 
00099   void SetNumberOfValues(vtkIdType number)
00100     { this->RealSuperclass::SetNumberOfValues(number); }
00102 
00104 
00105   void InsertValue(vtkIdType id, double f)
00106     { this->RealSuperclass::InsertValue(id, f); }
00108 
00110 
00112   vtkIdType InsertNextValue(double f)
00113     { return this->RealSuperclass::InsertNextValue(f); }
00115 
00117 
00120   double* WritePointer(vtkIdType id, vtkIdType number)
00121     { return this->RealSuperclass::WritePointer(id, number); }
00123 
00125 
00127   double* GetPointer(vtkIdType id)
00128     { return this->RealSuperclass::GetPointer(id); }
00130 
00132 
00138   void SetArray(double* array, vtkIdType size, int save)
00139     { this->RealSuperclass::SetArray(array, size, save); }
00141 
00142 protected:
00143   vtkDoubleArray(vtkIdType numComp=1);
00144   ~vtkDoubleArray();
00145 
00146 private:
00147   //BTX
00148   typedef vtkDataArrayTemplate<double> RealSuperclass;
00149   //ETX
00150   vtkDoubleArray(const vtkDoubleArray&);  // Not implemented.
00151   void operator=(const vtkDoubleArray&);  // Not implemented.
00152 };
00153 
00154 #endif

Generated on Mon Jan 21 23:07:16 2008 for VTK by  doxygen 1.4.3-20050530