 |
VTK
9.0.20210224
|
Go to the documentation of this file.
27 #ifndef vtkCPExodusIIResultsArrayTemplate_h
28 #define vtkCPExodusIIResultsArrayTemplate_h
34 template <
class Scalar>
125 double* TempDoubleArray;
134 #include "vtkCPExodusIIResultsArrayTemplate.txx"
136 #endif // vtkCPExodusIIResultsArrayTemplate_h
vtkIdType LookupTypedValue(Scalar value) override
void SetValue(vtkIdType idx, Scalar value) override
void DeepCopy(vtkAbstractArray *aa) override
Deep copy of data.
vtkIdType InsertNextValue(Scalar v) override
void GetTypedTuple(vtkIdType idx, Scalar *t) const override
vtkIdType LookupValue(vtkVariant value) override
Return the value indices where a specific value appears.
void RemoveFirstTuple() override
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
void RemoveLastTuple() override
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
void Squeeze() override
Free any unnecessary memory.
vtkIdType InsertNextTypedTuple(const Scalar *t) override
abstract superclass for arrays of numeric data
Map non-contiguous data structures into the vtkDataArray API.
void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array.
vtkArrayIterator * NewIterator() override
Subclasses must override this method and provide the right kind of templated vtkArrayIteratorTemplate...
void RemoveTuple(vtkIdType id) override
These methods remove tuples from the data array.
void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) override
Set the tuple at dstTupleIdx in this array to the interpolated tuple value, given the ptIndices in th...
void InsertValue(vtkIdType idx, Scalar v) override
#define vtkMappedDataArrayNewInstanceMacro(thisClass)
void SetNumberOfTuples(vtkIdType number) override
Set the number of tuples (a component group) in the array.
void InsertVariantValue(vtkIdType idx, vtkVariant value) override
Insert a value into the array from a variant.
void InsertTypedTuple(vtkIdType i, const Scalar *t) override
void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
ValueType & GetValueReference(vtkIdType idx) override
Get a reference to the scalar value at a particular index.
vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source) override
Insert the tuple from srcTupleIdx in the source array at the end of this array.
void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output) override
Given a list of tuple ids, return an array of tuples.
vtkTypeBool Resize(vtkIdType numTuples) override
Resize the array to the requested number of tuples and preserve data.
~vtkCPExodusIIResultsArrayTemplate() override
a simple class to control print indentation
Superclass::ValueType ValueType
A atomic type representing the union of many types.
list of point or cell ids
void SetExodusScalarArrays(std::vector< Scalar * > arrays, vtkIdType numTuples)
Set the arrays to be used and the number of tuples in each array.
vtkCPExodusIIResultsArrayTemplate()
std::vector< Scalar * > Arrays
double * GetTuple(vtkIdType i) override
Get the data tuple at tupleIdx.
Abstract superclass for all arrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
Copy the tuples indexed in srcIds from the source array to the tuple locations indexed by dstIds in t...
Map native Exodus II results arrays into the vtkDataArray interface.
Abstract superclass to iterate over elements in an vtkAbstractArray.
Superclass::ValueType ValueType
void ClearLookup() override
Delete the associated fast lookup data structure on this array, if it exists.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void Initialize() override
Release storage and reset array to initial state.
vtkVariant GetVariantValue(vtkIdType idx) override
Retrieve value from the array as a variant.
void SetTypedTuple(vtkIdType i, const Scalar *t) override
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext) override
This container is read only – this method does nothing but print a warning.
ValueType GetValue(vtkIdType idx) const override
Get the data at a particular index.
void SetVariantValue(vtkIdType idx, vtkVariant value) override
Set a value in the array from a variant.
vtkAbstractTemplateTypeMacro(vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkMappedDataArray< Scalar >) vtkMappedDataArrayNewInstanceMacro(vtkCPExodusIIResultsArrayTemplate< Scalar >) static vtkCPExodusIIResultsArrayTemplate *New()