dox/Common/vtkDoubleArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00029
#ifndef __vtkDoubleArray_h
00030
#define __vtkDoubleArray_h
00031
00032
00033
#if !defined(__vtkDoubleArray_cxx)
00034 # define VTK_DATA_ARRAY_TEMPLATE_TYPE double
00035
#endif
00036
00037
#include "vtkDataArray.h"
00038
#include "vtkDataArrayTemplate.h"
00039
00040
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 double GetValue(
vtkIdType id)
00059 {
return this->RealSuperclass::GetValue(
id); }
00061
00063
00065 void SetValue(
vtkIdType id,
double value)
00066 { this->RealSuperclass::SetValue(
id, value); }
00068
00070
00073 void SetNumberOfValues(
vtkIdType number)
00074 { this->RealSuperclass::SetNumberOfValues(number); }
00076
00078
00079 void InsertValue(
vtkIdType id,
double f)
00080 { this->RealSuperclass::InsertValue(
id, f); }
00082
00084
00086 vtkIdType InsertNextValue(
double f)
00087 {
return this->RealSuperclass::InsertNextValue(f); }
00089
00091
00094 double* WritePointer(
vtkIdType id,
vtkIdType number)
00095 {
return this->RealSuperclass::WritePointer(
id, number); }
00097
00099
00101 double* GetPointer(
vtkIdType id)
00102 {
return this->RealSuperclass::GetPointer(
id); }
00104
00106
00112 void SetArray(
double* array,
vtkIdType size,
int save)
00113 { this->RealSuperclass::SetArray(array, size, save); }
00115
00116
protected:
00117 vtkDoubleArray(
vtkIdType numComp=1);
00118 ~vtkDoubleArray();
00119
00120
private:
00121
00122
typedef vtkDataArrayTemplate<double> RealSuperclass;
00123
00124 vtkDoubleArray(
const vtkDoubleArray&);
00125
void operator=(
const vtkDoubleArray&);
00126 };
00127
00128
#endif