Go to the documentation of this file.
49 #ifndef vtkDataSetAttributes_h
50 #define vtkDataSetAttributes_h
115 HIGHCONNECTIVITYCELL = 2,
116 LOWCONNECTIVITYCELL = 4,
450 this->CopyAllocate(pd, sze, ext, 0);
460 const int *inExt,
const int *outExt);
509 this->InterpolateAllocate(pd, sze, ext, 0);
609 int shallowCopyArrays=0);
632 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
644 class vtkInternalComponentNames;
678 { this->FieldIndices[i] =
index; }
681 void RemoveField(
const char *
name);
683 void GrowBy(
unsigned int delta);
690 int *FieldComponents;
695 vtkInternalComponentNames **FieldComponentsNames;
705 int NumberOfDSAIndices;
vtkAbstractArray * GetPedigreeIds(const char *name)
int SetNormals(vtkDataArray *da)
const char * GetFieldName(int i)
void SetCopyPedigreeIds(int i, int ctype=ALLCOPY)
vtkDataArray * GetScalars(const char *name)
vtkDataArray * GetTCoords()
int SetActiveAttribute(const char *name, int attributeType)
vtkDataArray * GetTensors()
vtkDataArray * GetVectors()
static const char * GetAttributeTypeAsString(int attributeType)
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
void SetCopyScalars(int i, int ctype=ALLCOPY)
int SetTCoords(vtkDataArray *da)
void InternalCopyAllocate(vtkDataSetAttributes::FieldList &list, int ctype, vtkIdType sze, vtkIdType ext)
void InterpolateEdge(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdType p1, vtkIdType p2, double t)
void SetCopyTCoords(int i, int ctype=ALLCOPY)
virtual void DeepCopy(vtkFieldData *pd)
int IsAttributePresent(int attrType)
vtkDataArray * GetAttribute(int attributeType)
void UnionFieldList(vtkDataSetAttributes *dsa)
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)
virtual void PassData(vtkFieldData *fd)
void InterpolateTime(vtkDataSetAttributes *from1, vtkDataSetAttributes *from2, vtkIdType id, double t)
void SetCopyVectors(int i, int ctype=ALLCOPY)
int SetGlobalIds(vtkDataArray *da)
void operator=(const FieldList &)
#define vtkTypeMacro(thisClass, superclass)
void PrintSelf(ostream &os, vtkIndent indent)
int SetActiveVectors(const char *name)
void InterpolateAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
int AttributeIndices[NUM_ATTRIBUTES]
int SetPedigreeIds(vtkAbstractArray *da)
abstract superclass for arrays of numeric data
void CopyData(vtkDataSetAttributes *fromPd, vtkIdList *fromIds, vtkIdList *toIds)
void SetCopyGlobalIds(int i, int ctype=ALLCOPY)
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)
represent and manipulate fields of data
virtual void CopyAllOn(int ctype=ALLCOPY)
virtual void RemoveArray(const char *name)
int SetScalars(vtkDataArray *da)
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)
GLuint const GLchar * name
int SetTensors(vtkDataArray *da)
void InterpolatePoint(vtkDataSetAttributes *fromPd, vtkIdType toId, vtkIdList *ids, double *weights)
vtkDataArray * GetNormals(const char *name)
int SetActivePedigreeIds(const char *name)
virtual void CopyAllOff(int ctype=ALLCOPY)
GLsizei const GLfloat * value
int GetFieldComponents(int i)
int SetActiveTensors(const char *name)
void CopyTuple(vtkAbstractArray *fromData, vtkAbstractArray *toData, vtkIdType fromId, vtkIdType toId)
void PrintSelf(ostream &os, vtkIndent indent)
void SetCopyAttribute(int index, int value, int ctype=ALLCOPY)
int IsArrayAnAttribute(int idx)
FieldList(const FieldList &)
a simple class to control print indentation
int SetActiveGlobalIds(const char *name)
void SetCopyNormals(int i, int ctype=ALLCOPY)
vtkAbstractArray * GetAbstractAttribute(int attributeType)
void InitializeFieldList(vtkDataSetAttributes *dsa)
list of point or cell ids
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze, vtkIdType ext, int shallowCopyArrays)
vtkDataArray * GetNormals()
vtkDataArray * GetScalars()
int SetVectors(vtkDataArray *da)
int GetCopyNormals(int ctype=ALLCOPY)
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart)
void CopyData(vtkDataSetAttributes *fromPd, vtkIdType fromId, vtkIdType toId)
int GetCopyScalars(int ctype=ALLCOPY)
void SetCopyTensors(int i, int ctype=ALLCOPY)
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
void CopyAllocate(vtkDataSetAttributes::FieldList &list, vtkIdType sze=0, vtkIdType ext=1000)
friend class vtkDataSetAttributes
int GetCopyTCoords(int ctype=ALLCOPY)
vtkAbstractArray * GetPedigreeIds()
void CopyStructuredData(vtkDataSetAttributes *inDsa, const int *inExt, const int *outExt)
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
virtual void Initialize()
map scalar values into colors via a lookup table
static const int AttributeLimits[NUM_ATTRIBUTES]
virtual void RemoveArray(int index)
int SetActiveAttribute(int index, int attributeType)
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
static vtkDataSetAttributes * New()
virtual void ShallowCopy(vtkFieldData *pd)
virtual void InitializeFields()
static const char * GetLongAttributeTypeAsString(int attributeType)
vtkDataArray * GetVectors(const char *name)
#define VTKCOMMONDATAMODEL_EXPORT
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)
int SetAttribute(vtkAbstractArray *aa, int attributeType)
void CopyData(vtkDataSetAttributes::FieldList &list, vtkDataSetAttributes *dsa, int idx, vtkIdType fromId, vtkIdType toId)
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)
static const char AttributeNames[NUM_ATTRIBUTES][12]