Go to the documentation of this file.
41 #ifndef vtkDataArray_h
42 #define vtkDataArray_h
44 #include "vtkCommonCoreModule.h"
155 double val3,
double val4,
double val5);
157 double val3,
double val4,
double val5,
double val6,
158 double val7,
double val8);
182 double val3,
double val4,
double val5);
184 double val3,
double val4,
double val5,
double val6,
185 double val7,
double val8);
210 double val3,
double val4,
double val5);
212 double val3,
double val4,
double val5,
double val6,
213 double val7,
double val8);
319 void CreateDefaultLookupTable();
338 void GetRange(
double range[2],
int comp)
340 this->ComputeRange(
range, comp);
354 this->GetRange(this->Range, comp);
368 return this->GetRange(0);
381 this->GetRange(
range,0);
488 void operator=(const
vtkDataArray&) VTK_DELETE_FUNCTION;
496 switch (
source->GetArrayType())
virtual void * WriteVoidPointer(vtkIdType valueIdx, vtkIdType numValues)=0
Get the address of a particular data index.
represent and manipulate 3D points
void InsertNextTuple3(double val0, double val1, double val2)
void InsertNextTuple4(double val0, double val1, double val2, double val3)
void SetTuple3(vtkIdType tupleIdx, double val0, double val1, double val2)
static vtkInformationDoubleVectorKey * COMPONENT_RANGE()
This key is used to hold tight bounds on the range of one component over all tuples of the array.
virtual void DeepCopy(vtkDataArray *da)
void GetTuples(vtkIdType p1, vtkIdType p2, vtkAbstractArray *output) override
Get the tuples for the range of tuple ids specified (i.e., p1->p2 inclusive).
static VTK_NEWINSTANCE vtkDataArray * CreateDataArray(int dataType)
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR,...
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
virtual void InsertTuple(vtkIdType tupleIdx, const double *tuple)=0
void SetTuple1(vtkIdType tupleIdx, double value)
These methods are included as convenience for the wrappers.
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 insert...
virtual void RemoveLastTuple()
double * GetTuple9(vtkIdType tupleIdx)
void InsertNextTuple9(double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8)
int CopyInformation(vtkInformation *infoFrom, int deep=1) override
Copy information instance.
virtual vtkIdType InsertNextTuple(const double *tuple)=0
double * GetTuple3(vtkIdType tupleIdx)
virtual void FillComponent(int compIdx, double value)
Fill a component of a data array with a specified value.
virtual double GetComponent(vtkIdType tupleIdx, int compIdx)
Return the data component at the location specified by tupleIdx and compIdx.
void GetTuples(vtkIdList *tupleIds, vtkAbstractArray *output) override
Given a list of tuple ids, return an array of tuples.
void InsertNextTuple6(double val0, double val1, double val2, double val3, double val4, double val5)
static void GetDataTypeRange(int type, double range[2])
abstract superclass for arrays of numeric data
void InsertTuple3(vtkIdType tupleIdx, double val0, double val1, double val2)
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
Copy the tuples indexed in srcIds from the source array to the tuple locations indexed by dstIds in t...
void InsertTuple9(vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8)
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
double * GetTuple6(vtkIdType tupleIdx)
int GetElementComponentSize() override
Return the size, in bytes, of the lowest-level element of an array.
void InsertNextTuple1(double value)
These methods are included as convenience for the wrappers.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual void InsertComponent(vtkIdType tupleIdx, int compIdx, double value)
Insert value at the location specified by tupleIdx and compIdx.
virtual bool ComputeVectorRange(double range[2])
unsigned long GetActualMemorySize() override
Return the memory in kibibytes (1024 bytes) consumed by this data array.
virtual double GetMaxNorm()
Return the maximum norm for the tuples.
int IsNumeric() override
This method is here to make backward compatibility easier.
void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array.
double * GetTuple4(vtkIdType tupleIdx)
virtual void SetTuple(vtkIdType tupleIdx, const float *tuple)
Set the data tuple at tupleIdx.
virtual void ComputeRange(double range[2], int comp)
Compute the range for a specific component.
void InsertNextTuple2(double val0, double val1)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkInformationDoubleVectorKey * L2_NORM_RANGE()
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array.
virtual int GetDataTypeSize()=0
Return the size of the underlying data type.
void GetRange(double range[2])
The the range of the data array values will be returned in the provided range array argument.
a simple class to control print indentation
static double GetDataTypeMax(int type)
void InsertTuple1(vtkIdType tupleIdx, double value)
These methods are included as convenience for the wrappers.
double * GetTuple2(vtkIdType tupleIdx)
void GetDataTypeRange(double range[2])
These methods return the Min and Max possible range of the native data type.
void InsertTuple2(vtkIdType tupleIdx, double val0, double val1)
list of point or cell ids
virtual void SetComponent(vtkIdType tupleIdx, int compIdx, double value)
Set the data component at the location specified by tupleIdx and compIdx to value.
void SetTuple9(vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5, double val6, double val7, double val8)
double * GetRange(int comp)
Return the range of the data array values for the given component.
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 larg...
void SetTuple6(vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5)
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 th...
virtual void ShallowCopy(vtkDataArray *other)
Create a shallow copy of other into this, if possible.
virtual void SetTuple(vtkIdType tupleIdx, const double *tuple)
static double GetDataTypeMin(int type)
Abstract superclass for all arrays.
void SetTuple4(vtkIdType tupleIdx, double val0, double val1, double val2, double val3)
map scalar values into colors via a lookup table
double * GetRange()
Return the range of the data array.
static vtkInformationStringKey * UNITS_LABEL()
A human-readable string indicating the units for the array data.
virtual void RemoveFirstTuple()
virtual bool ComputeScalarRange(double *ranges)
Computes the range for each component of an array, the length of ranges must be two times the number ...
void SetTuple2(vtkIdType tupleIdx, double val0, double val1)
vtkIdType InsertNextTuple(vtkIdType srcTupleIdx, vtkAbstractArray *source) override
Insert the tuple from srcTupleIdx in the source array at the end of this array.
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
void InsertTuple6(vtkIdType tupleIdx, double val0, double val1, double val2, double val3, double val4, double val5)
dynamic, self-adjusting array of double
virtual void CopyComponent(int dstComponent, vtkDataArray *src, int srcComponent)
Copy a component from one data array into a component on this data array.
void DeepCopy(vtkAbstractArray *aa) override
Deep copy of data.
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).
void InsertTuple4(vtkIdType tupleIdx, double val0, double val1, double val2, double val3)
virtual void InsertTuple(vtkIdType tupleIdx, const float *tuple)=0
Insert the data tuple at tupleIdx.
double GetTuple1(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
virtual void RemoveTuple(vtkIdType tupleIdx)=0
These methods remove tuples from the data array.
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,...
void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override
Copy n consecutive tuples starting at srcStart from the source array to this array,...