29 #ifndef vtkPeriodicDataArray_h
30 #define vtkPeriodicDataArray_h
35 template <
class Scalar>
330 virtual void Transform(Scalar* tuple)
const = 0;
332 using Superclass::ComputeFiniteScalarRange;
333 using Superclass::ComputeFiniteVectorRange;
334 using Superclass::ComputeScalarRange;
335 using Superclass::ComputeVectorRange;
375 Scalar* TempScalarArray;
376 double* TempDoubleArray;
380 bool InvalidRange =
true;
381 double PeriodicRange[6];
382 bool InvalidFiniteRange =
true;
383 double PeriodicFiniteRange[6];
386 #include "vtkPeriodicDataArray.txx"
388 #endif // vtkPeriodicDataArray_h
vtkIdType InsertNextValue(Scalar v)
Read only container, not supported.
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
Read only container, not supported.
void RemoveFirstTuple() override
Read only container, not supported.
ValueType GetValue(vtkIdType idx) const
Get value at index idx.
bool ComputeFiniteVectorRange(double range[2]) override
Get the transformed finite range on all components.
Abstract superclass for all arrays.
vtkIdType LookupTypedValue(Scalar value) override
Not implemented.
void DeepCopy(vtkAbstractArray *aa) override
Read only container, not supported.
void InsertValue(vtkIdType idx, Scalar v)
Read only container, not supported.
bool AllocateTuples(vtkIdType numTuples)
Read only container, not supported.
vtkTemplateTypeMacro(vtkPeriodicDataArray< Scalar >, GenericBase)
vtkIdType LookupValue(vtkVariant value) override
Not implemented.
virtual void ComputePeriodicRange(bool finite=false)
Update the transformed periodic range.
void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Read only container, not supported.
void InvalidateRange()
Set the invalid range flag to false.
ValueType GetTypedComponent(vtkIdType tupleIdx, int compIdx) const
Return the requested component of the specified tuple.
Superclass::ValueType ValueType
Base interface for all typed vtkDataArray subclasses.
A atomic type representing the union of many types.
void SetTypedTuple(vtkIdType i, const Scalar *t)
Read only container, not supported.
vtkVariant GetVariantValue(vtkIdType idx) override
Not implemented.
vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source) override
Read only container, error.
void Squeeze() override
No effect.
void Initialize() override
Initialize array with zero values.
void SetNumberOfTuples(vtkIdType number) override
Read only container, not supported.
void InsertTypedTuple(vtkIdType i, const Scalar *t)
Read only container, not supported.
Map native an Array into an angulat periodic array.
void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) override
Read only container, not supported.
void ClearLookup() override
Not implemented.
bool ComputeFiniteScalarRange(double *range) override
Get the finite transformed range by components.
a simple class to control print indentation
unsigned long GetActualMemorySize() const override
Return the memory in kilobytes consumed by this data array.
list of point or cell ids
void InsertTuplesStartingAt(vtkIdType dstStart, vtkIdList *srcIds, vtkAbstractArray *source) override
Read only container, not supported.
abstract superclass for arrays of numeric data
void InsertVariantValue(vtkIdType idx, vtkVariant value) override
Read only container, not supported.
void SetTypedComponent(vtkIdType t, int c, Scalar v)
Read only container, not supported.
virtual void Transform(Scalar *tuple) const =0
Transform the provided tuple.
Abstract superclass to iterate over elements in an vtkAbstractArray.
double * GetTuple(vtkIdType i) override
Return tuple at location i.
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext) override
Read only container, not supported.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void InitializeArray(vtkAOSDataArrayTemplate< Scalar > *inputData)
Initialize the mapped array with the original input data array.
void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Read only container, not supported.
bool ComputeScalarRange(double *range) override
Get the transformed range by components.
void GetTypedTuple(vtkIdType idx, Scalar *t) const
Copy tuple value at location idx into provided array.
void RemoveTuple(vtkIdType id) override
Read only container, not supported.
bool ReallocateTuples(vtkIdType numTuples)
Read only container, not supported.
~vtkPeriodicDataArray() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RemoveLastTuple() override
Read only container, not supported.
vtkArrayIterator * NewIterator() override
Not implemented.
vtkTypeBool Resize(vtkIdType numTuples) override
Read only container, not supported.
ValueType & GetValueReference(vtkIdType idx)
Get value at index idx as reference.
void SetVariantValue(vtkIdType idx, vtkVariant value) override
Read only container, not supported.
void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output) override
Copy tuples values, selected by ptIds into provided array.
void SetValue(vtkIdType idx, Scalar value)
Read only container, not supported.
bool ComputeVectorRange(double range[2]) override
Get the transformed range on all components.
vtkIdType InsertNextTypedTuple(const Scalar *t)
Read only container, not supported.