99 #ifndef vtkDataArrayAccessor_h 100 #define vtkDataArrayAccessor_h 103 template <
typename ArrayT>
107 typedef typename ArrayType::ValueType
APIType;
115 return this->Array->GetTypedComponent(tupleIdx, compIdx);
120 this->Array->SetTypedComponent(tupleIdx, compIdx, val);
125 this->Array->InsertTypedComponent(tupleIdx, compIdx, val);
130 this->Array->GetTypedTuple(tupleIdx, tuple);
135 this->Array->SetTypedTuple(tupleIdx, tuple);
140 this->Array->InsertTypedTuple(tupleIdx, tuple);
172 this->Array->
GetTuple(tupleIdx, tuple);
177 this->Array->
SetTuple(tupleIdx, tuple);
186 #endif // vtkDataArrayAccessor_h void Set(vtkIdType tupleIdx, int compIdx, APIType val) const
void Insert(vtkIdType tupleIdx, int compIdx, APIType val) const
void Set(vtkIdType tupleIdx, int compIdx, APIType val) const
void Insert(vtkIdType tupleIdx, const APIType *tuple) const
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
void Insert(vtkIdType tupleIdx, const APIType *tuple) const
void Insert(vtkIdType tupleIdx, int compIdx, APIType val) const
void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array...
vtkDataArrayAccessor(ArrayType *array)
void Get(vtkIdType tupleIdx, APIType *tuple) const
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
APIType Get(vtkIdType tupleIdx, int compIdx) const
virtual void SetComponent(vtkIdType tupleIdx, int compIdx, double value)
Set the data component at the location specified by tupleIdx and compIdx to value.
abstract superclass for arrays of numeric data
void Get(vtkIdType tupleIdx, APIType *tuple) const
APIType Get(vtkIdType tupleIdx, int compIdx) const
void Set(vtkIdType tupleIdx, const APIType *tuple) const
ArrayType::ValueType APIType
virtual void InsertComponent(vtkIdType tupleIdx, int compIdx, double value)
Insert value at the location specified by tupleIdx and compIdx.
vtkDataArrayAccessor(ArrayType *array)
virtual double GetComponent(vtkIdType tupleIdx, int compIdx)
Return the data component at the location specified by tupleIdx and compIdx.
Efficient templated access to vtkDataArray.
void Set(vtkIdType tupleIdx, const APIType *tuple) const