49 #ifndef vtkDataSetAttributes_h 50 #define vtkDataSetAttributes_h 111 int SetActiveScalars(
const char*
name);
118 int SetActiveVectors(
const char*
name);
125 int SetActiveNormals(
const char*
name);
132 int SetActiveTCoords(
const char*
name);
139 int SetActiveTensors(
const char*
name);
146 int SetActiveGlobalIds(
const char*
name);
153 int SetActivePedigreeIds(
const char*
name);
177 int SetActiveAttribute(
const char*
name,
int attributeType);
180 int SetActiveAttribute(
int index,
int attributeType);
184 void GetAttributeIndices(
int* indexArray);
190 int IsArrayAnAttribute(
int idx);
231 static const char* GetAttributeTypeAsString(
int attributeType);
232 static const char* GetLongAttributeTypeAsString(
int attributeType);
251 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
265 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
266 int GetCopyScalars(
int ctype=ALLCOPY);
282 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
283 int GetCopyVectors(
int ctype=ALLCOPY);
299 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
300 int GetCopyNormals(
int ctype=ALLCOPY);
316 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
317 int GetCopyTCoords(
int ctype=ALLCOPY);
333 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
334 int GetCopyTensors(
int ctype=ALLCOPY);
350 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
351 int GetCopyGlobalIds(
int ctype=ALLCOPY);
367 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
368 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
383 virtual void CopyAllOn(
int ctype=ALLCOPY);
423 this->CopyAllocate(pd, sze, ext, 0);
433 const int *inExt,
const int *outExt);
482 this->InterpolateAllocate(pd, sze, ext, 0);
563 void InterpolatePoint(
582 int shallowCopyArrays=0);
605 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
617 class vtkInternalComponentNames;
623 void PrintSelf(ostream &os,
vtkIndent indent);
635 int IsAttributePresent(
int attrType);
651 { this->FieldIndices[i] =
index; }
654 void RemoveField(
const char *
name);
656 void GrowBy(
unsigned int delta);
663 int *FieldComponents;
668 vtkInternalComponentNames **FieldComponentsNames;
678 int NumberOfDSAIndices;
void InternalCopyAllocate(vtkDataSetAttributes *pd, int ctype, vtkIdType sze=0, vtkIdType ext=1000, int shallowCopyArrays=0)
int GetFieldComponents(int i)
Abstract superclass for all arrays.
void InterpolateAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
static const char LongAttributeNames[NUM_ATTRIBUTES][35]
map scalar values into colors via a lookup table
static const char AttributeNames[NUM_ATTRIBUTES][12]
virtual void PassData(vtkFieldData *fd)
GLsizei const GLfloat * value
virtual void CopyAllOn(int unused=0)
static const int NumberOfAttributeComponents[NUM_ATTRIBUTES]
friend class vtkDataSetAttributes
#define vtkTypeMacro(thisClass, superclass)
virtual void CopyAllOff(int unused=0)
static const int AttributeLimits[NUM_ATTRIBUTES]
GLuint const GLchar * name
void PrintSelf(ostream &os, vtkIndent indent)
static vtkFieldData * New()
virtual void InitializeFields()
a simple class to control print indentation
list of point or cell ids
void CopyAllocate(vtkDataSetAttributes *pd, vtkIdType sze=0, vtkIdType ext=1000)
abstract superclass for arrays of numeric data
const char * GetFieldName(int i)
represent and manipulate attribute data in a dataset
FieldList(const FieldList &)
void SetFieldIndex(int i, int index)
virtual void DeepCopy(vtkFieldData *da)
int GetDSAIndex(int index, int i)
void operator=(const FieldList &)
virtual void Initialize()
#define vtkBooleanMacro(name, type)
int CopyAttributeFlags[ALLCOPY][NUM_ATTRIBUTES]
virtual void ShallowCopy(vtkFieldData *da)
virtual void RemoveArray(const char *name)
#define VTKCOMMONDATAMODEL_EXPORT
vtkFieldData::BasicIterator RequiredArrays
int AttributeIndices[NUM_ATTRIBUTES]
represent and manipulate fields of data