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);