49 #ifndef vtkDataSetAttributes_h
50 #define vtkDataSetAttributes_h
115 HIGHCONNECTIVITYCELL = 2,
116 LOWCONNECTIVITYCELL = 4,
138 int SetActiveScalars(
const char*
name);
145 int SetActiveVectors(
const char*
name);
152 int SetActiveNormals(
const char*
name);
159 int SetActiveTCoords(
const char*
name);
166 int SetActiveTensors(
const char*
name);
173 int SetActiveGlobalIds(
const char*
name);
180 int SetActivePedigreeIds(
const char*
name);
204 int SetActiveAttribute(
const char*
name,
int attributeType);
207 int SetActiveAttribute(
int index,
int attributeType);
211 void GetAttributeIndices(
int* indexArray);
217 int IsArrayAnAttribute(
int idx);
258 static const char* GetAttributeTypeAsString(
int attributeType);
259 static const char* GetLongAttributeTypeAsString(
int attributeType);
278 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
292 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
293 int GetCopyScalars(
int ctype=ALLCOPY);
294 vtkBooleanMacro(CopyScalars,
int);
309 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
310 int GetCopyVectors(
int ctype=ALLCOPY);
311 vtkBooleanMacro(CopyVectors,
int);
326 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
327 int GetCopyNormals(
int ctype=ALLCOPY);
328 vtkBooleanMacro(CopyNormals,
int);
343 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
344 int GetCopyTCoords(
int ctype=ALLCOPY);
345 vtkBooleanMacro(CopyTCoords,
int);
360 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
361 int GetCopyTensors(
int ctype=ALLCOPY);
362 vtkBooleanMacro(CopyTensors,
int);
377 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
378 int GetCopyGlobalIds(
int ctype=ALLCOPY);
379 vtkBooleanMacro(CopyGlobalIds,
int);
394 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
395 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
396 vtkBooleanMacro(CopyPedigreeIds,
int);
410 virtual void CopyAllOn(
int ctype=ALLCOPY);
450 this->CopyAllocate(pd, sze, ext, 0);
460 const int *inExt,
const int *outExt);
509 this->InterpolateAllocate(pd, sze, ext, 0);
590 void InterpolatePoint(
609 int shallowCopyArrays=0);
632 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
644 class vtkInternalComponentNames;
650 void PrintSelf(ostream &os,
vtkIndent indent);
662 int IsAttributePresent(
int attrType);
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;
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
static const char * GhostArrayName()
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)
#define VTKCOMMONDATAMODEL_EXPORT
vtkFieldData::BasicIterator RequiredArrays
int AttributeIndices[NUM_ATTRIBUTES]
represent and manipulate fields of data