vtkRearrangeFields is used to copy/move fields (vtkDataArrays) between data object's field data, point data and cell data. To specify which fields are copied/moved, the user adds operations. There are two types of operations: 1. the type which copies/moves an attribute's data (i.e. the field will be copied but will not be an attribute in the target), 2. the type which copies/moves fields by name. For example:
rf->AddOperation(vtkRearrangeFields::COPY, "foo",
vtkRearrangeFields::DATA_OBJECT,
vtkRearrangeFields::POINT_DATA);
adds an operation which copies a field (data array) called foo from the data object's field data to point data. From Tcl, the same operation can be added as follows: Operation types: COPY, MOVE
AttributeTypes: SCALARS, VECTORS, NORMALS, TCOORDS, TENSORS
Field data locations: DATA_OBJECT, POINT_DATA, CELL_DATA
|
| int | AddOperation (int operationType, int attributeType, int fromFieldLoc, int toFieldLoc) |
| int | AddOperation (int operationType, const char *name, int fromFieldLoc, int toFieldLoc) |
| int | AddOperation (const char *operationType, const char *attributeType, const char *fromFieldLoc, const char *toFieldLoc) |
| static vtkRearrangeFields * | New () |
Public Types |
| typedef vtkDataSetAlgorithm | Superclass |
| enum | OperationType { COPY = 0,
MOVE = 1
} |
| enum | FieldLocation { DATA_OBJECT = 0,
POINT_DATA = 1,
CELL_DATA = 2
} |
| enum | FieldType { NAME,
ATTRIBUTE
} |
Public Member Functions |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
|
| int | RemoveOperation (int operationId) |
| int | RemoveOperation (int operationType, int attributeType, int fromFieldLoc, int toFieldLoc) |
| int | RemoveOperation (int operationType, const char *name, int fromFieldLoc, int toFieldLoc) |
| int | RemoveOperation (const char *operationType, const char *attributeType, const char *fromFieldLoc, const char *toFieldLoc) |
|
| void | RemoveAllOperations () |
Static Public Member Functions |
| static int | IsTypeOf (const char *type) |
| static vtkRearrangeFields * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| | vtkRearrangeFields () |
| virtual | ~vtkRearrangeFields () |
| int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
| Operation * | GetNextOperation (Operation *op) |
| Operation * | GetFirst () |
| void | AddOperation (Operation *op) |
| void | DeleteOperation (Operation *op, Operation *before) |
| Operation * | FindOperation (int id, Operation *&before) |
| Operation * | FindOperation (const char *name, Operation *&before) |
| Operation * | FindOperation (int operationType, const char *name, int fromFieldLoc, int toFieldLoc, Operation *&before) |
| Operation * | FindOperation (int operationType, int attributeType, int fromFieldLoc, int toFieldLoc, Operation *&before) |
| int | CompareOperationsByType (const Operation *op1, const Operation *op2) |
| int | CompareOperationsByName (const Operation *op1, const Operation *op2) |
| void | DeleteAllOperations () |
| void | ApplyOperation (Operation *op, vtkDataSet *input, vtkDataSet *output) |
| vtkFieldData * | GetFieldDataFromLocation (vtkDataSet *ds, int fieldLoc) |
| void | PrintAllOperations (ostream &os, vtkIndent indent) |
| void | PrintOperation (Operation *op, ostream &os, vtkIndent indent) |
Protected Attributes |
| Operation * | Head |
| Operation * | Tail |
| int | LastId |
Static Protected Attributes |
| static char | OperationTypeNames [2][5] |
| static char | FieldLocationNames [3][12] |
| static char | AttributeNames [vtkDataSetAttributes::NUM_ATTRIBUTES][10] |
Classes |
| struct | Operation |