VTK  9.2.6
vtkHyperTreeGridToDualGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridToDualGrid.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkHyperTreeGridToDualGrid_h
27 #define vtkHyperTreeGridToDualGrid_h
28 
29 #include "vtkFiltersHyperTreeModule.h" // For export macro
31 
32 #include <map> // std::map
33 
34 class vtkHyperTreeGrid;
36 class vtkIdTypeArray;
38 class vtkPoints;
39 
40 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridToDualGrid : public vtkHyperTreeGridAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47 protected:
49  ~vtkHyperTreeGridToDualGrid() override;
50 
54  int FillOutputPortInformation(int, vtkInformation*) override;
55 
60 
61 private:
63  void operator=(const vtkHyperTreeGridToDualGrid&) = delete;
64 
65  void TraverseDualRecursively(
67  void GenerateDualCornerFromLeaf1D(
69  void GenerateDualCornerFromLeaf2D(
71  void GenerateDualCornerFromLeaf3D(
73 
74  void TraverseDualRecursively(
76  void ShiftDualCornerFromMaskedLeaf2D(
78  void ShiftDualCornerFromMaskedLeaf3D(
80  void GenerateDualCornerFromLeaf2D(
82  void GenerateDualCornerFromLeaf3D(
84 
85  vtkPoints* Points;
86  vtkIdTypeArray* Connectivity;
87  std::map<vtkIdType, bool> PointShifted;
88  std::map<vtkIdType, double> PointShifts[3];
89  std::map<vtkIdType, double> ReductionFactors;
90 };
91 
92 #endif /* vtkHyperTreeGridToDualGrid_h */
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
dynamic, self-adjusting array of vtkIdType
Convert hyper tree grid to the dual unstructured grid.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dataset represents arbitrary combinations of all possible cell types
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:65
represent and manipulate 3D points
Definition: vtkPoints.h:39
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...