VTK
9.2.20230606
|
abstract superclass for arrays of numeric data More...
#include <vtkDataArray.h>
Public Types | |
typedef vtkAbstractArray | Superclass |
![]() | |
enum | DeleteMethod { VTK_DATA_ARRAY_FREE , VTK_DATA_ARRAY_DELETE , VTK_DATA_ARRAY_ALIGNED_FREE , VTK_DATA_ARRAY_USER_DEFINED } |
enum | { MAX_DISCRETE_VALUES = 32 } |
enum | { AbstractArray = 0 , DataArray , AoSDataArrayTemplate , SoADataArrayTemplate , TypedDataArray , MappedDataArray , ScaleSoADataArrayTemplate , ImplicitArray , DataArrayTemplate = AoSDataArrayTemplate } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkDataArray * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
int | IsNumeric () const override |
This method is here to make backward compatibility easier. More... | |
int | GetElementComponentSize () const override |
Return the size, in bytes, of the lowest-level element of an array. More... | |
void | GetTuples (vtkIdList *tupleIds, vtkAbstractArray *output) override |
Given a list of tuple ids, return an array of tuples. More... | |
void | GetTuples (vtkIdType p1, vtkIdType p2, vtkAbstractArray *output) override |
Get the tuples for the range of tuple ids specified (i.e., p1->p2 inclusive). More... | |
void | InterpolateTuple (vtkIdType dstTupleIdx, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights) override |
Set the tuple at dstTupleIdx in this array to the interpolated tuple value, given the ptIndices in the source array and associated interpolation weights. More... | |
void | InterpolateTuple (vtkIdType dstTupleIdx, vtkIdType srcTupleIdx1, vtkAbstractArray *source1, vtkIdType srcTupleIdx2, vtkAbstractArray *source2, double t) override |
Insert the tuple at dstTupleIdx in this array to the tuple interpolated from the two tuple indices, srcTupleIdx1 and srcTupleIdx2, and an interpolation factor, t. More... | |
virtual double * | GetTuple (vtkIdType tupleIdx)=0 |
Get the data tuple at tupleIdx. More... | |
virtual void | GetTuple (vtkIdType tupleIdx, double *tuple)=0 |
Get the data tuple at tupleIdx by filling in a user-provided array, Make sure that your array is large enough to hold the NumberOfComponents amount of data being returned. More... | |
virtual double | GetComponent (vtkIdType tupleIdx, int compIdx) |
Return the data component at the location specified by tupleIdx and compIdx. More... | |
virtual void | SetComponent (vtkIdType tupleIdx, int compIdx, double value) |
Set the data component at the location specified by tupleIdx and compIdx to value. More... | |
virtual void | InsertComponent (vtkIdType tupleIdx, int compIdx, double value) |
Insert value at the location specified by tupleIdx and compIdx. More... | |
virtual void | GetData (vtkIdType tupleMin, vtkIdType tupleMax, int compMin, int compMax, vtkDoubleArray *data) |
Get the data as a double array in the range (tupleMin,tupleMax) and (compMin, compMax). More... | |
virtual void | ShallowCopy (vtkDataArray *other) |
Create a shallow copy of other into this, if possible. More... | |
virtual void | FillComponent (int compIdx, double value) |
Fill a component of a data array with a specified value. More... | |
virtual void | Fill (double value) |
Fill all values of a data array with a specified value. More... | |
virtual void | CopyComponent (int dstComponent, vtkDataArray *src, int srcComponent) |
Copy a component from one data array into a component on this data array. More... | |
virtual void * | WriteVoidPointer (vtkIdType valueIdx, vtkIdType numValues)=0 |
Get the address of a particular data index. More... | |
unsigned long | GetActualMemorySize () const override |
Return the memory in kibibytes (1024 bytes) consumed by this data array. More... | |
void | CreateDefaultLookupTable () |
Create default lookup table. More... | |
double * | GetRange () |
Return the range of the data array. More... | |
void | GetRange (double range[2]) |
The range of the data array values will be returned in the provided range array argument. More... | |
double * | GetFiniteRange () |
Return the range of the data array. More... | |
void | GetFiniteRange (double range[2]) |
The range of the data array values will be returned in the provided range array argument. More... | |
virtual double | GetMaxNorm () |
Return the maximum norm for the tuples. More... | |
void | Modified () override |
Removes out-of-date L2_NORM_RANGE() and L2_NORM_FINITE_RANGE() values. More... | |
int | CopyInformation (vtkInformation *infoFrom, int deep=1) override |
Copy information instance. More... | |
int | GetArrayType () const override |
Method for type-checking in FastDownCast implementations. More... | |
void | InsertTuple (vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
vtkIdType | InsertNextTuple (vtkIdType srcTupleIdx, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
void | InsertTuples (vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
void | InsertTuples (vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
void | InsertTuplesStartingAt (vtkIdType dstStart, vtkIdList *srcIds, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
void | SetTuple (vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override |
See documentation from parent class. More... | |
double | GetTuple1 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
double * | GetTuple2 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
double * | GetTuple3 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
double * | GetTuple4 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
double * | GetTuple6 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
double * | GetTuple9 (vtkIdType tupleIdx) |
These methods are included as convenience for the wrappers. More... | |
virtual void | SetTuple (vtkIdType tupleIdx, const float *tuple) |
Set the data tuple at tupleIdx. More... | |
virtual void | SetTuple (vtkIdType tupleIdx, const double *tuple) |
Set the data tuple at tupleIdx. More... | |
void | SetTuple1 (vtkIdType tupleIdx, double value) |
These methods are included as convenience for the wrappers. More... | |
void | SetTuple2 (vtkIdType tupleIdx, double val0, double val1) |
These methods are included as convenience for the wrappers. More... | |
void | SetTuple3 (vtkIdType tupleIdx, double val0, double val1, double val2) |
These methods are included as convenience for the wrappers. More... | |
void | SetTuple4 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3) |
These methods are included as convenience for the wrappers. More... | |
void | SetTuple6 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5) |
These methods are included as convenience for the wrappers. More... | |
void | SetTuple9 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
These methods are included as convenience for the wrappers. More... | |
virtual void | InsertTuple (vtkIdType tupleIdx, const float *tuple)=0 |
Insert the data tuple at tupleIdx. More... | |
virtual void | InsertTuple (vtkIdType tupleIdx, const double *tuple)=0 |
Insert the data tuple at tupleIdx. More... | |
void | InsertTuple1 (vtkIdType tupleIdx, double value) |
These methods are included as convenience for the wrappers. More... | |
void | InsertTuple2 (vtkIdType tupleIdx, double val0, double val1) |
These methods are included as convenience for the wrappers. More... | |
void | InsertTuple3 (vtkIdType tupleIdx, double val0, double val1, double val2) |
These methods are included as convenience for the wrappers. More... | |
void | InsertTuple4 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3) |
These methods are included as convenience for the wrappers. More... | |
void | InsertTuple6 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5) |
These methods are included as convenience for the wrappers. More... | |
void | InsertTuple9 (vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
These methods are included as convenience for the wrappers. More... | |
virtual vtkIdType | InsertNextTuple (const float *tuple)=0 |
Insert the data tuple at the end of the array and return the tuple index at which the data was inserted. More... | |
virtual vtkIdType | InsertNextTuple (const double *tuple)=0 |
Insert the data tuple at the end of the array and return the tuple index at which the data was inserted. More... | |
void | InsertNextTuple1 (double value) |
These methods are included as convenience for the wrappers. More... | |
void | InsertNextTuple2 (double val0, double val1) |
These methods are included as convenience for the wrappers. More... | |
void | InsertNextTuple3 (double val0, double val1, double val2) |
These methods are included as convenience for the wrappers. More... | |
void | InsertNextTuple4 (double val0, double val1, double val2, double val3) |
These methods are included as convenience for the wrappers. More... | |
void | InsertNextTuple6 (double val0, double val1, double val2, double val3, double val4, double val5) |
These methods are included as convenience for the wrappers. More... | |
void | InsertNextTuple9 (double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8) |
These methods are included as convenience for the wrappers. More... | |
virtual void | RemoveTuple (vtkIdType tupleIdx)=0 |
These methods remove tuples from the data array. More... | |
virtual void | RemoveFirstTuple () |
These methods remove tuples from the data array. More... | |
virtual void | RemoveLastTuple () |
These methods remove tuples from the data array. More... | |
void | DeepCopy (vtkAbstractArray *aa) override |
Deep copy of data. More... | |
virtual void | DeepCopy (vtkDataArray *da) |
Deep copy of data. More... | |
void | SetLookupTable (vtkLookupTable *lut) |
Set/get the lookup table associated with this scalar data, if any. More... | |
virtual vtkLookupTable * | GetLookupTable () |
Set/get the lookup table associated with this scalar data, if any. More... | |
void | GetRange (double range[2], int comp) |
The range of the data array values for the given component will be returned in the provided range array argument. More... | |
void | GetRange (double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip) |
The range of the data array values for the given component will be returned in the provided range array argument. More... | |
double * | GetRange (int comp) |
Return the range of the data array values for the given component. More... | |
void | GetFiniteRange (double range[2], int comp) |
The range of the data array values for the given component will be returned in the provided range array argument. More... | |
void | GetFiniteRange (double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip) |
The range of the data array values for the given component will be returned in the provided range array argument. More... | |
double * | GetFiniteRange (int comp) |
Return the range of the data array values for the given component. More... | |
![]() | |
vtkAbstractArray * | NewInstance () const |
virtual vtkTypeBool | Allocate (vtkIdType numValues, vtkIdType ext=1000)=0 |
Allocate memory for this array. More... | |
virtual void | Initialize ()=0 |
Release storage and reset array to initial state. More... | |
virtual int | GetDataType () const =0 |
Return the underlying data type. More... | |
void | SetComponentName (vtkIdType component, const char *name) |
Set the name for a component. More... | |
const char * | GetComponentName (vtkIdType component) const |
Get the component name for a given component. More... | |
bool | HasAComponentName () const |
Returns if any component has had a name assigned. More... | |
int | CopyComponentNames (vtkAbstractArray *da) |
Copies the component names from the inputted array to the current array make sure that the current array has the same number of components as the input array. More... | |
virtual void | SetNumberOfTuples (vtkIdType numTuples)=0 |
Set the number of tuples (a component group) in the array. More... | |
virtual bool | SetNumberOfValues (vtkIdType numValues) |
Specify the number of values (tuples * components) for this object to hold. More... | |
vtkIdType | GetNumberOfTuples () const |
Get the number of complete tuples (a component group) in the array. More... | |
vtkIdType | GetNumberOfValues () const |
Get the total number of values in the array. More... | |
virtual bool | HasStandardMemoryLayout () const |
Returns true if this array uses the standard memory layout defined in the VTK user guide, e.g. More... | |
virtual void * | GetVoidPointer (vtkIdType valueIdx)=0 |
Return a void pointer. More... | |
virtual void | Squeeze ()=0 |
Free any unnecessary memory. More... | |
virtual vtkTypeBool | Resize (vtkIdType numTuples)=0 |
Resize the array to the requested number of tuples and preserve data. More... | |
vtkIdType | GetSize () const |
Return the size of the data. More... | |
vtkIdType | GetMaxId () const |
What is the maximum id currently in the array. More... | |
virtual void | SetArrayFreeFunction (void(*callback)(void *))=0 |
This method allows the user to specify a custom free function to be called when the array is deallocated. More... | |
virtual void | ExportToVoidPointer (void *out_ptr) |
This method copies the array data to the void pointer specified by the user. More... | |
virtual const char * | GetDataTypeAsString () const |
Get the name of a data type as a string. More... | |
virtual vtkArrayIterator * | NewIterator ()=0 |
Subclasses must override this method and provide the right kind of templated vtkArrayIteratorTemplate. More... | |
virtual vtkIdType | GetDataSize () const |
Returns the size of the data in DataTypeSize units. More... | |
virtual vtkVariant | GetVariantValue (vtkIdType valueIdx) |
Retrieve value from the array as a variant. More... | |
virtual void | InsertVariantValue (vtkIdType valueIdx, vtkVariant value)=0 |
Insert a value into the array from a variant. More... | |
virtual void | SetVariantValue (vtkIdType valueIdx, vtkVariant value)=0 |
Set a value in the array from a variant. More... | |
virtual void | DataChanged ()=0 |
Tell the array explicitly that the data has changed. More... | |
virtual void | ClearLookup ()=0 |
Delete the associated fast lookup data structure on this array, if it exists. More... | |
virtual void | GetProminentComponentValues (int comp, vtkVariantArray *values, double uncertainty=1.e-6, double minimumProminence=1.e-3) |
Populate the given vtkVariantArray with a set of distinct values taken on by the requested component (or, when passed -1, by the tuples as a whole). More... | |
vtkInformation * | GetInformation () |
Get an information object that can be used to annotate the array. More... | |
bool | HasInformation () const |
Inquire if this array has an instance of vtkInformation already associated with it. More... | |
const char * | GetArrayTypeAsString () const |
Get the name for the array type as string. More... | |
virtual void | SetNumberOfComponents (int) |
Set/Get the dimension (n) of the components. More... | |
int | GetNumberOfComponents () const |
Set/Get the dimension (n) of the components. More... | |
void | Reset () |
Reset to an empty state, without freeing any memory. More... | |
virtual void | SetVoidArray (void *vtkNotUsed(array), vtkIdType vtkNotUsed(size), int vtkNotUsed(save))=0 |
This method lets the user specify data to be held by the array. More... | |
virtual void | SetVoidArray (void *array, vtkIdType size, int save, int vtkNotUsed(deleteMethod)) |
This method lets the user specify data to be held by the array. More... | |
virtual void | SetName (const char *) |
Set/get array's name. More... | |
virtual char * | GetName () |
Set/get array's name. More... | |
virtual vtkIdType | LookupValue (vtkVariant value)=0 |
Return the value indices where a specific value appears. More... | |
virtual void | LookupValue (vtkVariant value, vtkIdList *valueIds)=0 |
Return the value indices where a specific value appears. More... | |
virtual unsigned int | GetMaxDiscreteValues () |
Get/Set the maximum number of prominent values this array may contain before it is considered continuous. More... | |
virtual void | SetMaxDiscreteValues (unsigned int) |
Get/Set the maximum number of prominent values this array may contain before it is considered continuous. More... | |
virtual int | GetDataTypeSize () const =0 |
Return the size of the underlying data type. More... | |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
std::string | GetObjectDescription () const override |
The object description printed in messages and PrintSelf output. More... | |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
virtual void | SetObjectName (const std::string &objectName) |
Set/get the name of this object for reporting purposes. More... | |
virtual std::string | GetObjectName () const |
Set/get the name of this object for reporting purposes. More... | |
![]() | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual bool | UsesGarbageCollector () const |
Indicate whether the class uses vtkGarbageCollector or not. More... | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkDataArray * | SafeDownCast (vtkObjectBase *o) |
static vtkDataArray * | FastDownCast (vtkAbstractArray *source) |
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray. More... | |
static vtkDataArray * | CreateDataArray (int dataType) |
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE, VTK_ID_TYPE. More... | |
static vtkInformationDoubleVectorKey * | COMPONENT_RANGE () |
This key is used to hold tight bounds on the range of one component over all tuples of the array. More... | |
static vtkInformationDoubleVectorKey * | L2_NORM_RANGE () |
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array. More... | |
static vtkInformationDoubleVectorKey * | L2_NORM_FINITE_RANGE () |
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array. More... | |
static vtkInformationStringKey * | UNITS_LABEL () |
A human-readable string indicating the units for the array data. More... | |
![]() | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkAbstractArray * | SafeDownCast (vtkObjectBase *o) |
static vtkAbstractArray * | CreateArray (int dataType) |
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE, VTK_ID_TYPE, VTK_STRING. More... | |
static vtkInformationIntegerKey * | GUI_HIDE () |
This key is a hint to end user interface that this array is internal and should not be shown to the end user. More... | |
static vtkInformationInformationVectorKey * | PER_COMPONENT () |
This key is used to hold a vector of COMPONENT_VALUES (and, for vtkDataArray subclasses, COMPONENT_RANGE) keys – one for each component of the array. More... | |
static vtkInformationInformationVectorKey * | PER_FINITE_COMPONENT () |
This key is used to hold a vector of COMPONENT_VALUES (and, for vtkDataArray subclasses, COMPONENT_RANGE) keys – one for each component of the array. More... | |
static vtkInformationVariantVectorKey * | DISCRETE_VALUES () |
A key used to hold discrete values taken on either by the tuples of the array (when present in this->GetInformation()) or individual components (when present in one entry of the PER_COMPONENT() information vector). More... | |
static vtkInformationDoubleVectorKey * | DISCRETE_VALUE_SAMPLE_PARAMETERS () |
A key used to hold conditions under which cached discrete values were generated; the value is a 2-vector of doubles. More... | |
static int | GetDataTypeSize (int type) |
Return the size of the underlying data type. More... | |
![]() | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More... | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkDataArray () | |
~vtkDataArray () override | |
virtual void | ComputeRange (double range[2], int comp) |
Compute the range for a specific component. More... | |
virtual void | ComputeRange (double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Compute the range for a specific component. More... | |
virtual void | ComputeFiniteRange (double range[2], int comp) |
Compute the range for a specific component. More... | |
virtual void | ComputeFiniteRange (double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Compute the range for a specific component. More... | |
virtual bool | ComputeScalarRange (double *ranges) |
Computes the range for each component of an array, the length of ranges must be two times the number of components. More... | |
virtual bool | ComputeScalarRange (double *ranges, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Computes the range for each component of an array, the length of ranges must be two times the number of components. More... | |
virtual bool | ComputeVectorRange (double range[2]) |
Returns true if the range was computed. More... | |
virtual bool | ComputeVectorRange (double range[2], const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Returns true if the range was computed. More... | |
virtual bool | ComputeFiniteScalarRange (double *ranges) |
Computes the range for each component of an array, the length of ranges must be two times the number of components. More... | |
virtual bool | ComputeFiniteScalarRange (double *ranges, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Computes the range for each component of an array, the length of ranges must be two times the number of components. More... | |
virtual bool | ComputeFiniteVectorRange (double range[2]) |
Returns true if the range was computed. More... | |
virtual bool | ComputeFiniteVectorRange (double range[2], const unsigned char *ghosts, unsigned char ghostsToSkip=0xff) |
Returns true if the range was computed. More... | |
![]() | |
vtkAbstractArray () | |
~vtkAbstractArray () override | |
virtual void | SetInformation (vtkInformation *) |
Set an information object that can be used to annotate the array. More... | |
virtual void | UpdateDiscreteValueSet (double uncertainty, double minProminence) |
Obtain the set of unique values taken on by each component of the array, as well as by the tuples of the array. More... | |
![]() | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkLookupTable * | LookupTable |
double | Range [2] |
double | FiniteRange [2] |
![]() | |
vtkIdType | Size |
vtkIdType | MaxId |
int | NumberOfComponents |
unsigned int | MaxDiscreteValues |
char * | Name |
bool | RebuildArray |
vtkInformation * | Information |
vtkInternalComponentNames * | ComponentNames |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
std::string | ObjectName |
![]() | |
std::atomic< int32_t > | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkPoints |
class | vtkFieldData |
static void | GetDataTypeRange (int type, double range[2]) |
These methods return the Min and Max possible range of the native data type. More... | |
static double | GetDataTypeMin (int type) |
These methods return the Min and Max possible range of the native data type. More... | |
static double | GetDataTypeMax (int type) |
These methods return the Min and Max possible range of the native data type. More... | |
void | GetDataTypeRange (double range[2]) |
These methods return the Min and Max possible range of the native data type. More... | |
double | GetDataTypeMin () |
These methods return the Min and Max possible range of the native data type. More... | |
double | GetDataTypeMax () |
These methods return the Min and Max possible range of the native data type. More... | |
Additional Inherited Members | |
![]() | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
abstract superclass for arrays of numeric data
vtkDataArray is an abstract superclass for data array objects containing numeric data. It extends the API defined in vtkAbstractArray. vtkDataArray is an abstract superclass for data array objects. This class defines an API that all array objects must support. Note that the concrete subclasses of this class represent data in native form (char, int, etc.) and often have specialized more efficient methods for operating on this data (for example, getting pointers to data or getting/inserting data in native form). Subclasses of vtkDataArray are assumed to contain data whose components are meaningful when cast to and from double.
Definition at line 165 of file vtkDataArray.h.
Definition at line 168 of file vtkDataArray.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAbstractArray.
Reimplemented in vtkUnsignedShortArray, vtkUnsignedLongLongArray, vtkUnsignedLongArray, vtkUnsignedIntArray, vtkUnsignedCharArray, vtkSignedCharArray, vtkShortArray, vtkLongLongArray, vtkLongArray, vtkIntArray, vtkIdTypeArray, vtkFloatArray, vtkDoubleArray, vtkCharArray, and vtkBitArray.
|
static |
|
protectedvirtual |
Reimplemented from vtkAbstractArray.
Reimplemented in vtkUnsignedShortArray, vtkUnsignedLongLongArray, vtkUnsignedLongArray, vtkUnsignedIntArray, vtkUnsignedCharArray, vtkSignedCharArray, vtkShortArray, vtkLongLongArray, vtkLongArray, vtkIntArray, vtkIdTypeArray, vtkFloatArray, vtkDoubleArray, vtkCharArray, and vtkBitArray.
vtkDataArray* vtkDataArray::NewInstance | ( | ) | const |
|
overridevirtual |
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 vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkAngularPeriodicDataArray< Scalar >, vtkUnsignedShortArray, vtkUnsignedLongLongArray, vtkUnsignedLongArray, vtkUnsignedIntArray, vtkUnsignedCharArray, vtkTestDataArray< ArrayT >, vtkSignedCharArray, vtkShortArray, vtkMappedDataArray< Scalar >, vtkLongLongArray, vtkLongArray, vtkIntArray, vtkIdTypeArray, vtkFloatArray, and vtkDoubleArray.
|
inlinestatic |
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
This method checks if source->GetArrayType() returns DataArray or a more derived type, and performs a static_cast to return source as a vtkDataArray pointer. Otherwise, nullptr is returned.
Definition at line 806 of file vtkDataArray.h.
|
inlineoverridevirtual |
This method is here to make backward compatibility easier.
It must return true if and only if an array contains numeric data. All vtkDataArray subclasses contain numeric data, hence this method always returns 1(true).
Implements vtkAbstractArray.
Definition at line 185 of file vtkDataArray.h.
|
inlineoverridevirtual |
Return the size, in bytes, of the lowest-level element of an array.
For vtkDataArray and subclasses this is the size of the data type.
Implements vtkAbstractArray.
Definition at line 192 of file vtkDataArray.h.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkSOADataArrayTemplate< ValueTypeT >, vtkScaledSOADataArrayTemplate< ValueTypeT >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkSOADataArrayTemplate< ValueTypeT >, vtkScaledSOADataArrayTemplate< ValueTypeT >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkSOADataArrayTemplate< ValueTypeT >, vtkScaledSOADataArrayTemplate< ValueTypeT >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
overridevirtual |
See documentation from parent class.
This method assumes that the source
inherits from vtkDataArray
, but its value type doesn't have to match the type of the current instance.
Implements vtkAbstractArray.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
overridevirtual |
Given a list of tuple ids, return an array of tuples.
You must ensure that the output array has been previously allocated with enough space to hold the data.
Reimplemented from vtkAbstractArray.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
overridevirtual |
Get the tuples for the range of tuple ids specified (i.e., p1->p2 inclusive).
You must ensure that the output array has been previously allocated with enough space to hold the data.
Reimplemented from vtkAbstractArray.
Reimplemented in vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, and vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >.
|
overridevirtual |
Set the tuple at dstTupleIdx in this array to the interpolated tuple value, given the ptIndices in the source array and associated interpolation weights.
This method assumes that the two arrays are of the same type and structure.
Implements vtkAbstractArray.
Reimplemented in vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, and vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >.
|
overridevirtual |
Insert the tuple at dstTupleIdx in this array to the tuple interpolated from the two tuple indices, srcTupleIdx1 and srcTupleIdx2, and an interpolation factor, t.
The interpolation factor ranges from (0,1), with t=0 located at the tuple described by srcTupleIdx1. This method assumes that the three arrays are of the same type, srcTupleIdx1 is an index to array source1, and srcTupleIdx2 is an index to array source2.
Implements vtkAbstractArray.
Reimplemented in vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, and vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >.
|
pure virtual |
Get the data tuple at tupleIdx.
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.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
|
pure virtual |
Get the data tuple at tupleIdx by filling in a user-provided array, Make sure that your array is large enough to hold the NumberOfComponents amount of data being returned.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
double vtkDataArray::GetTuple1 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
double* vtkDataArray::GetTuple2 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
double* vtkDataArray::GetTuple3 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
double* vtkDataArray::GetTuple4 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
double* vtkDataArray::GetTuple6 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
double* vtkDataArray::GetTuple9 | ( | vtkIdType | tupleIdx | ) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
|
virtual |
Set the data tuple at tupleIdx.
Note that range checking or memory allocation is not performed; use this method in conjunction with SetNumberOfTuples() to allocate space.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkBitArray, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
virtual |
Set the data tuple at tupleIdx.
Note that range checking or memory allocation is not performed; use this method in conjunction with SetNumberOfTuples() to allocate space.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkBitArray, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
void vtkDataArray::SetTuple1 | ( | vtkIdType | tupleIdx, |
double | value | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::SetTuple2 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1 | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::SetTuple3 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2 | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::SetTuple4 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3 | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::SetTuple6 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5 | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::SetTuple9 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5, | ||
double | val6, | ||
double | val7, | ||
double | val8 | ||
) |
These methods are included as convenience for the wrappers.
GetTuple() and SetTuple() which return/take arrays can not be used from wrapped languages. These methods can be used instead.
|
pure virtual |
Insert the data tuple at tupleIdx.
Note that memory allocation is performed as necessary to hold the data.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkBitArray, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
pure virtual |
Insert the data tuple at tupleIdx.
Note that memory allocation is performed as necessary to hold the data.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkBitArray, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
void vtkDataArray::InsertTuple1 | ( | vtkIdType | tupleIdx, |
double | value | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertTuple2 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertTuple3 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertTuple4 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertTuple6 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertTuple9 | ( | vtkIdType | tupleIdx, |
double | val0, | ||
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5, | ||
double | val6, | ||
double | val7, | ||
double | val8 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
|
pure virtual |
Insert the data tuple at the end of the array and return the tuple index at which the data was inserted.
Memory is allocated as necessary to hold the data.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkBitArray, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
pure virtual |
Insert the data tuple at the end of the array and return the tuple index at which the data was inserted.
Memory is allocated as necessary to hold the data.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkBitArray, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
void vtkDataArray::InsertNextTuple1 | ( | double | value | ) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertNextTuple2 | ( | double | val0, |
double | val1 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertNextTuple3 | ( | double | val0, |
double | val1, | ||
double | val2 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertNextTuple4 | ( | double | val0, |
double | val1, | ||
double | val2, | ||
double | val3 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertNextTuple6 | ( | double | val0, |
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
void vtkDataArray::InsertNextTuple9 | ( | double | val0, |
double | val1, | ||
double | val2, | ||
double | val3, | ||
double | val4, | ||
double | val5, | ||
double | val6, | ||
double | val7, | ||
double | val8 | ||
) |
These methods are included as convenience for the wrappers.
InsertTuple() which takes arrays can not be used from wrapped languages. These methods can be used instead.
|
pure virtual |
These methods remove tuples from the data array.
They shift data and resize array, so the data array is still valid after this operation. Note, this operation is fairly slow.
Implemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
|
inlinevirtual |
These methods remove tuples from the data array.
They shift data and resize array, so the data array is still valid after this operation. Note, this operation is fairly slow.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
Definition at line 346 of file vtkDataArray.h.
|
virtual |
These methods remove tuples from the data array.
They shift data and resize array, so the data array is still valid after this operation. Note, this operation is fairly slow.
Reimplemented in vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
|
virtual |
Return the data component at the location specified by tupleIdx and compIdx.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, and vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >.
|
virtual |
Set the data component at the location specified by tupleIdx and compIdx to value.
Note that i is less than NumberOfTuples and j is less than NumberOfComponents. Make sure enough memory has been allocated (use SetNumberOfTuples() and SetNumberOfComponents()).
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, and vtkBitArray.
|
virtual |
Insert value at the location specified by tupleIdx and compIdx.
Note that memory allocation is performed as necessary to hold the data.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, and vtkBitArray.
|
virtual |
Get the data as a double array in the range (tupleMin,tupleMax) and (compMin, compMax).
The resulting double array consists of all data in the tuple range specified and only the component range specified. This process typically requires casting the data from native form into doubleing point values. This method is provided as a convenience for data exchange, and is not very fast.
|
overridevirtual |
Deep copy of data.
Copies data from different data arrays even if they are different types (using doubleing-point exchange).
Reimplemented from vtkAbstractArray.
Reimplemented in vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, and vtkPeriodicDataArray< Scalar >.
|
virtual |
Deep copy of data.
Copies data from different data arrays even if they are different types (using doubleing-point exchange).
Reimplemented in vtkMappedDataArray< Scalar >, vtkCPExodusIIResultsArrayTemplate< Scalar >, vtkCPExodusIINodalCoordinatesTemplate< Scalar >, vtkPeriodicDataArray< Scalar >, and vtkBitArray.
|
virtual |
Create a shallow copy of other into this, if possible.
Shallow copies are only possible: (a) if both arrays are the same data type (b) if both arrays are the same array type (e.g. AOS vs. SOA) (c) if both arrays support shallow copies (e.g. vtkBitArray currently does not.) If a shallow copy is not possible, a deep copy will be performed instead.
Reimplemented in vtkSOADataArrayTemplate< ValueTypeT >, vtkScaledSOADataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
virtual |
Fill a component of a data array with a specified value.
This method sets the specified component to specified value for all tuples in the data array. This methods can be used to initialize or reinitialize a single component of a multi-component array.
Reimplemented in vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, and vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >.
|
virtual |
Fill all values of a data array with a specified value.
Reimplemented in vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
|
virtual |
Copy a component from one data array into a component on this data array.
This method copies the specified component ("srcComponent") from the specified data array ("src") to the specified component ("dstComponent") over all the tuples in this data array. This method can be used to extract a component (column) from one data array and paste that data into a component on this data array.
|
pure virtual |
Get the address of a particular data index.
Make sure data is allocated for the number of items requested. If needed, increase MaxId to mark any new value ranges as in-use.
Implemented in vtkMappedDataArray< Scalar >, vtkGenericDataArray< DerivedT, ValueTypeT >, vtkGenericDataArray< vtkPeriodicDataArray< Scalar >, Scalar >, vtkGenericDataArray< vtkTestDataArray< ArrayT >, ArrayT::ValueType >, vtkGenericDataArray< vtkmDataArray< T >, T >, vtkGenericDataArray< vtkAOSDataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkScaledSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkImplicitArray< BackendT >, vtk::detail::implicit_array_traits< BackendT >::rtype >, vtkGenericDataArray< vtkSOADataArrayTemplate< ValueTypeT >, ValueTypeT >, vtkGenericDataArray< vtkTypedDataArray< Scalar >, Scalar >, vtkAOSDataArrayTemplate< ValueTypeT >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, vtkAOSDataArrayTemplate< char >, and vtkBitArray.
|
overridevirtual |
Return the memory in kibibytes (1024 bytes) consumed by this data array.
Used to support streaming and reading/writing data. The value returned is guaranteed to be greater than or equal to the memory required to actually represent the data represented by this object. The information returned is valid only after the pipeline has been updated.
Implements vtkAbstractArray.
Reimplemented in vtkPeriodicDataArray< Scalar >.
void vtkDataArray::CreateDefaultLookupTable | ( | ) |
Create default lookup table.
Generally used to create one when none is available.
void vtkDataArray::SetLookupTable | ( | vtkLookupTable * | lut | ) |
Set/get the lookup table associated with this scalar data, if any.
|
virtual |
Set/get the lookup table associated with this scalar data, if any.
|
inline |
The range of the data array values for the given component will be returned in the provided range array argument.
If comp is -1, the range of the magnitude (L2 norm) over all components will be provided. The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range. Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
Definition at line 479 of file vtkDataArray.h.
|
inline |
The range of the data array values for the given component will be returned in the provided range array argument.
If comp is -1, the range of the magnitude (L2 norm) over all components will be provided. The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range. Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
Definition at line 480 of file vtkDataArray.h.
|
inline |
Return the range of the data array values for the given component.
If comp is -1, return the range of the magnitude (L2 norm) over all components.The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes. THIS METHOD IS NOT THREAD SAFE.
Definition at line 495 of file vtkDataArray.h.
|
inline |
Return the range of the data array.
If the array has multiple components, then this will return the range of only the first component (component zero). The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified. THIS METHOD IS NOT THREAD SAFE.
Definition at line 509 of file vtkDataArray.h.
|
inline |
The range of the data array values will be returned in the provided range array argument.
If the data array has multiple components, then this will return the range of only the first component (component zero). The range is computend and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified. THIS METHOD IS NOT THREAD SAFE.
Definition at line 519 of file vtkDataArray.h.
|
inline |
The range of the data array values for the given component will be returned in the provided range array argument.
If comp is -1, the range of the magnitude (L2 norm) over all components will be provided. The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
Definition at line 540 of file vtkDataArray.h.
|
inline |
The range of the data array values for the given component will be returned in the provided range array argument.
If comp is -1, the range of the magnitude (L2 norm) over all components will be provided. The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
Definition at line 541 of file vtkDataArray.h.
|
inline |
Return the range of the data array values for the given component.
If comp is -1, return the range of the magnitude (L2 norm) over all components.The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified or the requested component changes. THIS METHOD IS NOT THREAD SAFE.
Definition at line 557 of file vtkDataArray.h.
|
inline |
Return the range of the data array.
If the array has multiple components, then this will return the range of only the first component (component zero). The range is computed and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified. THIS METHOD IS NOT THREAD SAFE.
Definition at line 571 of file vtkDataArray.h.
|
inline |
The range of the data array values will be returned in the provided range array argument.
If the data array has multiple components, then this will return the range of only the first component (component zero). The range is computend and then cached, and will not be re-computed on subsequent calls to GetRange() unless the array is modified. THIS METHOD IS NOT THREAD SAFE.
Definition at line 581 of file vtkDataArray.h.
void vtkDataArray::GetDataTypeRange | ( | double | range[2] | ) |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
double vtkDataArray::GetDataTypeMin | ( | ) |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
double vtkDataArray::GetDataTypeMax | ( | ) |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
|
static |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
|
static |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
|
static |
These methods return the Min and Max possible range of the native data type.
For example if a vtkScalars consists of unsigned char data these will return (0,255).
|
virtual |
Return the maximum norm for the tuples.
Note that the max. is computed every time GetMaxNorm is called.
|
static |
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE, VTK_ID_TYPE.
Note that the data array returned has be deleted by the user.
|
static |
This key is used to hold tight bounds on the range of one component over all tuples of the array.
Two values (a minimum and maximum) are stored for each component. When GetRange() is called when no tuples are present in the array this value is set to { VTK_DOUBLE_MAX, VTK_DOUBLE_MIN }.
|
static |
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array.
Two values (a minimum and maximum) are stored for each component. When GetRange() is called when no tuples are present in the array this value is set to { VTK_DOUBLE_MAX, VTK_DOUBLE_MIN }.
|
static |
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array.
Two values (a minimum and maximum) are stored for each component. When GetFiniteRange() is called when no tuples are present in the array this value is set to { VTK_DOUBLE_MAX, VTK_DOUBLE_MIN }.
|
overridevirtual |
Removes out-of-date L2_NORM_RANGE() and L2_NORM_FINITE_RANGE() values.
Reimplemented from vtkAbstractArray.
Reimplemented in vtkMappedDataArray< Scalar >.
|
static |
A human-readable string indicating the units for the array data.
|
overridevirtual |
Copy information instance.
Arrays use information objects in a variety of ways. It is important to have flexibility in this regard because certain keys should not be copied, while others must be. NOTE: Up to the implmenter to make sure that keys not intended to be copied are excluded here.
Reimplemented from vtkAbstractArray.
|
inlineoverridevirtual |
Method for type-checking in FastDownCast implementations.
Reimplemented from vtkAbstractArray.
Reimplemented in vtkImplicitArray< BackendT >, vtkTypedDataArray< Scalar >, vtkSOADataArrayTemplate< ValueTypeT >, vtkScaledSOADataArrayTemplate< ValueTypeT >, vtkMappedDataArray< Scalar >, vtkAOSDataArrayTemplate< long >, vtkAOSDataArrayTemplate< Scalar >, vtkAOSDataArrayTemplate< unsigned long >, vtkAOSDataArrayTemplate< vtkIdType >, vtkAOSDataArrayTemplate< double >, vtkAOSDataArrayTemplate< unsigned long long >, vtkAOSDataArrayTemplate< float >, vtkAOSDataArrayTemplate< int >, vtkAOSDataArrayTemplate< unsigned int >, vtkAOSDataArrayTemplate< signed char >, vtkAOSDataArrayTemplate< unsigned short >, vtkAOSDataArrayTemplate< short >, vtkAOSDataArrayTemplate< unsigned char >, vtkAOSDataArrayTemplate< long long >, and vtkAOSDataArrayTemplate< char >.
Definition at line 663 of file vtkDataArray.h.
|
protectedvirtual |
Compute the range for a specific component.
If comp is set -1 then L2 norm is computed on all components. Call ClearRange to force a recomputation if it is needed. The range is copied to the range argument.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
|
protectedvirtual |
Compute the range for a specific component.
If comp is set -1 then L2 norm is computed on all components. Call ClearRange to force a recomputation if it is needed. The range is copied to the range argument.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
|
protectedvirtual |
Compute the range for a specific component.
If comp is set -1 then L2 norm is computed on all components. Call ClearRange to force a recomputation if it is needed. The range is copied to the range argument.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
|
protectedvirtual |
Compute the range for a specific component.
If comp is set -1 then L2 norm is computed on all components. Call ClearRange to force a recomputation if it is needed. The range is copied to the range argument.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
THIS METHOD IS NOT THREAD SAFE.
|
protectedvirtual |
Computes the range for each component of an array, the length of ranges must be two times the number of components.
Returns true if the range was computed. Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkPeriodicDataArray< Scalar >.
|
protectedvirtual |
Computes the range for each component of an array, the length of ranges must be two times the number of components.
Returns true if the range was computed. Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkmDataArray< T >.
|
protectedvirtual |
Returns true if the range was computed.
Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkPeriodicDataArray< Scalar >.
|
protectedvirtual |
Returns true if the range was computed.
Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkmDataArray< T >.
|
protectedvirtual |
Computes the range for each component of an array, the length of ranges must be two times the number of components.
Returns true if the range was computed. Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkPeriodicDataArray< Scalar >.
|
protectedvirtual |
Computes the range for each component of an array, the length of ranges must be two times the number of components.
Returns true if the range was computed. Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkmDataArray< T >.
|
protectedvirtual |
Returns true if the range was computed.
Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkPeriodicDataArray< Scalar >.
|
protectedvirtual |
Returns true if the range was computed.
Will return false if you try to compute the range of an array of length zero.
The version of this method with ghosts
and ghostsToSkip
allows to skip values in the computation of the range. At a given id, if ghosts[id] & ghostsToSkip != 0
, then the corresponding tuple is not accounted for when computing the range.
Note that when the ghost array is provided, no cached value is stored inside this instance. See vtkFieldData::GetFiniteRange
, which caches the computated range when using a ghost array.
Reimplemented in vtkmDataArray< T >.
|
friend |
Definition at line 666 of file vtkDataArray.h.
|
friend |
Definition at line 667 of file vtkDataArray.h.
|
protected |
Definition at line 794 of file vtkDataArray.h.
|
protected |
Definition at line 795 of file vtkDataArray.h.
|
protected |
Definition at line 796 of file vtkDataArray.h.