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);
155 return this->GetArray(arrayName, i);
183 return this->GetAbstractArray(arrayName, i);
196 return array ? 1 : 0;
209 return da ? da->
GetName() :
nullptr;
414 return this->ListSize;
418 return this->List[this->Position];
423 return this->NextIndex();
427 return (this->Position >= this->ListSize);
432 return (this->End() ? -1 : this->List[this->Position]);
450 unsigned int listSize=0);
469 vtkDataArray* cur = Fields->GetArray(this->List[this->Position]);
470 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)
vtkIdType GetNumberOfTuples()
Get the number of tuples in the field.
Iterator(vtkFieldData *dsa, const int *list=nullptr, unsigned int listSize=0)
vtkAbstractArray * GetAbstractArray(const char *arrayName)
Return the array with the name given.
vtkDataArray * GetArray(const char *arrayName)
Not recommended for use.
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)
Not recommended for use.
vtkAbstractArray * GetAbstractArray(int i)
Returns the ith array in the field.
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
void SetNumberOfTuples(const vtkIdType number)
Set the number of tuples for each data array in the field.
abstract base class for most VTK objects
void InsertTuple(const vtkIdType i, const vtkIdType j, vtkFieldData *source)
Insert the jth tuple in source field data at the ith location.
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)
Not recommended for use.
represent and manipulate fields of data
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 SetTuple(const vtkIdType i, const vtkIdType j, vtkFieldData *source)
Set the jth tuple in source field data at the ith location.
void CopyStructure(vtkFieldData *)
Copy data array structure from a given field.
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
virtual void InitializeFields()
Release all data but do not delete object.
void CopyFieldOnOff(const char *name, int onOff)
void CopyFieldOff(const char *name)
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000)
Allocate data for each array.
void CopyFlags(const vtkFieldData *source)
Abstract superclass for all arrays.
int GetNumberOfArrays()
Get the number of arrays of data available.
vtkIdType InsertNextTuple(const vtkIdType j, vtkFieldData *source)
Insert the jth tuple in source field data at the end of the tuple matrix.
int GetArrayContainingComponent(int i, int &arrayComp)
Return the array containing the ith component of the field.
void Reset()
Resets each data array in the field (Reset() does not release memory but it makes the arrays look lik...
void SetArray(int i, vtkAbstractArray *array)
Set an array to define the field.
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.
int GetNumberOfComponents()
Get the number of components in the field.
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()
vtkTypeUInt32 vtkMTimeType
void GetField(vtkIdList *ptId, vtkFieldData *f)
Get a field from a list of ids.