VTK  9.7.1
vtkReflectionUtilities.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkReflectionUtilities_h
11 #define vtkReflectionUtilities_h
12 
13 #include "vtkAlgorithm.h" // for vtkAlgorithm class
14 #include "vtkUnstructuredGrid.h" // for vtkUnstructuredGrid class
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 
19 {
20 
26  vtkFieldData* fd, std::vector<std::pair<vtkIdType, int>>& reflectableArrays);
27 
32 void FindAllReflectableArrays(std::vector<std::pair<vtkIdType, int>>& reflectableArrays,
33  vtkDataSetAttributes* inData, bool reflectAllInputArrays);
34 
39 void ReflectTuple(double* tuple, int* mirrorDir, int nComp);
40 
54 void ReflectReflectableArrays(std::vector<std::pair<vtkIdType, int>>& reflectableArrays,
55  vtkDataSetAttributes* inData, vtkDataSetAttributes* outData, vtkIdType i, int mirrorDir[3],
56  int mirrorSymmetricTensorDir[6], int mirrorTensorDir[9], vtkIdType id);
57 
69  vtkIdType numInputPoints, bool copyInput);
70 
85 void ProcessUnstructuredGrid(vtkDataSet* input, vtkUnstructuredGrid* output, double constant[3],
86  int mirrorDir[3], int mirrorSymmetricTensorDir[6], int mirrorTensorDir[9], bool copyInput,
87  bool reflectAllInputArrays, vtkAlgorithm* algorithm);
88 }
89 
90 VTK_ABI_NAMESPACE_END
91 
92 #endif
vtkIdType ReflectNon3DCellInternal(vtkDataSet *input, vtkUnstructuredGrid *output, vtkIdType cellId, vtkIdType numInputPoints, bool copyInput)
Generate new, non-3D cell and return the generated cell id.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
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.
int vtkIdType
Definition: vtkType.h:363
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
dataset represents arbitrary combinations of all possible cell types
represent and manipulate attribute data in a dataset
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.
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 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...
Represents and manipulates a collection of data arrays.
Definition: vtkFieldData.h:51