46 #ifndef __vtkAbstractArray_h
47 #define __vtkAbstractArray_h
75 virtual void Initialize() = 0;
79 virtual int GetDataType() =0;
85 virtual int GetDataTypeSize() = 0;
86 static int GetDataTypeSize(
int type);
93 virtual int GetElementComponentSize() = 0;
110 bool HasAComponentName();
122 virtual void SetNumberOfTuples(
vtkIdType number) = 0;
127 {
return (this->MaxId + 1)/this->NumberOfComponents;}
174 virtual bool HasStandardMemoryLayout();
180 virtual void *GetVoidPointer(
vtkIdType id) = 0;
203 virtual void InterpolateTuple(
vtkIdType i,
210 virtual void Squeeze() = 0;
214 virtual int Resize(
vtkIdType numTuples) = 0;
231 {
return this->MaxId;}
241 virtual void SetVoidArray(
void *
vtkNotUsed(array),
257 virtual unsigned long GetActualMemorySize() = 0;
280 virtual int IsNumeric() = 0;
293 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
320 virtual void DataChanged() = 0;
325 virtual void ClearLookup() = 0;
370 double uncertainty = 1.e-6,
double minimumProminence = 1.e-3);
397 virtual int CopyInformation(
vtkInformation *infoFrom,
int deep=1);
435 MAX_DISCRETE_VALUES = 32
457 return AbstractArray;
478 virtual void UpdateDiscreteValueSet(
double uncertainty,
double minProminence);
494 class vtkInternalComponentNames;
GLuint GLuint GLsizei GLenum type
abstract base class for most VTK objects
An array holding vtkVariants.
vtkIdType GetNumberOfTuples()
Abstract superclass for all arrays.
#define VTKCOMMONCORE_EXPORT
#define vtkGetMacro(name, type)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
#define vtkSetClampMacro(name, type, min, max)
virtual int GetArrayType()
dynamic, self-adjusting array of vtkIdType
GLsizei const GLfloat * value
int GetNumberOfComponents()
#define vtkSetStringMacro(name)
#define vtkTypeMacro(thisClass, superclass)
A atomic type representing the union of many types.
virtual vtkIdType GetDataSize()
vtkInformation * Information
virtual void ExportToVoidPointer(void *vtkNotUsed(out_ptr))
GLuint const GLchar * name
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
GLboolean GLenum GLenum GLvoid * values
list of point or cell ids
virtual const char * GetDataTypeAsString(void)
abstract superclass for arrays of numeric data
Abstract superclass to iterate over elements in an vtkAbstractArray.
#define vtkGetStringMacro(name)
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkInternalComponentNames * ComponentNames
#define vtkImageScalarTypeNameMacro(type)
unsigned int MaxDiscreteValues
#define vtkSetMacro(name, type)