46 #ifndef vtkFieldData_h
47 #define vtkFieldData_h
49 #include "vtkCommonDataModelModule.h"
102 return this->NumberOfActiveArrays;
143 return this->GetArray(arrayName, i);
169 return this->GetAbstractArray(arrayName, i);
182 return array ? 1 : 0;
291 int GetArrayContainingComponent(
int i,
int& arrayComp);
302 int GetNumberOfComponents();
352 int NumberOfActiveArrays;
363 virtual
void InitializeFields();
384 void operator=(
const vtkFieldData&) VTK_DELETE_FUNCTION;
400 return this->ListSize;
404 return this->List[this->Position];
409 return this->NextIndex();
413 return (this->Position >= this->ListSize);
418 return (this->End() ? -1 : this->List[this->Position]);
436 unsigned int listSize=0);
455 vtkDataArray* cur = Fields->GetArray(this->List[this->Position]);
456 return (cur? cur : this->Next());
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
BasicIterator(const BasicIterator &source)
BasicIterator(const int *list, unsigned int listSize)
BasicIterator & operator=(const BasicIterator &source)
void PrintSelf(ostream &os, vtkIndent indent)
Iterator(const Iterator &source)
Iterator & operator=(const Iterator &source)
represent and manipulate fields of data
int GetFlag(const char *field)
int GetNumberOfArrays()
Get the number of arrays of data available.
virtual void DeepCopy(vtkFieldData *da)
Copy a field by creating new data arrays (i.e., duplicate storage).
int AddArray(vtkAbstractArray *array)
Add an array to the array list.
void CopyFlags(const vtkFieldData *source)
static vtkFieldData * New()
void Reset()
Resets each data array in the field (Reset() does not release memory but it makes the arrays look lik...
void AllocateArrays(int num)
AllocateOfArrays actually sets the number of vtkAbstractArray pointers in the vtkFieldData object,...
virtual void RemoveArray(int index)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Allocate(const vtkIdType sz, const vtkIdType ext=1000)
Allocate data for each array.
vtkMTimeType GetMTime() override
Check object's components for modified times.
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
const char * GetArrayName(int i)
Get the name of ith array.
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
CopyFieldFlag * CopyFieldFlags
vtkDataArray * GetArray(int i)
Return the ith array in the field.
vtkAbstractArray * GetAbstractArray(const char *arrayName)
Return the array with the name given.
virtual unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this field data.
int FindFlag(const char *field)
vtkDataArray * GetArray(const char *arrayName)
Return the array with the name given.
virtual void Initialize()
Release all data but do not delete object.
virtual void CopyAllOff(int unused=0)
Turn off copying of all data.
virtual void ShallowCopy(vtkFieldData *da)
Copy a field by reference counting the data arrays.
void CopyFieldOn(const char *name)
Turn on/off the copying of the field specified by name.
void CopyFieldOff(const char *name)
vtkAbstractArray * GetAbstractArray(int i)
Returns the ith array in the field.
void Squeeze()
Squeezes each data array in the field (Squeeze() reclaims unused memory.)
void CopyFieldOnOff(const char *name, int onOff)
virtual void PassData(vtkFieldData *fd)
Pass entire arrays of input data through to output.
void CopyStructure(vtkFieldData *)
Copy data array structure from a given field.
vtkDataArray * GetArray(const char *arrayName, int &index)
Return the array with the name given.
int HasArray(const char *name)
Return 1 if an array with the given name could be found.
vtkAbstractArray * GetAbstractArray(const char *arrayName, int &index)
Return the array with the name given.
list of point or cell ids
a simple class to control print indentation
abstract base class for most VTK objects
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkTypeUInt64 vtkMTimeType