VTK
Public Member Functions | Protected Member Functions | Protected Attributes
vtkCPExodusIIResultsArrayTemplate< Scalar > Class Template Reference

Map native Exodus II results arrays into the vtkDataArray interface. More...

#include <vtkCPExodusIIResultsArrayTemplate.h>

Inheritance diagram for vtkCPExodusIIResultsArrayTemplate< Scalar >:
Inheritance graph
[legend]
Collaboration diagram for vtkCPExodusIIResultsArrayTemplate< Scalar >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkMappedDataArrayNewInstanceMacro (vtkCPExodusIIResultsArrayTemplate< Scalar >) static vtkCPExodusIIResultsArrayTemplate *New()
virtual void PrintSelf (ostream &os, vtkIndent indent)
void SetExodusScalarArrays (std::vector< Scalar * > arrays, vtkIdType numTuples)
void Initialize ()
void GetTuples (vtkIdList *ptIds, vtkAbstractArray *output)
void GetTuples (vtkIdType p1, vtkIdType p2, vtkAbstractArray *output)
void Squeeze ()
vtkArrayIteratorNewIterator ()
vtkIdType LookupValue (vtkVariant value)
void LookupValue (vtkVariant value, vtkIdList *ids)
vtkVariant GetVariantValue (vtkIdType idx)
void ClearLookup ()
doubleGetTuple (vtkIdType i)
void GetTuple (vtkIdType i, double *tuple)
vtkIdType LookupTypedValue (Scalar value)
void LookupTypedValue (Scalar value, vtkIdList *ids)
Scalar GetValue (vtkIdType idx)
Scalar & GetValueReference (vtkIdType idx)
void GetTupleValue (vtkIdType idx, Scalar *t)
int Allocate (vtkIdType sz, vtkIdType ext)
int Resize (vtkIdType numTuples)
void SetNumberOfTuples (vtkIdType number)
void SetTuple (vtkIdType i, vtkIdType j, vtkAbstractArray *source)
void SetTuple (vtkIdType i, const float *source)
void SetTuple (vtkIdType i, const double *source)
void InsertTuple (vtkIdType i, vtkIdType j, vtkAbstractArray *source)
void InsertTuple (vtkIdType i, const float *source)
void InsertTuple (vtkIdType i, const double *source)
void InsertTuples (vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)
vtkIdType InsertNextTuple (vtkIdType j, vtkAbstractArray *source)
vtkIdType InsertNextTuple (const float *source)
vtkIdType InsertNextTuple (const double *source)
void DeepCopy (vtkAbstractArray *aa)
void DeepCopy (vtkDataArray *da)
void InterpolateTuple (vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)
void InterpolateTuple (vtkIdType i, vtkIdType id1, vtkAbstractArray *source1, vtkIdType id2, vtkAbstractArray *source2, double t)
void SetVariantValue (vtkIdType idx, vtkVariant value)
void RemoveTuple (vtkIdType id)
void RemoveFirstTuple ()
void RemoveLastTuple ()
void SetTupleValue (vtkIdType i, const Scalar *t)
void InsertTupleValue (vtkIdType i, const Scalar *t)
vtkIdType InsertNextTupleValue (const Scalar *t)
void SetValue (vtkIdType idx, Scalar value)
vtkIdType InsertNextValue (Scalar v)
void InsertValue (vtkIdType idx, Scalar v)

Protected Member Functions

 vtkCPExodusIIResultsArrayTemplate ()
 ~vtkCPExodusIIResultsArrayTemplate ()

Protected Attributes

std::vector< Scalar * > Arrays

Detailed Description

template<class Scalar>
class vtkCPExodusIIResultsArrayTemplate< Scalar >

Map native Exodus II results arrays into the vtkDataArray interface.

Map native Exodus II results arrays into the vtkDataArray interface. Use the vtkCPExodusIIInSituReader to read an Exodus II file's data into this structure.

Tests:
vtkCPExodusIIResultsArrayTemplate (Tests)

Definition at line 38 of file vtkCPExodusIIResultsArrayTemplate.h.


Constructor & Destructor Documentation

template<class Scalar >
vtkCPExodusIIResultsArrayTemplate< Scalar >::vtkCPExodusIIResultsArrayTemplate ( ) [protected]
template<class Scalar >
vtkCPExodusIIResultsArrayTemplate< Scalar >::~vtkCPExodusIIResultsArrayTemplate ( ) [protected]

Member Function Documentation

template<class Scalar >
virtual void vtkCPExodusIIResultsArrayTemplate< Scalar >::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetExodusScalarArrays ( std::vector< Scalar * >  arrays,
vtkIdType  numTuples 
)
template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::Initialize ( ) [virtual]

Release storage and reset array to initial state.

Implements vtkAbstractArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::GetTuples ( vtkIdList ptIds,
vtkAbstractArray output 
) [virtual]

Given a list of point ids, return an array of tuples. You must insure that the output array has been previously allocated with enough space to hold the data.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::GetTuples ( vtkIdType  p1,
vtkIdType  p2,
vtkAbstractArray output 
) [virtual]

