44 #ifndef vtkDataSetAttributes_h 45 #define vtkDataSetAttributes_h 47 #include "vtkCommonDataModelModule.h" 120 HIGHCONNECTIVITYCELL = 2,
121 LOWCONNECTIVITYCELL = 4,
145 int SetActiveScalars(
const char*
name);
154 int SetActiveVectors(
const char*
name);
163 int SetActiveNormals(
const char*
name);
172 int SetActiveTCoords(
const char*
name);
181 int SetActiveTensors(
const char*
name);
190 int SetActiveGlobalIds(
const char*
name);
199 int SetActivePedigreeIds(
const char*
name);
232 int SetActiveAttribute(
const char*
name,
int attributeType);
237 int SetActiveAttribute(
int index,
int attributeType);
243 void GetAttributeIndices(
int* indexArray);
251 int IsArrayAnAttribute(
int idx);
308 static const char* GetAttributeTypeAsString(
int attributeType);
309 static const char* GetLongAttributeTypeAsString(
int attributeType);
343 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
349 int GetCopyAttribute (
int index,
int ctype);
352 void SetCopyScalars(
vtkTypeBool i,
int ctype=ALLCOPY);
357 void SetCopyVectors(
vtkTypeBool i,
int ctype=ALLCOPY);
362 void SetCopyNormals(
vtkTypeBool i,
int ctype=ALLCOPY);
367 void SetCopyTCoords(
vtkTypeBool i,
int ctype=ALLCOPY);
372 void SetCopyTensors(
vtkTypeBool i,
int ctype=ALLCOPY);
377 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype=ALLCOPY);
382 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype=ALLCOPY);
387 void CopyAllOn(
int ctype=ALLCOPY)
override;
422 this->CopyAllocate(pd, sze, ext, 0);
449 bool setSize =
true);
505 this->InterpolateAllocate(pd, sze, ext, 0);
588 void InterpolatePoint(
604 int shallowCopyArrays=0,
605 bool createNewArrays=
true);
630 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
642 class vtkInternalComponentNames;
648 void PrintSelf(ostream &os,
vtkIndent indent);
663 int IsAttributePresent(
int attrType);
676 { this->FieldIndices[i] =
index; }
679 void operator=(
const FieldList&) =
delete;
682 void RemoveField(
const char *
name);
684 void GrowBy(
unsigned int delta);
691 int *FieldComponents;
696 vtkInternalComponentNames **FieldComponentsNames;
706 int NumberOfDSAIndices;
static const char * GhostArrayName()
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]
virtual void PassData(vtkFieldData *fd)
Pass entire arrays of input data through to output.
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
~vtkDataSetAttributes() override
friend class vtkDataSetAttributes
virtual void CopyAllOff(int unused=0)
Turn off copying of all data.
static const int AttributeLimits[NUM_ATTRIBUTES]
static vtkFieldData * New()
virtual void InitializeFields()
Release all data but do not delete object.
a simple class to control print indentation
list of point or cell ids
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
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)
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.
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]
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0, bool createNewArrays=true)
represent and manipulate fields of data