43 #ifndef vtkFieldData_h 44 #define vtkFieldData_h 46 #include "vtkCommonDataModelModule.h" 65 virtual void Initialize();
89 void AllocateArrays(
int num);
110 virtual void RemoveArray(
const char*
name);
111 virtual void RemoveArray(
int index);
149 return this->GetArray(arrayName, i);
177 return this->GetAbstractArray(arrayName, i);
190 return array ? 1 : 0;
203 return da ? da->
GetName() :
nullptr;
234 virtual void CopyAllOn(
int unused = 0);
245 virtual void CopyAllOff(
int unused = 0);
274 virtual unsigned long GetActualMemorySize();
299 int GetArrayContainingComponent(
int i,
int& arrayComp);
310 int GetNumberOfComponents();
332 void SetNumberOfTuples(
const vtkIdType number);
370 virtual void InitializeFields();
380 void CopyFieldOnOff(
const char*
name,
int onOff);
381 void ClearFieldFlags();
382 int FindFlag(
const char*
field);
383 int GetFlag(
const char*
field);
401 void PrintSelf(ostream& os,
vtkIndent indent);
408 return this->NextIndex();
410 int End()
const {
return (this->Position >= this->ListSize); }
414 return (this->End() ? -1 : this->List[this->Position]);
448 vtkDataArray* cur = Fields->GetArray(this->List[this->Position]);
449 return (cur ? cur : this->Next());
452 void DetachFieldData();
vtkDataArray * GetArray(const char *arrayName)
Not recommended for use.
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.
vtkTypeUInt32 vtkMTimeType
Abstract superclass for all arrays.
CopyFieldFlag * CopyFieldFlags
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph *>::edge_descriptor e, vtkGraph *)
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.
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