Go to the documentation of this file.
50 #ifndef vtkDataSetAttributes_h
51 #define vtkDataSetAttributes_h
53 #include "vtkCommonDataModelModule.h"
126 HIGHCONNECTIVITYCELL = 2,
127 LOWCONNECTIVITYCELL = 4,
428 this->CopyAllocate(pd, sze, ext, 0);
439 const int *inExt,
const int *outExt);
495 this->InterpolateAllocate(pd, sze, ext, 0);
591 int shallowCopyArrays=0);
616 static
int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
628 class vtkInternalComponentNames;
662 { this->FieldIndices[i] =
index; }
665 void operator=(
const FieldList&) VTK_DELETE_FUNCTION;
668 void RemoveField(
const char *
name);
670 void GrowBy(
unsigned int delta);
677 int *FieldComponents;
682 vtkInternalComponentNames **FieldComponentsNames;
692 int NumberOfDSAIndices;
vtkAbstractArray * GetPedigreeIds(const char *name)
int SetNormals(vtkDataArray *da)
Set/get the normal data.
const char * GetFieldName(int i)
void SetCopyPedigreeIds(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataArray * GetScalars(const char *name)
This will first look for an array with the correct name.
vtkDataArray * GetTCoords()
int SetActiveAttribute(const char *name, int attributeType)
Make the array with the given name the active attribute.
vtkDataArray * GetTensors()
vtkDataArray * GetVectors()
static const char * GetAttributeTypeAsString(int attributeType)
Given an integer attribute type, this static method returns a string type for the attribute (i....
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
void SetCopyScalars(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
int SetTCoords(vtkDataArray *da)
Set/Get the texture coordinate data.
void InterpolateEdge(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdType p1, vtkIdType p2, double t)
Interpolate data from the two points p1,p2 (forming an edge) and an interpolation factor,...
void SetCopyTCoords(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
int IsAttributePresent(int attrType)
vtkDataArray * GetAttribute(int attributeType)
Return an attribute given the attribute type (see vtkDataSetAttributes::AttributeTypes).
void UnionFieldList(vtkDataSetAttributes *dsa)
Similar to IntersectFieldList() except that it builds a union of the array list.
vtkDataArray * GetTCoords(const char *name)
static const char * GhostArrayName()
vtkDataArray * GetGlobalIds(const char *name)
int SetActiveNormals(const char *name)
represent and manipulate attribute data in a dataset
int GetCopyPedigreeIds(int ctype=ALLCOPY)
vtkDataArray * GetTensors(const char *name)
void InterpolateTime(vtkDataSetAttributes *from1, vtkDataSetAttributes *from2, vtkIdType id, double t)
Interpolate data from the same id (point or cell) at different points in time (parameter t).
void SetCopyVectors(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
int SetGlobalIds(vtkDataArray *da)
Set/Get the global id data.
int SetActiveVectors(const char *name)
void InterpolateAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
A special form of InterpolateAllocate() to be used with FieldLists.
int AttributeIndices[NUM_ATTRIBUTES]
int SetPedigreeIds(vtkAbstractArray *da)
Set/Get the pedigree id data.
abstract superclass for arrays of numeric data
void CopyData(vtkDataSetAttributes *fromPd, vtkIdList *fromIds, vtkIdList *toIds)
void SetCopyGlobalIds(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkDataArray * GetGlobalIds()
static const char LongAttributeNames[NUM_ATTRIBUTES][35]
int SetActiveTCoords(const char *name)
void InterpolatePoint(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *fromPd, int idx, vtkIdType toId, vtkIdList *ids, double *weights)
Interpolate data set attributes from other data set attributes given cell or point ids and associated...
represent and manipulate fields of data
int SetScalars(vtkDataArray *da)
Set/Get the scalar data.
int GetCopyTensors(int ctype=ALLCOPY)
int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]
int GetCopyVectors(int ctype=ALLCOPY)
int SetActiveScalars(const char *name)
vtkFieldData::BasicIterator RequiredArrays
void SetFieldIndex(int i, int index)
int SetTensors(vtkDataArray *da)
Set/Get the tensor data.
void InterpolatePoint(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdList *ids, double *weights)
Interpolate data set attributes from other data set attributes given cell or point ids and associated...
virtual void Update()
Updates the extensions string.
vtkDataArray * GetNormals(const char *name)
int SetActivePedigreeIds(const char *name)
int GetFieldComponents(int i)
int SetActiveTensors(const char *name)
void CopyTuple(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType fromId, vtkIdType toId)
Copy a tuple (or set of tuples) of data from one data array to another.
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
void PrintSelf(ostream &os, vtkIndent indent)
void SetCopyAttribute(int index, int value, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
int IsArrayAnAttribute(int idx)
Determine whether a data array of index idx is considered a data set attribute (i....
a simple class to control print indentation
int SetActiveGlobalIds(const char *name)
void SetCopyNormals(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
vtkAbstractArray * GetAbstractAttribute(int attributeType)
Return an attribute given the attribute type (see vtkDataSetAttributes::AttributeTypes).
void InitializeFieldList(vtkDataSetAttributes *dsa)
list of point or cell ids
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
void CopyAllOn(int ctype=ALLCOPY) override
Turn on/off the copying of attribute data.
int GetCopyAttribute(int index, int ctype)
Get the attribute copy flag for copy operation <ctype> of attribute <index>.
vtkDataArray * GetNormals()
vtkDataArray * GetScalars()
int SetVectors(vtkDataArray *da)
Set/Get the vector data.
int GetCopyNormals(int ctype=ALLCOPY)
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
Copy n consecutive attributes starting at srcStart from fromPd to this container, starting at the dst...
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType fromId, vtkIdType toId)
Copy the attribute data from one id to another.
int GetCopyScalars(int ctype=ALLCOPY)
void SetCopyTensors(int i, int ctype=ALLCOPY)
Turn on/off the copying of attribute data.
void DeepCopy(vtkFieldData *pd) override
Deep copy of data (i.e., create new data arrays and copy from input data).
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
void CopyAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
A special form of CopyAllocate() to be used with FieldLists.
int GetCopyTCoords(int ctype=ALLCOPY)
vtkAbstractArray * GetPedigreeIds()
void Initialize() override
Initialize all of the object's data to NULL Also, clear the copy flags.
void CopyStructuredData(vtkDataSetAttributes *inDsa, const int *inExt, const int *outExt)
This method is used to copy data arrays in images.
void RemoveArray(int index) override
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
map scalar values into colors via a lookup table
static const int AttributeLimits[NUM_ATTRIBUTES]
int SetActiveAttribute(int index, int attributeType)
Make the array with the given index the active attribute.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
void PassData(vtkFieldData *fd) override
Pass entire arrays of input data through to output.
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
static vtkDataSetAttributes * New()
Construct object with copying turned on for all data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static const char * GetLongAttributeTypeAsString(int attributeType)
void ShallowCopy(vtkFieldData *pd) override
Shallow copy of data (i.e., use reference counting).
vtkDataArray * GetVectors(const char *name)
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdList *fromIds, vtkIdList *toIds)
int GetCopyGlobalIds(int ctype=ALLCOPY)
int GetDSAIndex(int index, int i)
void IntersectFieldList(vtkDataSetAttributes *dsa)
void CopyAllOff(int ctype=ALLCOPY) override
Turn on/off the copying of attribute data.
int SetAttribute(vtkAbstractArray *aa, int attributeType)
Set an array to use as the given attribute type (i.e., vtkDataSetAttributes::SCALAR,...
void CopyData(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType fromId, vtkIdType toId)
A special form of CopyData() to be used with FieldLists.
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
void CopyTuples(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
void GetAttributeIndices(int *indexArray)
Get the field data array indices corresponding to scalars, vectors, tensors, etc.
static const char AttributeNames[NUM_ATTRIBUTES][12]
~vtkDataSetAttributes() override
void InitializeFields() override
Initialize all of the object's data to NULL.