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