50 #ifndef vtkDataSetAttributes_h
51 #define vtkDataSetAttributes_h
53 #include "vtkCommonDataModelModule.h"
126 HIGHCONNECTIVITYCELL = 2,
127 LOWCONNECTIVITYCELL = 4,
151 int SetActiveScalars(
const char*
name);
160 int SetActiveVectors(
const char*
name);
169 int SetActiveNormals(
const char*
name);
178 int SetActiveTCoords(
const char*
name);
187 int SetActiveTensors(
const char*
name);
196 int SetActiveGlobalIds(
const char*
name);
205 int SetActivePedigreeIds(
const char*
name);
238 int SetActiveAttribute(
const char*
name,
int attributeType);
243 int SetActiveAttribute(
int index,
int attributeType);
249 void GetAttributeIndices(
int* indexArray);
257 int IsArrayAnAttribute(
int idx);
314 static const char* GetAttributeTypeAsString(
int attributeType);
315 static const char* GetLongAttributeTypeAsString(
int attributeType);
349 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
355 int GetCopyAttribute (
int index,
int ctype);
358 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
359 int GetCopyScalars(
int ctype=ALLCOPY);
363 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
364 int GetCopyVectors(
int ctype=ALLCOPY);
368 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
369 int GetCopyNormals(
int ctype=ALLCOPY);
373 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
374 int GetCopyTCoords(
int ctype=ALLCOPY);
378 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
379 int GetCopyTensors(
int ctype=ALLCOPY);
383 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
384 int GetCopyGlobalIds(
int ctype=ALLCOPY);
388 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
389 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
393 void CopyAllOn(
int ctype=ALLCOPY) VTK_OVERRIDE;
396 void CopyAllOff(
int ctype=ALLCOPY) VTK_OVERRIDE;
428 this->CopyAllocate(pd, sze, ext, 0);
439 const int *inExt,
const int *outExt);
495 this->InterpolateAllocate(pd, sze, ext, 0);
575 void InterpolatePoint(
591 int shallowCopyArrays=0);
616 static
int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
628 class vtkInternalComponentNames;
662 { this->FieldIndices[i] =
index; }
664 FieldList(
const FieldList&) VTK_DELETE_FUNCTION;
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;
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
static const char * GhostArrayName()
void InitializeFields() override
Initialize all of the object's data to NULL.
int GetFieldComponents(int i)
Abstract superclass for all arrays.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
static const char LongAttributeNames[NUM_ATTRIBUTES][35]
map scalar values into colors via a lookup table
static const char AttributeNames[NUM_ATTRIBUTES][12]
void InitializeFieldList(vtkDataSetAttributes *dsa)
virtual void Update()
Updates the extensions string.
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
~vtkDataSetAttributes() override
friend class vtkDataSetAttributes
static const int AttributeLimits[NUM_ATTRIBUTES]
void UnionFieldList(vtkDataSetAttributes *dsa)
Similar to IntersectFieldList() except that it builds a union of the array list.
static vtkFieldData * New()
void IntersectFieldList(vtkDataSetAttributes *dsa)
a simple class to control print indentation
list of point or cell ids
abstract superclass for arrays of numeric data
const char * GetFieldName(int i)
represent and manipulate attribute data in a dataset
void SetFieldIndex(int i, int index)
int IsAttributePresent(int attrType)
virtual void DeepCopy(vtkFieldData *da)
Copy a field by creating new data arrays (i.e., duplicate storage).
int GetDSAIndex(int index, int i)
virtual void Initialize()
Release all data but do not delete object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]
virtual void ShallowCopy(vtkFieldData *da)
Copy a field by reference counting the data arrays.
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
vtkFieldData::BasicIterator RequiredArrays
int AttributeIndices[NUM_ATTRIBUTES]
represent and manipulate fields of data