Go to the documentation of this file.
46 #ifndef vtkAbstractArray_h
47 #define vtkAbstractArray_h
129 {
return (this->MaxId + 1)/this->NumberOfComponents;}
244 {
return this->MaxId;}
306 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
384 double uncertainty = 1.e-6,
double minimumProminence = 1.e-3);
449 MAX_DISCRETE_VALUES = 32
471 return AbstractArray;
508 class vtkInternalComponentNames;
virtual void Initialize()=0
virtual vtkIdType LookupValue(vtkVariant value)=0
virtual int CopyInformation(vtkInformation *infoFrom, int deep=1)
virtual bool HasStandardMemoryLayout()
int CopyComponentNames(vtkAbstractArray *da)
virtual void InterpolateTuple(vtkIdType i, vtkIdList *ptIndices, vtkAbstractArray *source, double *weights)=0
virtual vtkIdType GetDataSize()
#define VTKCOMMONCORE_EXPORT
int GetNumberOfComponents()
virtual void ExportToVoidPointer(void *vtkNotUsed(out_ptr))
virtual void SetVoidArray(void *vtkNotUsed(array), vtkIdType vtkNotUsed(size), int vtkNotUsed(save))=0
virtual int Resize(vtkIdType numTuples)=0
virtual vtkArrayIterator * NewIterator()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)=0
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0
virtual void InterpolateTuple(vtkIdType i, vtkIdType id1, vtkAbstractArray *source1, vtkIdType id2, vtkAbstractArray *source2, double t)=0
#define vtkTypeMacro(thisClass, superclass)
vtkInformation * Information
abstract base class for most VTK objects
An array holding vtkVariants.
abstract superclass for arrays of numeric data
vtkInternalComponentNames * ComponentNames
virtual void GetTuples(vtkIdType p1, vtkIdType p2, vtkAbstractArray *output)
vtkInformation * GetInformation()
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual void InsertVariantValue(vtkIdType idx, vtkVariant value)
vtkIdType GetNumberOfTuples()
#define vtkSetClampMacro(name, type, min, max)
GLuint const GLchar * name
virtual int GetElementComponentSize()=0
GLsizei const GLfloat * value
virtual unsigned long GetActualMemorySize()=0
#define vtkImageScalarTypeNameMacro(type)
virtual void UpdateDiscreteValueSet(double uncertainty, double minProminence)
virtual void * GetVoidPointer(vtkIdType id)=0
GLboolean GLenum GLenum GLvoid * values
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)=0
virtual int IsNumeric()=0
virtual int GetDataTypeSize()=0
static vtkInformationDoubleVectorKey * DISCRETE_VALUE_SAMPLE_PARAMETERS()
a simple class to control print indentation
static vtkAbstractArray * CreateArray(int dataType)
virtual int GetDataType()=0
#define vtkSetStringMacro(name)
A atomic type representing the union of many types.
list of point or cell ids
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000)=0
virtual void SetInformation(vtkInformation *)
#define vtkGetMacro(name, type)
vtkGetStringMacro(ExtensionsString)
static int GetDataTypeSize(int type)
void SetComponentName(vtkIdType component, const char *name)
virtual int GetArrayType()
virtual void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)=0
virtual vtkVariant GetVariantValue(vtkIdType idx)
const char * GetComponentName(vtkIdType component)
Abstract superclass for all arrays.
vtkSetMacro(IgnoreDriverBugs, bool)
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
unsigned int MaxDiscreteValues
dynamic, self-adjusting array of vtkIdType
virtual void DeepCopy(vtkAbstractArray *da)
Abstract superclass to iterate over elements in an vtkAbstractArray.
virtual void LookupValue(vtkVariant value, vtkIdList *ids)=0
static vtkInformationIntegerKey * GUI_HIDE()
virtual void SetNumberOfTuples(vtkIdType number)=0
virtual void GetTuples(vtkIdList *ptIds, vtkAbstractArray *output)
virtual void ClearLookup()=0
static vtkInformationVariantVectorKey * DISCRETE_VALUES()
virtual void GetProminentComponentValues(int comp, vtkVariantArray *values, double uncertainty=1.e-6, double minimumProminence=1.e-3)
GLuint GLuint GLsizei GLenum type
static vtkInformationInformationVectorKey * PER_COMPONENT()
virtual void DataChanged()=0
virtual const char * GetDataTypeAsString(void)