46 #ifndef vtkAbstractArray_h 47 #define vtkAbstractArray_h 77 virtual void Initialize() = 0;
81 virtual int GetDataType() =0;
87 virtual int GetDataTypeSize() = 0;
88 static int GetDataTypeSize(
int type);
95 virtual int GetElementComponentSize() = 0;
109 const char* GetComponentName(
vtkIdType component );
112 bool HasAComponentName();
124 virtual void SetNumberOfTuples(
vtkIdType number) = 0;
129 {
return (this->MaxId + 1)/this->NumberOfComponents;}
184 virtual bool HasStandardMemoryLayout();
190 virtual void *GetVoidPointer(
vtkIdType id) = 0;
213 virtual void InterpolateTuple(
vtkIdType i,
220 virtual void Squeeze() = 0;
224 virtual int Resize(
vtkIdType numTuples) = 0;
244 {
return this->MaxId;}
254 virtual void SetVoidArray(
void *
vtkNotUsed(array),
270 virtual unsigned long GetActualMemorySize() = 0;
293 virtual int IsNumeric() = 0;
306 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
333 virtual void DataChanged() = 0;
338 virtual void ClearLookup() = 0;
384 double uncertainty = 1.e-6,
double minimumProminence = 1.e-3);
411 virtual int CopyInformation(
vtkInformation *infoFrom,
int deep=1);
449 MAX_DISCRETE_VALUES = 32
471 return AbstractArray;
492 virtual void UpdateDiscreteValueSet(
double uncertainty,
double minProminence);
508 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
static void InsertTuples(vtkDataArray *dst, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)
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)