Inherits vtkDataSetAlgorithm.
|
virtual int | IsA (const char *type) |
|
vtkRearrangeFields * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
int | RemoveOperation (int operationId) |
|
|
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) |
|
|
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 () |
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| 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) |
|
Move/copy fields between field data, point data and cell data.
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:
rf AddOperation COPY foo DATA_OBJECT POINT_DATA
The same can be done using Python and Java bindings by passing strings as arguments.
Operation types: COPY, MOVE
AttributeTypes: SCALARS, VECTORS, NORMALS, TCOORDS, TENSORS
Field data locations: DATA_OBJECT, POINT_DATA, CELL_DATA
- Warning
- When using Tcl, Java, Python or Visual Basic bindings, the array name can not be one of the AttributeTypes when calling AddOperation() which takes strings as arguments. The Tcl (Java etc.) command will always assume the string corresponds to an attribute type when the argument is one of the AttributeTypes. In this situation, use the AddOperation() which takes enums.
- See Also
- vtkFieldData vtkDataSet vtkDataObjectToDataSetFilter vtkDataSetAttributes vtkDataArray vtkAssignAttribute vtkSplitField vtkMergeFields
- Examples:
- vtkRearrangeFields (Examples)
- Tests:
- vtkRearrangeFields (Tests)
Definition at line 73 of file vtkRearrangeFields.h.