35 #ifndef vtkDataArray_h 36 #define vtkDataArray_h 38 #include "vtkCommonCoreModule.h" 101 virtual double *GetTuple(
vtkIdType tupleIdx) = 0;
108 virtual void GetTuple(
vtkIdType tupleIdx,
double * tuple) = 0;
144 void SetTuple2(
vtkIdType tupleIdx,
double val0,
double val1);
145 void SetTuple3(
vtkIdType tupleIdx,
double val0,
double val1,
double val2);
146 void SetTuple4(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
148 void SetTuple6(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
149 double val3,
double val4,
double val5);
150 void SetTuple9(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
151 double val3,
double val4,
double val5,
double val6,
152 double val7,
double val8);
171 void InsertTuple2(
vtkIdType tupleIdx,
double val0,
double val1);
172 void InsertTuple3(
vtkIdType tupleIdx,
double val0,
double val1,
double val2);
173 void InsertTuple4(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
175 void InsertTuple6(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
176 double val3,
double val4,
double val5);
177 void InsertTuple9(
vtkIdType tupleIdx,
double val0,
double val1,
double val2,
178 double val3,
double val4,
double val5,
double val6,
179 double val7,
double val8);
198 void InsertNextTuple1(
double value);
199 void InsertNextTuple2(
double val0,
double val1);
200 void InsertNextTuple3(
double val0,
double val1,
double val2);
201 void InsertNextTuple4(
double val0,
double val1,
double val2,
203 void InsertNextTuple6(
double val0,
double val1,
double val2,
204 double val3,
double val4,
double val5);
205 void InsertNextTuple9(
double val0,
double val1,
double val2,
206 double val3,
double val4,
double val5,
double val6,
207 double val7,
double val8);
216 virtual void RemoveTuple(
vtkIdType tupleIdx) = 0;
218 virtual void RemoveLastTuple();
225 virtual double GetComponent(
vtkIdType tupleIdx,
int compIdx);
234 virtual void SetComponent(
vtkIdType tupleIdx,
int compIdx,
double value);
240 virtual void InsertComponent(
vtkIdType tupleIdx,
int compIdx,
double value);
279 virtual void FillComponent(
int compIdx,
double value);
284 virtual void Fill(
double value);
294 virtual void CopyComponent(
int dstComponent,
vtkDataArray *src,
318 void CreateDefaultLookupTable();
337 void GetRange(
double range[2],
int comp)
339 this->ComputeRange(
range, comp);
353 this->GetRange(this->Range, comp);
367 return this->GetRange(0);
380 this->GetRange(
range,0);
394 this->ComputeFiniteRange(
range, comp);
408 this->GetFiniteRange(this->FiniteRange, comp);
409 return this->FiniteRange;
422 return this->GetFiniteRange(0);
435 this->GetFiniteRange(
range, 0);
444 void GetDataTypeRange(
double range[2]);
445 double GetDataTypeMin();
446 double GetDataTypeMax();
447 static void GetDataTypeRange(
int type,
double range[2]);
448 static double GetDataTypeMin(
int type);
449 static double GetDataTypeMax(
int type);
456 virtual double GetMaxNorm();
533 virtual void ComputeRange(
double range[2],
int comp);
542 virtual void ComputeFiniteRange(
double range[2],
int comp);
550 virtual bool ComputeScalarRange(
double* ranges);
554 virtual bool ComputeVectorRange(
double range[2]);
562 virtual bool ComputeFiniteScalarRange(
double* ranges);
566 virtual bool ComputeFiniteVectorRange(
double range[2]);
574 double FiniteRange[2];
582 void operator=(const
vtkDataArray&) VTK_DELETE_FUNCTION;
590 switch (
source->GetArrayType())
void GetRange(double range[2])
The the range of the data array values will be returned in the provided range array argument...
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
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...
virtual void DeepCopy(vtkAbstractArray *da)
Deep copy of data.
virtual void GetTuples(vtkIdList *tupleIds, vtkAbstractArray *output)
Given a list of tuple ids, return an array of tuples.
Abstract superclass for all arrays.
virtual int GetDataTypeSize()=0
Return the size of the underlying data type.
map scalar values into colors via a lookup table
virtual void InterpolateTuple(vtkIdType dstTupleIdx, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)=0
Set the tuple at dstTupleIdx in this array to the interpolated tuple value, given the ptIndices in th...
void GetFiniteRange(double range[2])
The 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.
virtual int CopyInformation(vtkInformation *infoFrom, int deep=1)
Copy information instance.
dynamic, self-adjusting array of double
double * GetRange(int comp)
Return the range of the data array values for the given component.
double * GetFiniteRange()
Return the range of the data array.
a simple class to control print indentation
double * GetRange()
Return the range of the data array.
list of point or cell ids
abstract superclass for arrays of numeric data
int GetElementComponentSize() override
Return the size, in bytes, of the lowest-level element of an array.
virtual void InsertTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source)=0
Insert the tuple at srcTupleIdx in the source array into this array at dstTupleIdx.
int IsNumeric() override
This method is here to make backward compatibility easier.
boost::graph_traits< vtkGraph *>::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual vtkIdType InsertNextTuple(vtkIdType srcTupleIdx, vtkAbstractArray *source)=0
Insert the tuple from srcTupleIdx in the source array at the end of this array.
virtual void SetTuple(vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray *source)=0
Set the tuple at dstTupleIdx in this array to the tuple at srcTupleIdx in the source array...
virtual unsigned long GetActualMemorySize()=0
Return the memory in kibibytes (1024 bytes) consumed by this data array.
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0
Copy the tuples indexed in srcIds from the source array to the tuple locations indexed by dstIds in t...
represent and manipulate 3D points
virtual void RemoveFirstTuple()
These methods remove tuples from the data array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.