Public Methods |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | SetInputField (int) |
virtual int | GetInputField () |
void | SetInputFieldToDataObjectField () |
void | SetInputFieldToPointDataField () |
void | SetInputFieldToCellDataField () |
virtual void | SetOutputAttributeData (int) |
virtual int | GetOutputAttributeData () |
void | SetOutputAttributeDataToCellData () |
void | SetOutputAttributeDataToPointData () |
void | SetScalarComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetScalarComponent (int comp, const char *arrayName, int arrayComp) |
const char * | GetScalarComponentArrayName (int comp) |
int | GetScalarComponentArrayComponent (int comp) |
int | GetScalarComponentMinRange (int comp) |
int | GetScalarComponentMaxRange (int comp) |
int | GetScalarComponentNormalizeFlag (int comp) |
void | SetVectorComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetVectorComponent (int comp, const char *arrayName, int arrayComp) |
const char * | GetVectorComponentArrayName (int comp) |
int | GetVectorComponentArrayComponent (int comp) |
int | GetVectorComponentMinRange (int comp) |
int | GetVectorComponentMaxRange (int comp) |
int | GetVectorComponentNormalizeFlag (int comp) |
void | SetGhostLevelComponent (const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetGhostLevelComponent (const char *arrayName, int arrayComp) |
const char * | GetGhostLevelComponentArrayName () |
int | GetGhostLevelComponentArrayComponent () |
int | GetGhostLevelComponentMinRange () |
int | GetGhostLevelComponentMaxRange () |
int | GetGhostLevelComponentNormalizeFlag () |
void | SetNormalComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetNormalComponent (int comp, const char *arrayName, int arrayComp) |
const char * | GetNormalComponentArrayName (int comp) |
int | GetNormalComponentArrayComponent (int comp) |
int | GetNormalComponentMinRange (int comp) |
int | GetNormalComponentMaxRange (int comp) |
int | GetNormalComponentNormalizeFlag (int comp) |
void | SetTensorComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetTensorComponent (int comp, const char *arrayName, int arrayComp) |
const char * | GetTensorComponentArrayName (int comp) |
int | GetTensorComponentArrayComponent (int comp) |
int | GetTensorComponentMinRange (int comp) |
int | GetTensorComponentMaxRange (int comp) |
int | GetTensorComponentNormalizeFlag (int comp) |
void | SetTCoordComponent (int comp, const char *arrayName, int arrayComp, int min, int max, int normalize) |
void | SetTCoordComponent (int comp, const char *arrayName, int arrayComp) |
const char * | GetTCoordComponentArrayName (int comp) |
int | GetTCoordComponentArrayComponent (int comp) |
int | GetTCoordComponentMinRange (int comp) |
int | GetTCoordComponentMaxRange (int comp) |
int | GetTCoordComponentNormalizeFlag (int comp) |
virtual void | SetDefaultNormalize (int) |
virtual int | GetDefaultNormalize () |
virtual void | DefaultNormalizeOn () |
virtual void | DefaultNormalizeOff () |
Static Public Methods |
int | IsTypeOf (const char *type) |
vtkFieldDataToAttributeDataFilter * | SafeDownCast (vtkObject *o) |
vtkFieldDataToAttributeDataFilter * | New () |
int | GetComponentsType (int numComp, vtkDataArray **arrays) |
int | ConstructArray (vtkDataArray *da, int comp, vtkDataArray *frray, int fieldComp, int min, int max, int normalize) |
vtkDataArray * | GetFieldArray (vtkFieldData *fd, char *name, int comp) |
void | SetArrayName (vtkObject *self, char *&name, const char *newName) |
int | UpdateComponentRange (vtkDataArray *da, int compRange[2]) |
Protected Methods |
| vtkFieldDataToAttributeDataFilter () |
| ~vtkFieldDataToAttributeDataFilter () |
| vtkFieldDataToAttributeDataFilter (const vtkFieldDataToAttributeDataFilter &) |
void | operator= (const vtkFieldDataToAttributeDataFilter &) |
void | Execute () |
void | ConstructScalars (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[4][2], char *arrays[4], int arrayComponents[4], int normalize[4], int numComp) |
void | ConstructVectors (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3]) |
void | ConstructGhostLevels (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[2], char *array, int arrayComponent, int normalize) |
void | ConstructNormals (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3]) |
void | ConstructTCoords (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[3][2], char *arrays[3], int arrayComponents[3], int normalize[3], int numComp) |
void | ConstructTensors (int num, vtkFieldData *fd, vtkDataSetAttributes *attr, int componentRange[9][2], char *arrays[9], int arrayComponents[9], int normalize[9]) |
void | ConstructFieldData (int num, vtkDataSetAttributes *attr) |
Protected Attributes |
int | InputField |
int | OutputAttributeData |
int | NumberOfScalarComponents |
char * | ScalarArrays [4] |
int | ScalarArrayComponents [4] |
int | ScalarComponentRange [4][2] |
int | ScalarNormalize [4] |
char * | VectorArrays [3] |
int | VectorArrayComponents [3] |
int | VectorComponentRange [3][2] |
int | VectorNormalize [3] |
char * | GhostLevelArray |
int | GhostLevelArrayComponent |
int | GhostLevelComponentRange [2] |
int | GhostLevelNormalize |
char * | NormalArrays [3] |
int | NormalArrayComponents [3] |
int | NormalComponentRange [3][2] |
int | NormalNormalize [3] |
char * | TensorArrays [9] |
int | TensorArrayComponents [9] |
int | TensorComponentRange [9][2] |
int | TensorNormalize [9] |
int | NumberOfTCoordComponents |
char * | TCoordArrays [3] |
int | TCoordArrayComponents [3] |
int | TCoordComponentRange [3][2] |
int | TCoordNormalize [3] |
int | DefaultNormalize |
vtkFieldDataToAttributeDataFilter is a class that maps field data into dataset attributes. The input to this filter is any type of dataset and the output is the same dataset (geometry/topology) with new attribute data (attribute data is passed through if not replaced during filter execution).
To use this filter you must specify which field data from the input dataset to use. There are three possibilities: the cell field data, the point field data, or the field data associated with the data object superclass. Then you specify which attribute data to create: either cell attribute data or point attribute data. Finally, you must define how to construct the various attribute data types (e.g., scalars, vectors, normals, etc.) from the arrays and the components of the arrays from the field data. This is done by associating components in the input field with components making up the attribute data. For example, you would specify a scalar with three components (RGB) by assigning components from the field for the R, then G, then B values of the scalars. You may also have to specify component ranges (for each R-G-B) to make sure that the number of R, G, and B values is the same. Also, you may want to normalize the components which helps distribute the data uniformly.