34 #ifndef vtkMappedDataArray_h
35 #define vtkMappedDataArray_h
41 template <
class Scalar>
43 vtkTypedDataArray<Scalar> >
99 vtkErrorMacro(<<
"WriteVoidPointer: Method not implemented.");
125 ValueType *TemporaryScalarPointer;
126 size_t TemporaryScalarPointerSize;
130 #include "vtkMappedDataArray.txx"
135 #define vtkMappedDataArrayNewInstanceMacro(thisClass) \
137 vtkObjectBase *NewInstanceInternal() const \
139 if (vtkDataArray *da = \
140 vtkDataArray::CreateDataArray(thisClass::VTK_DATA_TYPE)) \
144 return thisClass::New(); \
150 #define vtkMappedDataArrayTypeMacro(thisClass, superClass) \
151 vtkAbstractTypeMacroWithNewInstanceType(thisClass, superClass, vtkDataArray) \
152 vtkMappedDataArrayNewInstanceMacro(thisClass)
154 #endif //vtkMappedDataArray_h
void PrintSelf(ostream &os, vtkIndent indent)
Provides the equivalent of vtkTypeMacro for use with template classes.
Map non-contiguous data structures into the vtkDataArray API.
Abstract superclass for all arrays.
void ExportToVoidPointer(void *ptr)
vtkVariant GetVariantValue(vtkIdType idx)=0
A atomic type representing the union of many types.
a simple class to control print indentation
void * GetVoidPointer(vtkIdType id)
void DeepCopy(vtkAbstractArray *aa)=0
virtual int GetArrayType()
list of point or cell ids
void * WriteVoidPointer(vtkIdType, vtkIdType)
abstract superclass for arrays of numeric data
Superclass::ValueType ValueType
bool HasStandardMemoryLayout()
Extend vtkDataArray with abstract type-specific API.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output)=0
void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)=0
vtkTypedDataArray< Scalar > Superclass
void SetVariantValue(vtkIdType idx, vtkVariant value)=0
static vtkMappedDataArray< Scalar > * FastDownCast(vtkAbstractArray *source)
void SetVoidArray(void *, vtkIdType, int)