45 #ifndef vtkFieldData_h
46 #define vtkFieldData_h
65 virtual void Initialize();
80 void AllocateArrays(
int num);
88 return this->NumberOfActiveArrays;
102 this->GetAbstractArray(name, i);
103 this->RemoveArray(i);
125 return this->GetArray(arrayName, i);
145 return this->GetAbstractArray(arrayName, i);
156 return array ? 1 : 0;
189 virtual void CopyAllOn(
int unused=0);
196 virtual void CopyAllOff(
int unused=0);
216 virtual unsigned long GetActualMemorySize();
235 int GetArrayContainingComponent(
int i,
int& arrayComp);
243 int GetNumberOfComponents();
259 void SetNumberOfTuples(
const vtkIdType number);
287 virtual void RemoveArray(
int index);
290 virtual void InitializeFields();
302 void CopyFieldOnOff(
const char*
name,
int onOff);
303 void ClearFieldFlags();
304 int FindFlag(
const char*
field);
305 int GetFlag(
const char*
field);
325 void PrintSelf(ostream &os,
vtkIndent indent);
329 return this->ListSize;
333 return this->List[this->Position];
338 return this->NextIndex();
342 return (this->Position >= this->ListSize);
347 return (this->End() ? -1 : this->List[this->Position]);
365 unsigned int listSize=0);
384 vtkDataArray* cur = Fields->GetArray(this->List[this->Position]);
385 return (cur? cur : this->Next());
388 void DetachFieldData();
vtkDataArray * GetArray(const char *arrayName)
abstract base class for most VTK objects
Abstract superclass for all arrays.
CopyFieldFlag * CopyFieldFlags
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
void CopyFieldOn(const char *name)
BasicIterator & operator=(const BasicIterator &source)
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
vtkAbstractArray * GetAbstractArray(const char *arrayName)
list of point or cell ids
abstract superclass for arrays of numeric data
const char * GetArrayName(int i)
int HasArray(const char *name)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void CopyFieldOff(const char *name)
virtual void RemoveArray(const char *name)
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate fields of data