33#include "vtkCommonCoreModule.h"
34#include "vtkVTK_USE_SCALED_SOA_ARRAYS.h"
36VTK_ABI_NAMESPACE_BEGIN
92 double* weights)
override;
137 virtual
void SetTuple(
vtkIdType tupleIdx, const
float* tuple)
138 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
139 virtual
void SetTuple(
vtkIdType tupleIdx, const
double* tuple)
140 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
150 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
151 void SetTuple2(
vtkIdType tupleIdx,
double val0,
double val1)
152 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
153 void SetTuple3(
vtkIdType tupleIdx,
double val0,
double val1,
double val2)
154 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
155 void SetTuple4(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3)
156 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
157 void SetTuple6(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3,
158 double val4,
double val5)
VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
159 void SetTuple9(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3,
160 double val4,
double val5,
double val6,
double val7,
double val8)
161 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples());
181 void InsertTuple3(
vtkIdType tupleIdx,
double val0,
double val1,
double val2)
183 void InsertTuple4(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3)
185 void InsertTuple6(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3,
186 double val4,
double val5)
VTK_EXPECTS(0 <= tupleIdx);
187 void InsertTuple9(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
double val3,
188 double val4,
double val5,
double val6,
double val7,
double val8)
VTK_EXPECTS(0 <= tupleIdx);
197 virtual
vtkIdType InsertNextTuple(const
float* tuple) = 0;
198 virtual
vtkIdType InsertNextTuple(const
double* tuple) = 0;
207 void InsertNextTuple1(
double value);
208 void InsertNextTuple2(
double val0,
double val1);
209 void InsertNextTuple3(
double val0,
double val1,
double val2);
210 void InsertNextTuple4(
double val0,
double val1,
double val2,
double val3);
211 void InsertNextTuple6(
212 double val0,
double val1,
double val2,
double val3,
double val4,
double val5);
213 void InsertNextTuple9(
double val0,
double val1,
double val2,
double val3,
double val4,
214 double val5,
double val6,
double val7,
double val8);
224 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples()) = 0;
225 virtual
void RemoveFirstTuple() { this->RemoveTuple(0); }
243 virtual
void SetComponent(
vtkIdType tupleIdx,
int compIdx,
double value)
244 VTK_EXPECTS(0 <= tupleIdx && tupleIdx < GetNumberOfTuples())
245 VTK_EXPECTS(0 <= compIdx && compIdx < GetNumberOfComponents());
251 virtual
void InsertComponent(
vtkIdType tupleIdx,
int compIdx,
double value)
262 virtual
void GetData(
291 virtual
void FillComponent(
int compIdx,
double value)
292 VTK_EXPECTS(0 <= compIdx && compIdx < GetNumberOfComponents());
297 virtual
void Fill(
double value);
307 virtual
void CopyComponent(
int dstComponent,
vtkDataArray* src,
int srcComponent);
324 unsigned long GetActualMemorySize() const override;
330 void CreateDefaultLookupTable();
358 void GetRange(
double range[2],
int comp) { this->ComputeRange(range, comp); }
359 void GetRange(
double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip)
361 this->ComputeRange(range, comp, ghosts, ghostsToSkip);
376 this->GetRange(this->Range, comp);
419 void GetFiniteRange(
double range[2],
int comp) { this->ComputeFiniteRange(range, comp); }
421 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip)
423 this->ComputeFiniteRange(range, comp, ghosts, ghostsToSkip);
438 this->GetFiniteRange(this->FiniteRange, comp);
439 return this->FiniteRange;
567 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
589 double range[2],
int comp,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
610 double* ranges,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
628 double range[2],
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
648 double* ranges,
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
666 double range[2],
const unsigned char* ghosts,
unsigned char ghostsToSkip = 0xff);
675 double FiniteRange[2];
689 switch (
source->GetArrayType())
712VTK_ABI_NAMESPACE_BEGIN
Abstract superclass for all arrays.
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.
abstract superclass for arrays of numeric data
virtual double * GetTuple(vtkIdType tupleIdx)=0
Get the data tuple at tupleIdx.
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.
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.
int IsNumeric() const override
This method is here to make backward compatibility easier.
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,...
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 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 bool ComputeVectorRange(double range[2], const unsigned char *ghosts, unsigned char ghostsToSkip=0xff)
Returns true if the range was computed.
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.
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 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.
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 GetTuples(vtkIdType p1, vtkIdType p2, vtkAbstractArray *output) override
Get the tuples for the range of tuple ids specified (i.e., p1->p2 inclusive).
static vtkInformationDoubleVectorKey * L2_NORM_RANGE()
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array.
double GetDataTypeMin()
These methods return the Min and Max possible range of the native data type.
void InsertTuplesStartingAt(vtkIdType dstStart, vtkIdList *srcIds, vtkAbstractArray *source) override
See documentation from parent class.
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.
static vtkInformationDoubleVectorKey * L2_NORM_FINITE_RANGE()
This key is used to hold tight bounds on the $L_2$ norm of tuples in the array.
double GetDataTypeMax()
These methods return the Min and Max possible range of the native data type.
void GetRange(double range[2])
The range of the data array values will be returned in the provided range array argument.
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
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.
virtual double GetMaxNorm()
Return the maximum norm for the tuples.
void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source) override
See documentation from parent class.
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 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 GetFiniteRange(double range[2])
The range of the data array values will be returned in the provided range array argument.
double * GetFiniteRange(int comp)
Return the range of the data array values for the given component.
void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override
See documentation from parent class.
static vtkInformationStringKey * UNITS_LABEL()
A human-readable string indicating the units for the array data.
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
represent and manipulate fields of data
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(...)