Go to the documentation of this file.
50 #ifndef vtkDataSetAttributes_h
51 #define vtkDataSetAttributes_h
53 #include "vtkCommonDataModelModule.h"
127 HIGHCONNECTIVITYCELL = 2,
128 LOWCONNECTIVITYCELL = 4,
152 int SetActiveScalars(
const char*
name);
161 int SetActiveVectors(
const char*
name);
170 int SetActiveNormals(
const char*
name);
179 int SetActiveTCoords(
const char*
name);
188 int SetActiveTensors(
const char*
name);
197 int SetActiveGlobalIds(
const char*
name);
206 int SetActivePedigreeIds(
const char*
name);
239 int SetActiveAttribute(
const char*
name,
int attributeType);
244 int SetActiveAttribute(
int index,
int attributeType);
250 void GetAttributeIndices(
int* indexArray);
258 int IsArrayAnAttribute(
int idx);
315 static const char* GetAttributeTypeAsString(
int attributeType);
316 static const char* GetLongAttributeTypeAsString(
int attributeType);
350 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
356 int GetCopyAttribute (
int index,
int ctype);
359 void SetCopyScalars(
vtkTypeBool i,
int ctype=ALLCOPY);
364 void SetCopyVectors(
vtkTypeBool i,
int ctype=ALLCOPY);
369 void SetCopyNormals(
vtkTypeBool i,
int ctype=ALLCOPY);
374 void SetCopyTCoords(
vtkTypeBool i,
int ctype=ALLCOPY);
379 void SetCopyTensors(
vtkTypeBool i,
int ctype=ALLCOPY);
384 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype=ALLCOPY);
389 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype=ALLCOPY);
394 void CopyAllOn(
int ctype=ALLCOPY)
override;
429 this->CopyAllocate(pd, sze, ext, 0);
456 bool setSize =
true);
512 this->InterpolateAllocate(pd, sze, ext, 0);
595 void InterpolatePoint(
609 int shallowCopyArrays=0,
610 bool createNewArrays=
true);
617 int AttributeIndices[NUM_ATTRIBUTES];
618 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
624 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
625 static const int AttributeLimits[NUM_ATTRIBUTES];
626 static const char AttributeNames[NUM_ATTRIBUTES][12];
627 static const char LongAttributeNames[NUM_ATTRIBUTES][35];
630 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
static const char * GhostArrayName()
represent and manipulate attribute data in a dataset
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
virtual void DeepCopy(vtkFieldData *da)
Copy a field by creating new data arrays (i.e., duplicate storage).
abstract superclass for arrays of numeric data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate fields of data
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
vtkFieldData::BasicIterator RequiredArrays
virtual void CopyAllOff(int unused=0)
Turn off copying of all data.
helps manage arrays from multiple vtkDataSetAttributes.
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
a simple class to control print indentation
list of point or cell ids
virtual void InitializeFields()
Release all data but do not delete object.
Abstract superclass for all arrays.
map scalar values into colors via a lookup table
virtual void PassData(vtkFieldData *fd)
Pass entire arrays of input data through to output.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
virtual void ShallowCopy(vtkFieldData *da)
Copy a field by reference counting the data arrays.
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
virtual void Initialize()
Release all data but do not delete object.
static vtkFieldData * New()