Get the tuples for the range of points ids specified (i.e., p1->p2 inclusive). You must insure that the output array has been previously allocated with enough space to hold the data.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::Squeeze ( ) [virtual]

Free any unnecessary memory. Description: Resize object to just fit data requirement. Reclaims extra memory.

Implements vtkAbstractArray.

template<class Scalar >
vtkArrayIterator* vtkCPExodusIIResultsArrayTemplate< Scalar >::NewIterator ( ) [virtual]

Subclasses must override this method and provide the right kind of templated vtkArrayIteratorTemplate.

Implements vtkAbstractArray.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::LookupValue ( vtkVariant  value) [virtual]

Return the indices where a specific value appears.

Implements vtkAbstractArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::LookupValue ( vtkVariant  value,
vtkIdList ids 
) [virtual]

Return the indices where a specific value appears.

Implements vtkAbstractArray.

template<class Scalar >
vtkVariant vtkCPExodusIIResultsArrayTemplate< Scalar >::GetVariantValue ( vtkIdType  idx) [virtual]

Retrieve value from the array as a variant.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::ClearLookup ( ) [virtual]

Delete the associated fast lookup data structure on this array, if it exists. The lookup will be rebuilt on the next call to a lookup function.

Implements vtkAbstractArray.

template<class Scalar >
double* vtkCPExodusIIResultsArrayTemplate< Scalar >::GetTuple ( vtkIdType  i) [virtual]

Get the data tuple at ith location. Return it as a pointer to an array. Note: this method is not thread-safe, and the pointer is only valid as long as another method invocation to a vtk object is not performed.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::GetTuple ( vtkIdType  i,
double tuple 
) [virtual]

Get the data tuple at ith location by filling in a user-provided array, Make sure that your array is large enough to hold the NumberOfComponents amount of data being returned.

Implements vtkDataArray.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::LookupTypedValue ( Scalar  value) [virtual]

Return the indices where a specific value appears.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::LookupTypedValue ( Scalar  value,
vtkIdList ids 
) [virtual]

Return the indices where a specific value appears.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
Scalar vtkCPExodusIIResultsArrayTemplate< Scalar >::GetValue ( vtkIdType  idx) [virtual]

Get the data at a particular index.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
Scalar& vtkCPExodusIIResultsArrayTemplate< Scalar >::GetValueReference ( vtkIdType  idx) [virtual]

Get a reference to the scalar value at a particular index.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::GetTupleValue ( vtkIdType  idx,
Scalar *  t 
) [virtual]

Copy the tuple value into a user-provided array.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
int vtkCPExodusIIResultsArrayTemplate< Scalar >::Allocate ( vtkIdType  sz,
vtkIdType  ext 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkAbstractArray.

template<class Scalar >
int vtkCPExodusIIResultsArrayTemplate< Scalar >::Resize ( vtkIdType  numTuples) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkAbstractArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetNumberOfTuples ( vtkIdType  number) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkAbstractArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetTuple ( vtkIdType  i,
vtkIdType  j,
vtkAbstractArray source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetTuple ( vtkIdType  i,
const float source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetTuple ( vtkIdType  i,
const double source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertTuple ( vtkIdType  i,
vtkIdType  j,
vtkAbstractArray source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertTuple ( vtkIdType  i,
const float source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertTuple ( vtkIdType  i,
const double source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertTuples ( vtkIdList dstIds,
vtkIdList srcIds,
vtkAbstractArray source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkAbstractArray.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertNextTuple ( vtkIdType  j,
vtkAbstractArray source 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertNextTuple ( const float source) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertNextTuple ( const double source) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::DeepCopy ( vtkAbstractArray aa) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::DeepCopy ( vtkDataArray da) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InterpolateTuple ( vtkIdType  i,
vtkIdList ptIndices,
vtkAbstractArray source,
double weights 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InterpolateTuple ( vtkIdType  i,
vtkIdType  id1,
vtkAbstractArray source1,
vtkIdType  id2,
vtkAbstractArray source2,
double  t 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetVariantValue ( vtkIdType  idx,
vtkVariant  value 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkMappedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::RemoveTuple ( vtkIdType  id) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::RemoveFirstTuple ( ) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::RemoveLastTuple ( ) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkDataArray.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetTupleValue ( vtkIdType  i,
const Scalar *  t 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertTupleValue ( vtkIdType  i,
const Scalar *  t 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertNextTupleValue ( const Scalar *  t) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::SetValue ( vtkIdType  idx,
Scalar  value 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
vtkIdType vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertNextValue ( Scalar  v) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.

template<class Scalar >
void vtkCPExodusIIResultsArrayTemplate< Scalar >::InsertValue ( vtkIdType  idx,
Scalar  v 
) [virtual]

This container is read only -- this method does nothing but print a warning.

Implements vtkTypedDataArray< Scalar >.


Member Data Documentation

template<class Scalar >
std::vector<Scalar *> vtkCPExodusIIResultsArrayTemplate< Scalar >::Arrays [protected]

Definition at line 106 of file vtkCPExodusIIResultsArrayTemplate.h.


The documentation for this class was generated from the following file: