57 #ifndef vtkDataSetAttributes_h
58 #define vtkDataSetAttributes_h
60 #include "vtkCommonDataModelModule.h"
120 HIGHERORDERDEGREES = 10,
138 HIGHCONNECTIVITYCELL = 2,
139 LOWCONNECTIVITYCELL = 4,
165 int SetActiveScalars(
const char*
name);
174 int SetActiveVectors(
const char*
name);
183 int SetActiveNormals(
const char*
name);
192 int SetActiveTangents(
const char*
name);
201 int SetActiveTCoords(
const char*
name);
210 int SetActiveTensors(
const char*
name);
219 int SetActiveGlobalIds(
const char*
name);
228 int SetActivePedigreeIds(
const char*
name);
237 int SetActiveRationalWeights(
const char*
name);
246 int SetActiveHigherOrderDegrees(
const char*
name);
283 int SetActiveAttribute(
const char*
name,
int attributeType);
288 int SetActiveAttribute(
int index,
int attributeType);
294 void GetAttributeIndices(
int* indexArray);
302 int IsArrayAnAttribute(
int idx);
358 static const char* GetAttributeTypeAsString(
int attributeType);
359 static const char* GetLongAttributeTypeAsString(
int attributeType);
393 void SetCopyAttribute(
int index,
int value,
int ctype = ALLCOPY);
399 int GetCopyAttribute(
int index,
int ctype);
402 void SetCopyScalars(
vtkTypeBool i,
int ctype = ALLCOPY);
407 void SetCopyVectors(
vtkTypeBool i,
int ctype = ALLCOPY);
412 void SetCopyNormals(
vtkTypeBool i,
int ctype = ALLCOPY);
417 void SetCopyTangents(
vtkTypeBool i,
int ctype = ALLCOPY);
422 void SetCopyTCoords(
vtkTypeBool i,
int ctype = ALLCOPY);
427 void SetCopyTensors(
vtkTypeBool i,
int ctype = ALLCOPY);
432 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype = ALLCOPY);
437 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype = ALLCOPY);
438 vtkTypeBool GetCopyPedigreeIds(
int ctype = ALLCOPY);
442 void SetCopyRationalWeights(
vtkTypeBool i,
int ctype = ALLCOPY);
443 vtkTypeBool GetCopyRationalWeights(
int ctype = ALLCOPY);
447 void SetCopyHigherOrderDegrees(
vtkTypeBool i,
int ctype = ALLCOPY);
448 vtkTypeBool GetCopyHigherOrderDegrees(
int ctype = ALLCOPY);
449 vtkBooleanMacro(CopyHigherOrderDegrees,
vtkTypeBool);
452 void CopyAllOn(
int ctype = ALLCOPY)
override;
455 void CopyAllOff(
int ctype = ALLCOPY)
override;
486 this->CopyAllocate(pd, sze, ext, 0);
508 void CopyStructuredData(
565 this->InterpolateAllocate(pd, sze, ext, 0);
567 void InterpolateAllocate(
578 void InterpolatePoint(
590 void InterpolateEdge(
605 void InterpolateTime(
635 void InterpolateAllocate(
652 vtkIdType ext = 1000,
int shallowCopyArrays = 0,
bool createNewArrays =
true);
659 int AttributeIndices[NUM_ATTRIBUTES];
660 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
666 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
667 static const int AttributeLimits[NUM_ATTRIBUTES];
668 static const char AttributeNames[NUM_ATTRIBUTES][19];
669 static const char LongAttributeNames[NUM_ATTRIBUTES][42];
672 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.
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 or index) from the list of arrays.
vtkFieldData::BasicIterator RequiredArrays
represent and manipulate fields of data