32 #ifndef vtkTestDataArray_h 
   33 #define vtkTestDataArray_h 
   35 #include "vtkCommonCoreModule.h"  
   38 template <
class ArrayT>
 
   40                                                     typename ArrayT::ValueType>
 
   60   { 
return this->Array->GetValue(valueIdx); }
 
   62   { this->Array->SetValue(valueIdx,value); }
 
   65   { this->Array->SetTypedTuple(tupleIdx,tuple); }
 
   67   { this->Array->SetTypedTuple(tupleIdx,tuple); }
 
   70   { 
return this->Array->GetTypedComponent(tupleIdx,compIdx); }
 
   72   { this->Array->SetTypedComponent(tupleIdx,compIdx,value); }
 
   75   { 
return this->Array->GetVoidPointer(valueIdx); }
 
   82   { 
return this->Array->Allocate(numTuples) != 0; }
 
   84   { 
return this->Array->Allocate(numTuples) != 0; }
 
ValueType GetTypedComponent(vtkIdType tupleIdx, int compIdx) const 
 
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)
 
void * GetVoidPointer(vtkIdType valueIdx)
Return a void pointer. 
 
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 
 
vtkAbstractTemplateTypeMacro(SelfType, GenericDataArrayType) vtkAOSArrayNewInstanceMacro(SelfType) static vtkTestDataArray< ArrayType > *New()
 
void GetTypedTuple(vtkIdType tupleIdx, ValueType *tuple) const 
 
bool ReallocateTuples(vtkIdType numTuples)
 
void SetTypedComponent(vtkIdType tupleIdx, int compIdx, ValueType value)
 
#define VTK_STANDARD_NEW_BODY(thisClass)
 
#define vtkAOSArrayNewInstanceMacro(thisClass)
 
An implementation of vtkGenericDataArray for testing fallback algorithms. 
 
vtkGenericDataArray< vtkTestDataArray< ArrayT >, ValueType > GenericDataArrayType
 
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
 
bool AllocateTuples(vtkIdType numTuples)