VTK  9.3.0
vtkHyperTreeGridToDualGrid.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
14 #ifndef vtkHyperTreeGridToDualGrid_h
15 #define vtkHyperTreeGridToDualGrid_h
16 
17 #include "vtkFiltersHyperTreeModule.h" // For export macro
19 
20 #include <map> // std::map
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkHyperTreeGrid;
25 class vtkIdTypeArray;
27 class vtkPoints;
28 
29 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridToDualGrid : public vtkHyperTreeGridAlgorithm
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
36 protected:
39 
44 
49 
50 private:
52  void operator=(const vtkHyperTreeGridToDualGrid&) = delete;
53 
54  void TraverseDualRecursively(
56  void GenerateDualCornerFromLeaf1D(
58  void GenerateDualCornerFromLeaf2D(
60  void GenerateDualCornerFromLeaf3D(
62 
63  void TraverseDualRecursively(
65  void ShiftDualCornerFromMaskedLeaf2D(
67  void ShiftDualCornerFromMaskedLeaf3D(
69  void GenerateDualCornerFromLeaf2D(
71  void GenerateDualCornerFromLeaf3D(
73 
74  vtkPoints* Points;
75  vtkIdTypeArray* Connectivity;
76  std::map<vtkIdType, bool> PointShifted;
77  std::map<vtkIdType, double> PointShifts[3];
78  std::map<vtkIdType, double> ReductionFactors;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif /* vtkHyperTreeGridToDualGrid_h */
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
general representation of visualization data
Definition: vtkDataObject.h:55
Superclass for algorithms that produce a hyper tree grid as output.
Convert hyper tree grid to the dual unstructured grid.
static vtkHyperTreeGridToDualGrid * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkUnstructuredGrid instance.
~vtkHyperTreeGridToDualGrid() override
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to convert the grid of tree into an unstructured grid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:29
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:29
dataset represents arbitrary combinations of all possible cell types