49 #ifndef vtkDataSetAttributes_h
50 #define vtkDataSetAttributes_h
52 #include "vtkCommonDataModelModule.h"
57 VTK_ABI_NAMESPACE_BEGIN
114 HIGHERORDERDEGREES = 10,
133 HIGHCONNECTIVITYCELL = 2,
134 LOWCONNECTIVITYCELL = 4,
153 int SetActiveScalars(
const char*
name);
162 int SetActiveVectors(
const char*
name);
171 int SetActiveNormals(
const char*
name);
180 int SetActiveTangents(
const char*
name);
189 int SetActiveTCoords(
const char*
name);
198 int SetActiveTensors(
const char*
name);
207 int SetActiveGlobalIds(
const char*
name);
216 int SetActivePedigreeIds(
const char*
name);
225 int SetActiveRationalWeights(
const char*
name);
234 int SetActiveHigherOrderDegrees(
const char*
name);
243 int SetActiveProcessIds(
const char*
name);
285 int SetActiveAttribute(
const char*
name,
int attributeType);
292 int SetActiveAttribute(
int index,
int attributeType);
299 void GetAttributeIndices(
int* indexArray);
307 int IsArrayAnAttribute(
int idx);
364 static const char* GetAttributeTypeAsString(
int attributeType);
365 static const char* GetLongAttributeTypeAsString(
int attributeType);
400 void SetCopyAttribute(
int index,
int value,
int ctype = ALLCOPY);
406 int GetCopyAttribute(
int index,
int ctype);
409 void SetCopyScalars(
vtkTypeBool i,
int ctype = ALLCOPY);
414 void SetCopyVectors(
vtkTypeBool i,
int ctype = ALLCOPY);
419 void SetCopyNormals(
vtkTypeBool i,
int ctype = ALLCOPY);
424 void SetCopyTangents(
vtkTypeBool i,
int ctype = ALLCOPY);
429 void SetCopyTCoords(
vtkTypeBool i,
int ctype = ALLCOPY);
434 void SetCopyTensors(
vtkTypeBool i,
int ctype = ALLCOPY);
439 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype = ALLCOPY);
444 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype = ALLCOPY);
445 vtkTypeBool GetCopyPedigreeIds(
int ctype = ALLCOPY);
449 void SetCopyRationalWeights(
vtkTypeBool i,
int ctype = ALLCOPY);
450 vtkTypeBool GetCopyRationalWeights(
int ctype = ALLCOPY);
454 void SetCopyHigherOrderDegrees(
vtkTypeBool i,
int ctype = ALLCOPY);
455 vtkTypeBool GetCopyHigherOrderDegrees(
int ctype = ALLCOPY);
456 vtkBooleanMacro(CopyHigherOrderDegrees,
vtkTypeBool);
459 void SetCopyProcessIds(
vtkTypeBool i,
int ctype = ALLCOPY);
460 vtkTypeBool GetCopyProcessIds(
int ctype = ALLCOPY);
464 void CopyAllOn(
int ctype = ALLCOPY)
override;
467 void CopyAllOff(
int ctype = ALLCOPY)
override;
498 this->CopyAllocate(pd, sze, ext, 0);
520 void CopyStructuredData(
577 this->InterpolateAllocate(pd, sze, ext, 0);
579 void InterpolateAllocate(
590 void InterpolatePoint(
602 void InterpolateEdge(
617 void InterpolateTime(
647 void InterpolateAllocate(
664 vtkIdType ext = 1000,
int shallowCopyArrays = 0,
bool createNewArrays =
true);
671 int AttributeIndices[NUM_ATTRIBUTES];
672 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
678 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
679 static const int AttributeLimits[NUM_ATTRIBUTES];
680 static const char AttributeNames[NUM_ATTRIBUTES][19];
681 static const char LongAttributeNames[NUM_ATTRIBUTES][42];
684 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
694 VTK_ABI_NAMESPACE_END
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.
VTKIOHDF_EXPORT bool GetAttribute(hid_t group, const char *attributeName, size_t numberOfElements, T *value)
Reads an attribute from the group passed to it.
static vtkFieldData * New()
#define VTK_MARSHALMANUAL
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
Represents and manipulates a collection of data arrays.