49 #ifndef __vtkDataSetAttributes_h
50 #define __vtkDataSetAttributes_h
110 int SetActiveScalars(
const char* name);
117 int SetActiveVectors(
const char* name);
124 int SetActiveNormals(
const char* name);
131 int SetActiveTCoords(
const char* name);
138 int SetActiveTensors(
const char* name);
145 int SetActiveGlobalIds(
const char* name);
152 int SetActivePedigreeIds(
const char* name);
176 int SetActiveAttribute(
const char* name,
int attributeType);
179 int SetActiveAttribute(
int index,
int attributeType);
183 void GetAttributeIndices(
int* indexArray);
189 int IsArrayAnAttribute(
int idx);
214 static const char* GetAttributeTypeAsString(
int attributeType);
215 static const char* GetLongAttributeTypeAsString(
int attributeType);
234 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
248 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
249 int GetCopyScalars(
int ctype=ALLCOPY);
250 vtkBooleanMacro(CopyScalars,
int);
265 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
266 int GetCopyVectors(
int ctype=ALLCOPY);
267 vtkBooleanMacro(CopyVectors,
int);
282 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
283 int GetCopyNormals(
int ctype=ALLCOPY);
284 vtkBooleanMacro(CopyNormals,
int);
299 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
300 int GetCopyTCoords(
int ctype=ALLCOPY);
301 vtkBooleanMacro(CopyTCoords,
int);
316 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
317 int GetCopyTensors(
int ctype=ALLCOPY);
318 vtkBooleanMacro(CopyTensors,
int);
333 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
334 int GetCopyGlobalIds(
int ctype=ALLCOPY);
335 vtkBooleanMacro(CopyGlobalIds,
int);
350 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
351 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
352 vtkBooleanMacro(CopyPedigreeIds,
int);
366 virtual void CopyAllOn(
int ctype=ALLCOPY);
406 this->CopyAllocate(pd, sze, ext, 0);
416 const int *inExt,
const int *outExt);
450 this->InterpolateAllocate(pd, sze, ext, 0);
531 void InterpolatePoint(
550 int shallowCopyArrays=0);
574 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
586 class vtkInternalComponentNames;
592 void PrintSelf(ostream &os,
vtkIndent indent);
604 int IsAttributePresent(
int attrType);
611 int GetDSAIndex(
int index,
int i) {
return this->DSAIndices[index][i]; }
620 { this->FieldIndices[i] = index; }
623 void RemoveField(
const char *name);
625 void GrowBy(
unsigned int delta);
632 int *FieldComponents;
637 vtkInternalComponentNames **FieldComponentsNames;
647 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