45#ifndef vtkRearrangeFields_h
46#define vtkRearrangeFields_h
49#include "vtkFiltersCoreModule.h"
53VTK_ABI_NAMESPACE_BEGIN
84 int AddOperation(
int operationType,
int attributeType,
int fromFieldLoc,
int toFieldLoc);
90 int AddOperation(
int operationType,
const char* name,
int fromFieldLoc,
int toFieldLoc);
96 int AddOperation(
const char* operationType,
const char* attributeType,
const char* fromFieldLoc,
97 const char* toFieldLoc);
107 int RemoveOperation(
int operationType,
int attributeType,
int fromFieldLoc,
int toFieldLoc);
112 int RemoveOperation(
int operationType,
const char* name,
int fromFieldLoc,
int toFieldLoc);
118 const char* fromFieldLoc,
const char* toFieldLoc);
128 this->DeleteAllOperations();
173 int operationType,
const char* name,
int fromFieldLoc,
int toFieldLoc,
Operation*& before);
175 int operationType,
int attributeType,
int fromFieldLoc,
int toFieldLoc,
Operation*& before);
188 static char OperationTypeNames[2][5];
189 static char FieldLocationNames[3][12];
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
represent and manipulate fields of data
a simple class to control print indentation
virtual void Modified()
Update the modification time for this object.
Move/copy fields between field data, point data and cell data.
int CompareOperationsByType(const Operation *op1, const Operation *op2)
Operation * FindOperation(int operationType, int attributeType, int fromFieldLoc, int toFieldLoc, Operation *&before)
void AddOperation(Operation *op)
int RemoveOperation(int operationId)
Remove an operation with the given id.
void DeleteOperation(Operation *op, Operation *before)
~vtkRearrangeFields() override
void RemoveAllOperations()
Remove all operations.
static vtkRearrangeFields * New()
Create a new vtkRearrangeFields with an empty operation list.
Operation * FindOperation(const char *name, Operation *&before)
Operation * GetNextOperation(Operation *op)
void PrintOperation(Operation *op, ostream &os, vtkIndent indent)
int AddOperation(const char *operationType, const char *attributeType, const char *fromFieldLoc, const char *toFieldLoc)
Helper method used by other language bindings.
int CompareOperationsByName(const Operation *op1, const Operation *op2)
void PrintAllOperations(ostream &os, vtkIndent indent)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void ApplyOperation(Operation *op, vtkDataSet *input, vtkDataSet *output)
int AddOperation(int operationType, const char *name, int fromFieldLoc, int toFieldLoc)
Add an operation which copies a field (data array) from one field data to another.
int RemoveOperation(const char *operationType, const char *attributeType, const char *fromFieldLoc, const char *toFieldLoc)
Remove an operation with the given signature.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Operation * FindOperation(int operationType, const char *name, int fromFieldLoc, int toFieldLoc, Operation *&before)
int AddOperation(int operationType, int attributeType, int fromFieldLoc, int toFieldLoc)
Add an operation which copies an attribute's field (data array) from one field data to another.
vtkFieldData * GetFieldDataFromLocation(vtkDataSet *ds, int fieldLoc)
int RemoveOperation(int operationType, const char *name, int fromFieldLoc, int toFieldLoc)
Remove an operation with the given signature.
Operation * FindOperation(int id, Operation *&before)
int RemoveOperation(int operationType, int attributeType, int fromFieldLoc, int toFieldLoc)
Remove an operation with the given signature.
void DeleteAllOperations()