138#ifndef vtkDataArray_h
139#define vtkDataArray_h
142#include "vtkCommonCoreModule.h"
145VTK_ABI_NAMESPACE_BEGIN
158 using ArrayTypeTag = std::integral_constant<int, vtkArrayTypes::VTK_DATA_ARRAY>;
203 double* weights)
override;
303 double val4,
double val5,
double val6,
double val7,
double val8)
329 double val4,
double val5)
VTK_EXPECTS(0 <= tupleIdx);
331 double val4,
double val5,
double val6,
double val7,
double val8)
VTK_EXPECTS(0 <= tupleIdx);
355 double val0,
double val1,
double val2,
double val3,
double val4,
double val5);
357 double val5,
double val6,
double val7,
double val8);
441 virtual
void Fill(
double value);
509 void GetRange(
double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip)
571 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip)
696 int GetArrayType()
const override {
return vtkDataArray::ArrayTypeTag::value; }
721 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
743 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
764 double* ranges,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
782 double range[2],
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
802 double* ranges,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
820 double range[2],
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
845VTK_ABI_NAMESPACE_BEGIN
int GetNumberOfComponents() const
Set/Get the dimension (n) of the components.
vtkIdType GetNumberOfTuples() const
Get the number of complete tuples (a component group) in the array.
virtual int GetDataTypeSize() const =0
Return the size of the underlying data type.
std::integral_constant< int, VTK_OPAQUE > DataTypeTag
vtkIdType GetNumberOfValues() const
Get the total number of values in the array.
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
void InsertNextTuple1(double value)
These methods are included as convenience for the wrappers.
double * GetTuple4(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
double * GetRange()
Return the range of the data array.
virtual void ComputeRange(double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff)
Compute the range for a specific component.
static double GetDataTypeMin(int type)
These methods return the Min and Max possible range of the native data type.
virtual void FillComponent(int compIdx, double value)
Fill a component of a data array with a specified value.
double * GetTuple2(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
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 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 ...
virtual bool ComputeVectorRange(double range[2])
Returns true if the range was computed.
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.
void SetTuple4(vtkIdType tupleIdx, double val0, double val1, double val2, double val3)
These methods are included as convenience for the wrappers.
int IsNumeric() const override
This method is here to make backward compatibility easier.
void CreateDefaultLookupTable()
Create default lookup table.
void DeepCopy(vtkAbstractArray *aa) override
Deep copy of data.
void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
See documentation from parent class.
void GetDataTypeRange(double range[2])
These methods return the Min and Max possible range of the native data type.
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,...
double * GetTuple9(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
virtual void ComputeRange(double range[2], int comp)
Compute the range for a specific component.
double * GetFiniteRange()
Return the range of the data array.
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 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.
unsigned long GetActualMemorySize() const override
Return the memory in kibibytes (1024 bytes) consumed by this data array.
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
See documentation from parent class.
virtual bool ComputeFiniteVectorRange(double range[2], const unsigned char *ghosts, unsigned char ghostsToSkip=0xff)
Returns true if the range was computed.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void GetIntegerTuple(vtkIdType tupleIdx, vtkTypeInt64 *tuple)
Get/set the data at tupleIdx by filling in a user-provided array of integers.
virtual void SetIntegerTuple(vtkIdType tupleIdx, vtkTypeInt64 *tuple)
Get/set the data at tupleIdx by filling in a user-provided array of integers.
void InsertNextTuple3(double val0, double val1, double val2)
These methods are included as convenience for the wrappers.
void InsertTuple2(vtkIdType tupleIdx, double val0, double val1)
These methods are included as convenience for the wrappers.
void InsertNextTuple4(double val0, double val1, double val2, double val3)
These methods are included as convenience for the wrappers.
virtual bool ComputeVectorRange(double range[2], const unsigned char *ghosts, unsigned char ghostsToSkip=0xff)
Returns true if the range was computed.
double * GetTuple6(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
int GetArrayType() const override
Method for type-checking in FastDownCast implementations.
int GetElementComponentSize() const override
Return the size, in bytes, of the lowest-level element of an array.
virtual bool ComputeFiniteVectorRange(double range[2])
Returns true if the range was computed.
void SetTuple1(vtkIdType tupleIdx, double value)
These methods are included as convenience for the wrappers.
virtual void RemoveTuple(vtkIdType tupleIdx)=0
These methods remove tuples from the data array.
virtual void SetUnsignedTuple(vtkIdType tupleIdx, vtkTypeUInt64 *tuple)
Get/set the data at tupleIdx by filling in a user-provided array of unsigned integers.
virtual void GetUnsignedTuple(vtkIdType tupleIdx, vtkTypeUInt64 *tuple)
Get/set the data at tupleIdx by filling in a user-provided array of unsigned integers.
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 arr...
virtual void RemoveLastTuple()
These methods remove tuples from the data array.
double * GetRange(int comp)
Return the range of the data array values for the given component.
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
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 arr...
void InsertNextTuple6(double val0, double val1, double val2, double val3, double val4, double val5)
These methods are included as convenience for the wrappers.
void GetTuples(vtkIdType p1, vtkIdType p2, vtkAbstractArray *output) override
Get the tuples for the range of tuple ids specified (i.e., p1->p2 inclusive).
double GetDataTypeMin()
These methods return the Min and Max possible range of the native data type.
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.
virtual void SetComponent(vtkIdType tupleIdx, int compIdx, double value)
Set the data component at the location specified by tupleIdx and compIdx to value.
void InsertTuplesStartingAt(vtkIdType dstStart, vtkIdList *srcIds, vtkAbstractArray *source) override
See documentation from parent class.
virtual void ShallowCopy(vtkDataArray *other)
Create a shallow copy of other into this, if possible.
virtual void InsertComponent(vtkIdType tupleIdx, int compIdx, double value)
Insert value 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.
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...
double GetTuple1(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
double GetDataTypeMax()
These methods return the Min and Max possible range of the native data type.
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 SetLookupTable(vtkLookupTable *lut)
Set/get the lookup table associated with this scalar data, if any.
void GetRange(double range[2])
The range of the data array values will be returned in the provided range array argument.
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.
virtual double GetComponent(vtkIdType tupleIdx, int compIdx)
Return the data component at the location specified by tupleIdx and compIdx.
int CopyInformation(vtkInformation *infoFrom, vtkTypeBool deep=1) override
Copy information instance.
vtkIdType InsertNextTuple(vtkIdType srcTupleIdx, vtkAbstractArray *source) override
See documentation from parent class.
virtual void ComputeFiniteRange(double range[2], int comp)
Compute the range for a specific component.
void InsertNextTuple2(double val0, double val1)
These methods are included as convenience for the wrappers.
virtual void RemoveFirstTuple()
These methods remove tuples from the data array.
bool CopyComponent(int dstComponent, vtkAbstractArray *src, int srcComponent) override
Copy a component from one data array into a component on this data array.
virtual double GetMaxNorm()
Return the maximum norm for the tuples.
std::integral_constant< int, vtkArrayTypes::VTK_DATA_ARRAY > ArrayTypeTag
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
See documentation from parent class.
void InsertTuple4(vtkIdType tupleIdx, double val0, double val1, double val2, double val3)
These methods are included as convenience for the wrappers.
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 arr...
static void GetDataTypeRange(int type, double range[2])
These methods return the Min and Max possible range of the native data type.
virtual void * WriteVoidPointer(vtkIdType valueIdx, vtkIdType numValues)=0
Get the address of a particular data index.
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 ...
virtual void ComputeFiniteRange(double range[2], int comp, const unsigned char *ghosts, unsigned char ghostsToSkip=0xff)
Compute the range for a specific component.
static vtkDataArray * CreateDataArray(int dataType)
Creates an array for dataType where dataType is one of VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR,...
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 arr...
void InsertTuple3(vtkIdType tupleIdx, double val0, double val1, double val2)
These methods are included as convenience for the wrappers.
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.
void SetTuple3(vtkIdType tupleIdx, double val0, double val1, double val2)
These methods are included as convenience for the wrappers.
void GetFiniteRange(double range[2])
The range of the data array values will be returned in the provided range array argument.
friend class vtkFieldData
double * GetFiniteRange(int comp)
Return the range of the data array values for the given component.
double * GetTuple3(vtkIdType tupleIdx)
These methods are included as convenience for the wrappers.
void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override
See documentation from parent class.
void SetTuple2(vtkIdType tupleIdx, double val0, double val1)
These methods are included as convenience for the wrappers.
void InsertTuple1(vtkIdType tupleIdx, double value)
These methods are included as convenience for the wrappers.
virtual bool ComputeFiniteScalarRange(double *ranges)
Computes the range for each component of an array, the length of ranges must be two times the number ...
void Modified() override
Removes out-of-date L2_NORM_RANGE() and L2_NORM_FINITE_RANGE() values.
static double GetDataTypeMax(int type)
These methods return the Min and Max possible range of the native data type.
vtkLookupTable * LookupTable
dynamic, self-adjusting array of double
list of point or cell ids
a simple class to control print indentation
map scalar values into colors via a lookup table
represent and manipulate 3D points
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_SIZEHINT(...)
#define VTK_MARSHALMANUAL