44 #ifndef vtkDataSetAttributes_h 45 #define vtkDataSetAttributes_h 47 #include "vtkCommonDataModelModule.h" 106 HIGHERORDERDEGREES = 10,
124 HIGHCONNECTIVITYCELL = 2,
125 LOWCONNECTIVITYCELL = 4,
151 int SetActiveScalars(
const char*
name);
160 int SetActiveVectors(
const char*
name);
169 int SetActiveNormals(
const char*
name);
178 int SetActiveTangents(
const char*
name);
187 int SetActiveTCoords(
const char*
name);
196 int SetActiveTensors(
const char*
name);
205 int SetActiveGlobalIds(
const char*
name);
214 int SetActivePedigreeIds(
const char*
name);
223 int SetActiveRationalWeights(
const char*
name);
232 int SetActiveHigherOrderDegrees(
const char*
name);
269 int SetActiveAttribute(
const char*
name,
int attributeType);
274 int SetActiveAttribute(
int index,
int attributeType);
280 void GetAttributeIndices(
int* indexArray);
288 int IsArrayAnAttribute(
int idx);
344 static const char* GetAttributeTypeAsString(
int attributeType);
345 static const char* GetLongAttributeTypeAsString(
int attributeType);
379 void SetCopyAttribute(
int index,
int value,
int ctype = ALLCOPY);
385 int GetCopyAttribute(
int index,
int ctype);
388 void SetCopyScalars(
vtkTypeBool i,
int ctype = ALLCOPY);
393 void SetCopyVectors(
vtkTypeBool i,
int ctype = ALLCOPY);
398 void SetCopyNormals(
vtkTypeBool i,
int ctype = ALLCOPY);
403 void SetCopyTangents(
vtkTypeBool i,
int ctype = ALLCOPY);
408 void SetCopyTCoords(
vtkTypeBool i,
int ctype = ALLCOPY);
413 void SetCopyTensors(
vtkTypeBool i,
int ctype = ALLCOPY);
418 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype = ALLCOPY);
423 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype = ALLCOPY);
424 vtkTypeBool GetCopyPedigreeIds(
int ctype = ALLCOPY);
428 void SetCopyRationalWeights(
vtkTypeBool i,
int ctype = ALLCOPY);
429 vtkTypeBool GetCopyRationalWeights(
int ctype = ALLCOPY);
433 void SetCopyHigherOrderDegrees(
vtkTypeBool i,
int ctype = ALLCOPY);
434 vtkTypeBool GetCopyHigherOrderDegrees(
int ctype = ALLCOPY);
435 vtkBooleanMacro(CopyHigherOrderDegrees,
vtkTypeBool);
438 void CopyAllOn(
int ctype = ALLCOPY)
override;
441 void CopyAllOff(
int ctype = ALLCOPY)
override;
472 this->CopyAllocate(pd, sze, ext, 0);
494 void CopyStructuredData(
547 this->InterpolateAllocate(pd, sze, ext, 0);
549 void InterpolateAllocate(
560 void InterpolatePoint(
572 void InterpolateEdge(
587 void InterpolateTime(
617 void InterpolateAllocate(
634 vtkIdType ext = 1000,
int shallowCopyArrays = 0,
bool createNewArrays =
true);
641 int AttributeIndices[NUM_ATTRIBUTES];
642 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
648 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
649 static const int AttributeLimits[NUM_ATTRIBUTES];
650 static const char AttributeNames[NUM_ATTRIBUTES][19];
651 static const char LongAttributeNames[NUM_ATTRIBUTES][42];
654 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
static const char * GhostArrayName()
Abstract superclass for all arrays.
helps manage arrays from multiple vtkDataSetAttributes.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
map scalar values into colors via a lookup table
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.
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
virtual void CopyAllOff(int unused=0)
Turn off copying of all data.
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
represent and manipulate attribute data in a dataset
virtual void DeepCopy(vtkFieldData *da)
Copy a field by creating new data arrays (i.e., duplicate storage).
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.
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
represent and manipulate fields of data