49 #ifndef __vtkDataSetAttributes_h
50 #define __vtkDataSetAttributes_h
52 #include "vtkCommonDataModelModule.h"
111 int SetActiveScalars(
const char* name);
118 int SetActiveVectors(
const char* name);
125 int SetActiveNormals(
const char* name);
132 int SetActiveTCoords(
const char* name);
139 int SetActiveTensors(
const char* name);
146 int SetActiveGlobalIds(
const char* name);
153 int SetActivePedigreeIds(
const char* name);
177 int SetActiveAttribute(
const char* name,
int attributeType);
180 int SetActiveAttribute(
int index,
int attributeType);
184 void GetAttributeIndices(
int* indexArray);
190 int IsArrayAnAttribute(
int idx);
215 static const char* GetAttributeTypeAsString(
int attributeType);
216 static const char* GetLongAttributeTypeAsString(
int attributeType);
235 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
249 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
250 int GetCopyScalars(
int ctype=ALLCOPY);
251 vtkBooleanMacro(CopyScalars,
int);
266 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
267 int GetCopyVectors(
int ctype=ALLCOPY);
268 vtkBooleanMacro(CopyVectors,
int);
283 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
284 int GetCopyNormals(
int ctype=ALLCOPY);
285 vtkBooleanMacro(CopyNormals,
int);
300 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
301 int GetCopyTCoords(
int ctype=ALLCOPY);
302 vtkBooleanMacro(CopyTCoords,
int);
317 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
318 int GetCopyTensors(
int ctype=ALLCOPY);
319 vtkBooleanMacro(CopyTensors,
int);
334 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
335 int GetCopyGlobalIds(
int ctype=ALLCOPY);
336 vtkBooleanMacro(CopyGlobalIds,
int);
351 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
352 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
353 vtkBooleanMacro(CopyPedigreeIds,
int);
367 virtual void CopyAllOn(
int ctype=ALLCOPY);
407 this->CopyAllocate(pd, sze, ext, 0);
417 const int *inExt,
const int *outExt);
451 this->InterpolateAllocate(pd, sze, ext, 0);
532 void InterpolatePoint(
551 int shallowCopyArrays=0);
575 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
587 class vtkInternalComponentNames;
593 void PrintSelf(ostream &os,
vtkIndent indent);
605 int IsAttributePresent(
int attrType);
612 int GetDSAIndex(
int index,
int i) {
return this->DSAIndices[index][i]; }
621 { this->FieldIndices[i] = index; }
624 void RemoveField(
const char *name);
626 void GrowBy(
unsigned int delta);
633 int *FieldComponents;
638 vtkInternalComponentNames **FieldComponentsNames;
648 int NumberOfDSAIndices;
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
int GetFieldComponents(int i)
Abstract superclass for all arrays.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
static const char LongAttributeNames[NUM_ATTRIBUTES][35]
map scalar values into colors via a lookup table
static const char AttributeNames[NUM_ATTRIBUTES][12]
virtual void PassData(vtkFieldData *fd)
virtual void CopyAllOn(int unused=0)
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
friend class vtkDataSetAttributes
virtual void CopyAllOff(int unused=0)
static const int AttributeLimits[NUM_ATTRIBUTES]
void PrintSelf(ostream &os, vtkIndent indent)
static vtkFieldData * New()
virtual void InitializeFields()
a simple class to control print indentation
list of point or cell ids
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
abstract superclass for arrays of numeric data
const char * GetFieldName(int i)
represent and manipulate attribute data in a dataset
FieldList(const FieldList &)
void SetFieldIndex(int i, int index)
virtual void DeepCopy(vtkFieldData *da)
int GetDSAIndex(int index, int i)
void operator=(const FieldList &)
virtual void Initialize()
int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]
virtual void ShallowCopy(vtkFieldData *da)
virtual void RemoveArray(const char *name)
vtkFieldData::BasicIterator RequiredArrays
int AttributeIndices[NUM_ATTRIBUTES]
represent and manipulate fields of data