20 #ifndef vtkTestDataArray_h
21 #define vtkTestDataArray_h
23 #include "vtkCommonCoreModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
28 template <
class ArrayT>
54 this->Array->SetTypedTuple(tupleIdx, tuple);
58 this->Array->SetTypedTuple(tupleIdx, tuple);
63 return this->Array->GetTypedComponent(tupleIdx, compIdx);
67 this->Array->SetTypedComponent(tupleIdx, compIdx, value);
72 return this->Array->GetVoidPointer(valueIdx);
void * GetVoidPointer(vtkIdType valueIdx) override
Return a void pointer.
ValueType GetTypedComponent(vtkIdType tupleIdx, int compIdx) const
static vtkTestDataArray< ArrayType > * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTypedTuple(vtkIdType tupleIdx, const ValueType *tuple)
Base interface for all typed vtkDataArray subclasses.
void SetValue(vtkIdType valueIdx, ValueType value)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTestDataArray< ArrayT > SelfType
ArrayType::ValueType ValueType
ValueType GetValue(vtkIdType valueIdx) const
a simple class to control print indentation
#define VTK_STANDARD_NEW_BODY(thisClass)
void GetTypedTuple(vtkIdType tupleIdx, ValueType *tuple) const
vtkAbstractTemplateTypeMacro(SelfType, GenericDataArrayType)
bool ReallocateTuples(vtkIdType numTuples)
void SetTypedComponent(vtkIdType tupleIdx, int compIdx, ValueType value)
An implementation of vtkGenericDataArray for testing fallback algorithms.
vtkGenericDataArray< vtkTestDataArray< ArrayT >, ValueType > GenericDataArrayType
vtkAOSArrayNewInstanceMacro(SelfType)
~vtkTestDataArray() override
bool AllocateTuples(vtkIdType numTuples)