#include <vtkRearrangeFields.h>
Inheritance diagram for vtkRearrangeFields:
Public Types | |
enum | OperationType { COPY = 0, MOVE = 1 } |
enum | FieldLocation { DATA_OBJECT = 0, POINT_DATA = 1, CELL_DATA = 2 } |
enum | FieldType { NAME, ATTRIBUTE } |
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
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 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 Methods | |
int | IsTypeOf (const char *type) |
vtkRearrangeFields * | SafeDownCast (vtkObject *o) |
vtkRearrangeFields * | New () |
Protected Methods | |
vtkRearrangeFields () | |
virtual | ~vtkRearrangeFields () |
void | Execute () |
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 | |
char | OperationTypeNames [2][5] |
char | FieldLocationNames [3][12] |
char | AttributeNames [vtkDataSetAttributes::NUM_ATTRIBUTES][10] |
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);
rf AddOperation COPY foo DATA_OBJECT POINT_DATA
Operation types: COPY, MOVE AttributeTypes: SCALARS, VECTORS, NORMALS, TCOORDS, TENSORS Field data locations: DATA_OBJECT, POINT_DATA, CELL_DATA
Definition at line 98 of file vtkRearrangeFields.h.
|
Definition at line 108 of file vtkRearrangeFields.h. |
|
Definition at line 113 of file vtkRearrangeFields.h. |
|
Definition at line 172 of file vtkRearrangeFields.h. |
|
|
|
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkSource. |
|
Create a new vtkRearrangeFields with an empty operation list. Reimplemented from vtkDataSetSource. |
|
Add an operation which copies an attribute's field (data array) from one field data to another. Returns an operation id which can later be used to remove the operation. |
|
Add an operation which copies an attribute's field (data array) from one field data to another. Returns an operation id which can later be used to remove the operation. |
|
Add an operation which copies an attribute's field (data array) from one field data to another. Returns an operation id which can later be used to remove the operation. |
|
Remove an operation with the given id. |
|
Remove an operation with the given id. |
|
Remove an operation with the given id. |
|
Remove an operation with the given id. |
|
Remove all operations. Definition at line 163 of file vtkRearrangeFields.h. |
|
This method is the old style execute method Reimplemented from vtkSource. |
|
Definition at line 209 of file vtkRearrangeFields.h. |
|
Definition at line 211 of file vtkRearrangeFields.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 239 of file vtkRearrangeFields.h. |
|
Definition at line 254 of file vtkRearrangeFields.h. |
|
Definition at line 202 of file vtkRearrangeFields.h. |
|
Definition at line 203 of file vtkRearrangeFields.h. |
|
Definition at line 206 of file vtkRearrangeFields.h. |
|
Definition at line 235 of file vtkRearrangeFields.h. |
|
Definition at line 236 of file vtkRearrangeFields.h. |
|
Definition at line 237 of file vtkRearrangeFields.h. |