|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
  100 #ifndef vtkDataArrayAccessor_h 
  101 #define vtkDataArrayAccessor_h 
  106 template <
typename ArrayT>
 
  110   typedef typename ArrayType::ValueType 
APIType;
 
  122     return this->Array->GetTypedComponent(tupleIdx, compIdx);
 
  128     this->Array->SetTypedComponent(tupleIdx, compIdx, val);
 
  134     this->Array->InsertTypedComponent(tupleIdx, compIdx, val);
 
  140     this->Array->GetTypedTuple(tupleIdx, tuple);
 
  146     this->Array->SetTypedTuple(tupleIdx, tuple);
 
  152     this->Array->InsertTypedTuple(tupleIdx, tuple);
 
  194     this->Array->
SetTuple(tupleIdx, tuple);
 
  206 #endif // vtkDataArrayAccessor_h 
  
Efficient templated access to vtkDataArray.
VTK_ALWAYS_INLINE void Insert(vtkIdType tupleIdx, int compIdx, APIType val) const
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
virtual double GetComponent(vtkIdType tupleIdx, int compIdx)
Return the data component at the location specified by tupleIdx and compIdx.
ArrayType::ValueType APIType
abstract superclass for arrays of numeric data
VTK_ALWAYS_INLINE void Set(vtkIdType tupleIdx, int compIdx, APIType val) const
VTK_ALWAYS_INLINE void Get(vtkIdType tupleIdx, APIType *tuple) const
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
vtkDataArrayAccessor(ArrayType *array)
VTK_ALWAYS_INLINE APIType Get(vtkIdType tupleIdx, int compIdx) const
virtual void InsertComponent(vtkIdType tupleIdx, int compIdx, double value)
Insert value at the location specified by tupleIdx and compIdx.
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.
virtual void SetComponent(vtkIdType tupleIdx, int compIdx, double value)
Set the data component at the location specified by tupleIdx and compIdx to value.
VTK_ALWAYS_INLINE void Get(vtkIdType tupleIdx, APIType *tuple) const
VTK_ALWAYS_INLINE APIType Get(vtkIdType tupleIdx, int compIdx) const
VTK_ALWAYS_INLINE void Insert(vtkIdType tupleIdx, int compIdx, APIType val) const
VTK_ALWAYS_INLINE void Set(vtkIdType tupleIdx, const APIType *tuple) const
vtkDataArrayAccessor(ArrayType *array)
VTK_ALWAYS_INLINE void Set(vtkIdType tupleIdx, const APIType *tuple) const
VTK_ALWAYS_INLINE void Set(vtkIdType tupleIdx, int compIdx, APIType val) const
VTK_ALWAYS_INLINE void Insert(vtkIdType tupleIdx, const APIType *tuple) const
VTK_ALWAYS_INLINE void Insert(vtkIdType tupleIdx, const APIType *tuple) const