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);
140 vtkDataArray *GetArray(
const char *arrayName,
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;
228 void CopyFieldOn(
const char* name) { this->CopyFieldOnOff(name, 1); }
240 virtual void CopyAllOn(
int unused=0);
251 virtual void CopyAllOff(
int unused=0);
280 virtual unsigned long GetActualMemorySize();
305 int GetArrayContainingComponent(
int i,
int& arrayComp);
316 int GetNumberOfComponents();
338 void SetNumberOfTuples(
const vtkIdType number);
377 virtual void InitializeFields();
387 void CopyFieldOnOff(
const char* name,
int onOff);
388 void ClearFieldFlags();
389 int FindFlag(
const char*
field);
390 int GetFlag(
const char*
field);
410 void PrintSelf(ostream &os,
vtkIndent indent);
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());
473 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
void CopyFieldOn(const char *name)
Turn on/off the copying of the field specified by name.
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