Go to the documentation of this file.
43 #ifndef vtkFieldData_h
44 #define vtkFieldData_h
46 #include "vtkCommonDataModelModule.h"
65 virtual void Initialize();
89 void AllocateArrays(
int num);
99 return this->NumberOfActiveArrays;
113 virtual void RemoveArray(
const char *
name);
114 virtual void RemoveArray(
int index);
152 return this->GetArray(arrayName, i);
180 return this->GetAbstractArray(arrayName, i);
193 return array ? 1 : 0;
206 return da ? da->
GetName() :
nullptr;
237 virtual void CopyAllOn(
int unused=0);
248 virtual void CopyAllOff(
int unused=0);
277 virtual unsigned long GetActualMemorySize();
302 int GetArrayContainingComponent(
int i,
int& arrayComp);
313 int GetNumberOfComponents();
335 void SetNumberOfTuples(
const vtkIdType number);
374 virtual void InitializeFields();
384 void CopyFieldOnOff(
const char*
name,
int onOff);
385 void ClearFieldFlags();
386 int FindFlag(
const char*
field);
387 int GetFlag(
const char*
field);
407 void PrintSelf(ostream &os,
vtkIndent indent);
411 return this->ListSize;
415 return this->List[this->Position];
420 return this->NextIndex();
424 return (this->Position >= this->ListSize);
429 return (this->End() ? -1 : this->List[this->Position]);
447 unsigned int listSize=0);
466 vtkDataArray* cur = Fields->GetArray(this->List[this->Position]);
467 return (cur? cur : this->Next());
470 void DetachFieldData();
vtkAbstractArray * GetAbstractArray(const char *arrayName)
Return the array with the name given.
vtkDataArray * GetArray(const char *arrayName)
Not recommended for use.
const char * GetArrayName(int i)
Get the name of ith array.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
CopyFieldFlag * CopyFieldFlags
represent and manipulate fields of data
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual vtkMTimeType GetMTime()
Return this object's modified time.
a simple class to control print indentation
BasicIterator & operator=(const BasicIterator &source)
int HasArray(const char *name)
Return 1 if an array with the given name could be found.
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CopyFieldOff(const char *name)
Abstract superclass for all arrays.
int GetNumberOfArrays()
Get the number of arrays of data available.
void CopyFieldOn(const char *name)
Turn on/off the copying of the field specified by name.
vtkTypeUInt32 vtkMTimeType