45 #ifndef vtkDataSetAttributes_h
46 #define vtkDataSetAttributes_h
48 #include "vtkCommonDataModelModule.h"
52 VTK_ABI_NAMESPACE_BEGIN
109 HIGHERORDERDEGREES = 10,
128 HIGHCONNECTIVITYCELL = 2,
129 LOWCONNECTIVITYCELL = 4,
155 int SetActiveScalars(
const char*
name);
164 int SetActiveVectors(
const char*
name);
173 int SetActiveNormals(
const char*
name);
182 int SetActiveTangents(
const char*
name);
191 int SetActiveTCoords(
const char*
name);
200 int SetActiveTensors(
const char*
name);
209 int SetActiveGlobalIds(
const char*
name);
218 int SetActivePedigreeIds(
const char*
name);
227 int SetActiveRationalWeights(
const char*
name);
236 int SetActiveHigherOrderDegrees(
const char*
name);
245 int SetActiveProcessIds(
const char*
name);
287 int SetActiveAttribute(
const char*
name,
int attributeType);
294 int SetActiveAttribute(
int index,
int attributeType);
301 void GetAttributeIndices(
int* indexArray);
309 int IsArrayAnAttribute(
int idx);
366 static const char* GetAttributeTypeAsString(
int attributeType);
367 static const char* GetLongAttributeTypeAsString(
int attributeType);
401 void SetCopyAttribute(
int index,
int value,
int ctype = ALLCOPY);
407 int GetCopyAttribute(
int index,
int ctype);
410 void SetCopyScalars(
vtkTypeBool i,
int ctype = ALLCOPY);
415 void SetCopyVectors(
vtkTypeBool i,
int ctype = ALLCOPY);
420 void SetCopyNormals(
vtkTypeBool i,
int ctype = ALLCOPY);
425 void SetCopyTangents(
vtkTypeBool i,
int ctype = ALLCOPY);
430 void SetCopyTCoords(
vtkTypeBool i,
int ctype = ALLCOPY);
435 void SetCopyTensors(
vtkTypeBool i,
int ctype = ALLCOPY);
440 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype = ALLCOPY);
445 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype = ALLCOPY);
446 vtkTypeBool GetCopyPedigreeIds(
int ctype = ALLCOPY);
450 void SetCopyRationalWeights(
vtkTypeBool i,
int ctype = ALLCOPY);
451 vtkTypeBool GetCopyRationalWeights(
int ctype = ALLCOPY);
455 void SetCopyHigherOrderDegrees(
vtkTypeBool i,
int ctype = ALLCOPY);
456 vtkTypeBool GetCopyHigherOrderDegrees(
int ctype = ALLCOPY);
457 vtkBooleanMacro(CopyHigherOrderDegrees,
vtkTypeBool);
460 void SetCopyProcessIds(
vtkTypeBool i,
int ctype = ALLCOPY);
461 vtkTypeBool GetCopyProcessIds(
int ctype = ALLCOPY);
465 void CopyAllOn(
int ctype = ALLCOPY)
override;
468 void CopyAllOff(
int ctype = ALLCOPY)
override;
499 this->CopyAllocate(pd, sze, ext, 0);
521 void CopyStructuredData(
578 this->InterpolateAllocate(pd, sze, ext, 0);
580 void InterpolateAllocate(
591 void InterpolatePoint(
603 void InterpolateEdge(
618 void InterpolateTime(
648 void InterpolateAllocate(
665 vtkIdType ext = 1000,
int shallowCopyArrays = 0,
bool createNewArrays =
true);
672 int AttributeIndices[NUM_ATTRIBUTES];
673 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
679 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
680 static const int AttributeLimits[NUM_ATTRIBUTES];
681 static const char AttributeNames[NUM_ATTRIBUTES][19];
682 static const char LongAttributeNames[NUM_ATTRIBUTES][42];
685 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
695 VTK_ABI_NAMESPACE_END
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.
static vtkFieldData * ExtendedNew()
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) from the list of arrays.
vtkFieldData::BasicIterator RequiredArrays
represent and manipulate fields of data