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