Go to the documentation of this file.
44 #ifndef vtkDataSetAttributes_h
45 #define vtkDataSetAttributes_h
47 #include "vtkCommonDataModelModule.h"
121 HIGHCONNECTIVITYCELL = 2,
122 LOWCONNECTIVITYCELL = 4,
146 int SetActiveScalars(
const char*
name);
155 int SetActiveVectors(
const char*
name);
164 int SetActiveNormals(
const char*
name);
173 int SetActiveTCoords(
const char*
name);
182 int SetActiveTensors(
const char*
name);
191 int SetActiveGlobalIds(
const char*
name);
200 int SetActivePedigreeIds(
const char*
name);
233 int SetActiveAttribute(
const char*
name,
int attributeType);
238 int SetActiveAttribute(
int index,
int attributeType);
244 void GetAttributeIndices(
int* indexArray);
252 int IsArrayAnAttribute(
int idx);
309 static const char* GetAttributeTypeAsString(
int attributeType);
310 static const char* GetLongAttributeTypeAsString(
int attributeType);
344 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
350 int GetCopyAttribute (
int index,
int ctype);
353 void SetCopyScalars(
vtkTypeBool i,
int ctype=ALLCOPY);
358 void SetCopyVectors(
vtkTypeBool i,
int ctype=ALLCOPY);
363 void SetCopyNormals(
vtkTypeBool i,
int ctype=ALLCOPY);
368 void SetCopyTCoords(
vtkTypeBool i,
int ctype=ALLCOPY);
373 void SetCopyTensors(
vtkTypeBool i,
int ctype=ALLCOPY);
378 void SetCopyGlobalIds(
vtkTypeBool i,
int ctype=ALLCOPY);
383 void SetCopyPedigreeIds(
vtkTypeBool i,
int ctype=ALLCOPY);
388 void CopyAllOn(
int ctype=ALLCOPY)
override;
423 this->CopyAllocate(pd, sze, ext, 0);
450 bool setSize =
true);
506 this->InterpolateAllocate(pd, sze, ext, 0);
589 void InterpolatePoint(
603 int shallowCopyArrays=0,
604 bool createNewArrays=
true);
611 int AttributeIndices[NUM_ATTRIBUTES];
612 int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES];
618 static const int NumberOfAttributeComponents[NUM_ATTRIBUTES];
619 static const int AttributeLimits[NUM_ATTRIBUTES];
620 static const char AttributeNames[NUM_ATTRIBUTES][12];
621 static const char LongAttributeNames[NUM_ATTRIBUTES][35];
624 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
static const char * GhostArrayName()
represent and manipulate attribute data in a dataset
virtual void CopyAllOn(int unused=0)
Turn on copying of all data.
virtual void DeepCopy(vtkFieldData *da)
Copy a field by creating new data arrays (i.e., duplicate storage).
abstract superclass for arrays of numeric data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate fields of data
virtual void Update()
Attributes have a chance to bring themselves up to date; right now this is ignored.
vtkFieldData::BasicIterator RequiredArrays
virtual void CopyAllOff(int unused=0)
Turn off copying of all data.
helps manage arrays from multiple vtkDataSetAttributes.
virtual void RemoveArray(const char *name)
Remove an array (with the given name or index) from the list of arrays.
a simple class to control print indentation
list of point or cell ids
virtual void InitializeFields()
Release all data but do not delete object.
Abstract superclass for all arrays.
map scalar values into colors via a lookup table
virtual void PassData(vtkFieldData *fd)
Pass entire arrays of input data through to output.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Initialize point interpolation method.
virtual void ShallowCopy(vtkFieldData *da)
Copy a field by reference counting the data arrays.
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
Allocates point data for point-by-point (or cell-by-cell) copy operation.
virtual void Initialize()
Release all data but do not delete object.
static vtkFieldData * New()