10#ifndef vtkReflectionUtilities_h
11#define vtkReflectionUtilities_h
17VTK_ABI_NAMESPACE_BEGIN
27 vtkFieldData* fd, std::vector<std::pair<vtkIdType, int>>& reflectableArrays);
57 int mirrorSymmetricTensorDir[6],
int mirrorTensorDir[9],
vtkIdType id);
70 vtkIdType numInputPoints,
bool copyInput);
87 int mirrorDir[3],
int mirrorSymmetricTensorDir[6],
int mirrorTensorDir[9],
bool copyInput,
94 int mirrorSymmetricTensorDir[6],
int mirrorTensorDir[9],
bool reflectAll);
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
Represents and manipulates a collection of data arrays.
dataset represents arbitrary combinations of all possible cell types
Reflection methods for Unstructured Grid.
void FindAllReflectableArrays(std::vector< std::pair< vtkIdType, int > > &reflectableArrays, vtkDataSetAttributes *inData, bool reflectAllInputArrays)
If reflectAllInputArrays is true, calls FindReflectableArrays.
void ReflectTuple(double *tuple, int *mirrorDir, int nComp)
Reflect each component of the provided tuple according to the provided mirrorDir using the provided n...
void ProcessUnstructuredGrid(vtkDataSet *input, vtkUnstructuredGrid *output, double constant[3], int mirrorDir[3], int mirrorSymmetricTensorDir[6], int mirrorTensorDir[9], bool copyInput, bool reflectAllInputArrays, vtkAlgorithm *algorithm)
Generate the reflection of the input dataset as an unstructured grid.
void CopyAndReflect(vtkDataSetAttributes *inAttr, vtkDataSetAttributes *outAttr, int mirrorDir[3], int mirrorSymmetricTensorDir[6], int mirrorTensorDir[9], bool reflectAll)
Copy all arrays and reflect the relevant ones.
vtkIdType ReflectNon3DCellInternal(vtkDataSet *input, vtkUnstructuredGrid *output, vtkIdType cellId, vtkIdType numInputPoints, bool copyInput)
Generate new, non-3D cell and return the generated cell id.
void FindReflectableArrays(vtkFieldData *fd, std::vector< std::pair< vtkIdType, int > > &reflectableArrays)
method to determine which arrays from a field data can be reflected and store them in the provided re...
void ReflectReflectableArrays(std::vector< std::pair< vtkIdType, int > > &reflectableArrays, vtkDataSetAttributes *inData, vtkDataSetAttributes *outData, vtkIdType i, int mirrorDir[3], int mirrorSymmetricTensorDir[6], int mirrorTensorDir[9], vtkIdType id)
Reflect the i-th tuple of each array in reflectableArrays.