VTK  9.0.1
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 =========================================================================*/
23 #ifndef vtkHyperTreeGridToDualGrid_h
24 #define vtkHyperTreeGridToDualGrid_h
25 
26 #include "vtkFiltersHyperTreeModule.h" // For export macro
28 
29 #include <map> // std::map
30 
31 class vtkHyperTreeGrid;
33 class vtkIdTypeArray;
35 class vtkPoints;
36 
37 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridToDualGrid : public vtkHyperTreeGridAlgorithm
38 {
39 public:
42  void PrintSelf(ostream&, vtkIndent) override;
43 
44 protected:
46  ~vtkHyperTreeGridToDualGrid() override;
47 
51  int FillOutputPortInformation(int, vtkInformation*) override;
52 
57 
58 private:
60  void operator=(const vtkHyperTreeGridToDualGrid&) = delete;
61 
62  void TraverseDualRecursively(
64  void GenerateDualCornerFromLeaf1D(
66  void GenerateDualCornerFromLeaf2D(
68  void GenerateDualCornerFromLeaf3D(
70 
71  void TraverseDualRecursively(
73  void ShiftDualCornerFromMaskedLeaf2D(
75  void ShiftDualCornerFromMaskedLeaf3D(
77  void GenerateDualCornerFromLeaf2D(
79  void GenerateDualCornerFromLeaf3D(
81 
82  vtkPoints* Points;
83  vtkIdTypeArray* Connectivity;
84  std::map<vtkIdType, bool> PointShifted;
85  std::map<vtkIdType, double> PointShifts[3];
86  std::map<vtkIdType, double> ReductionFactors;
87 };
88 
89 #endif /* vtkHyperTreeGridToDualGrid_h */
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkHyperTreeGridNonOrientedMooreSuperCursor
Objects for traversal a HyperTreeGrid.
Definition: vtkHyperTreeGridNonOrientedMooreSuperCursor.h:48
vtkHyperTreeGridAlgorithm::ProcessTrees
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...
vtkHyperTreeGridAlgorithm.h
vtkHyperTreeGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkHyperTreeGridAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkHyperTreeGridToDualGrid
Convert hyper tree grid to the dual unstructured grid.
Definition: vtkHyperTreeGridToDualGrid.h:37
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:47
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:96