46 #ifndef vtkFieldData_h
47 #define vtkFieldData_h
49 #include "vtkCommonDataModelModule.h"
68 virtual void Initialize();
92 void AllocateArrays(
int num);
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;
226 virtual void CopyAllOn(
int unused=0);
237 virtual void CopyAllOff(
int unused=0);
266 virtual unsigned long GetActualMemorySize();
291 int GetArrayContainingComponent(
int i,
int& arrayComp);
302 int GetNumberOfComponents();
324 void SetNumberOfTuples(const
vtkIdType number);
349 ~vtkFieldData() VTK_OVERRIDE;
352 int NumberOfActiveArrays;
363 virtual
void InitializeFields();
373 void CopyFieldOnOff(
const char*
name,
int onOff);
374 void ClearFieldFlags();
375 int FindFlag(
const char*
field);
376 int GetFlag(
const char*
field);
384 void operator=(const
vtkFieldData&) VTK_DELETE_FUNCTION;
392 BasicIterator(
const BasicIterator&
source);
393 BasicIterator(
const int* list,
unsigned int listSize);
394 BasicIterator& operator=(
const BasicIterator& source);
395 virtual ~BasicIterator();
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());
459 void DetachFieldData();
vtkDataArray * GetArray(const char *arrayName)
Return the array with the name given.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract superclass for all arrays.
CopyFieldFlag * CopyFieldFlags
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkTypeUInt64 vtkMTimeType
void CopyFieldOn(const char *name)
Turn on/off the copying of the field specified by name.
BasicIterator & operator=(const BasicIterator &source)
a simple class to control print indentation
vtkAbstractArray * GetAbstractArray(const char *arrayName)
Return the array with the name given.
list of point or cell ids
abstract superclass for arrays of numeric data
virtual vtkMTimeType GetMTime()
Return this object's modified time.
virtual char * GetName()
Set/get array's name.
const char * GetArrayName(int i)
Get the name of ith array.
int HasArray(const char *name)
Return 1 if an array with the given name could be found.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void CopyFieldOff(const char *name)
int GetNumberOfArrays()
Get the number of arrays of data available.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate fields of data