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);
215 static const char* GetAttributeTypeAsString(
int attributeType);
216 static const char* GetLongAttributeTypeAsString(
int attributeType);
235 void SetCopyAttribute (
int index,
int value,
int ctype=ALLCOPY);
249 void SetCopyScalars(
int i,
int ctype=ALLCOPY);
250 int GetCopyScalars(
int ctype=ALLCOPY);
266 void SetCopyVectors(
int i,
int ctype=ALLCOPY);
267 int GetCopyVectors(
int ctype=ALLCOPY);
283 void SetCopyNormals(
int i,
int ctype=ALLCOPY);
284 int GetCopyNormals(
int ctype=ALLCOPY);
300 void SetCopyTCoords(
int i,
int ctype=ALLCOPY);
301 int GetCopyTCoords(
int ctype=ALLCOPY);
317 void SetCopyTensors(
int i,
int ctype=ALLCOPY);
318 int GetCopyTensors(
int ctype=ALLCOPY);
334 void SetCopyGlobalIds(
int i,
int ctype=ALLCOPY);
335 int GetCopyGlobalIds(
int ctype=ALLCOPY);
351 void SetCopyPedigreeIds(
int i,
int ctype=ALLCOPY);
352 int GetCopyPedigreeIds(
int ctype=ALLCOPY);
367 virtual void CopyAllOn(
int ctype=ALLCOPY);
407 this->CopyAllocate(pd, sze, ext, 0);
417 const int *inExt,
const int *outExt);
456 this->InterpolateAllocate(pd, sze, ext, 0);
537 void InterpolatePoint(
556 int shallowCopyArrays=0);
580 static int CheckNumberOfComponents(
vtkAbstractArray* da,
int attributeType);
592 class vtkInternalComponentNames;
598 void PrintSelf(ostream &os,
vtkIndent indent);
610 int IsAttributePresent(
int attrType);
626 { this->FieldIndices[i] =
index; }
629 void RemoveField(
const char *
name);
631 void GrowBy(
unsigned int delta);
638 int *FieldComponents;
643 vtkInternalComponentNames **FieldComponentsNames;
653 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