VTK  9.2.6
vtkHyperTreeGridGeometry.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridGeometry.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 =========================================================================*/
34 #ifndef vtkHyperTreeGridGeometry_h
35 #define vtkHyperTreeGridGeometry_h
36 
37 #include "vtkFiltersHyperTreeModule.h" // For export macro
39 
40 class vtkBitArray;
41 class vtkCellArray;
42 class vtkDoubleArray;
43 class vtkHyperTreeGrid;
46 class vtkIdList;
47 class vtkIdTypeArray;
49 class vtkPoints;
51 
52 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGeometry : public vtkHyperTreeGridAlgorithm
53 {
54 public:
55  static vtkHyperTreeGridGeometry* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  vtkSetMacro(Merging, bool);
66  vtkGetMacro(Merging, bool);
68 
69 protected:
71  ~vtkHyperTreeGridGeometry() override;
72 
76  int FillOutputPortInformation(int, vtkInformation*) override;
77 
82 
86  void RecursivelyProcessTreeNot3D(vtkHyperTreeGridNonOrientedGeometryCursor*);
87  void RecursivelyProcessTree3D(vtkHyperTreeGridNonOrientedVonNeumannSuperCursor*, unsigned char);
88 
92  void ProcessLeaf1D(vtkHyperTreeGridNonOrientedGeometryCursor*);
93 
97  void ProcessLeaf2D(vtkHyperTreeGridNonOrientedGeometryCursor*);
98 
103 
107  void AddFace(vtkIdType useId, const double* origin, const double* size, unsigned int offset,
108  unsigned int orientation, unsigned char hideEdge);
109 
110  void AddFace2(vtkIdType inId, vtkIdType useId, const double* origin, const double* size,
111  unsigned int offset, unsigned int orientation, bool create = true);
112 
117 
122 
126  unsigned int Dimension;
127 
131  unsigned int Orientation;
132 
137 
142 
147 
152  bool Merging;
154 
155  // JB A RECUPERER DANS LE .H VTK9
159 
162 
163  vtkIdType EdgesA[12];
164  vtkIdType EdgesB[12];
165 
168 
171 
177 
178 private:
180  void operator=(const vtkHyperTreeGridGeometry&) = delete;
181 };
182 
183 #endif /* vtkHyperTreeGridGeometry_h */
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
bool Merging
JB Un locator est utilise afin de produire un maillage avec moins JB de points.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
unsigned int Dimension
Dimension of input grid.
Abstract class in support of both point location and point insertion.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:332
Hyper tree grid outer surface.
dynamic, self-adjusting array of double
vtkBitArray * PureMask
Pure Material Mask.
vtkUnsignedCharArray * EdgeFlags
Array used to hide edges left by masked cells.
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.
list of point or cell ids
Definition: vtkIdList.h:33
dynamic, self-adjusting array of unsigned char
vtkBitArray * Mask
material Mask
object to represent cell connectivity
Definition: vtkCellArray.h:186
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
Superclass for algorithms that produce a hyper tree grid as output.
vtkPoints * Points
Storage for points of output unstructured mesh.
static vtkAlgorithm * New()
unsigned int Orientation
Orientation of input grid when dimension < 3.
vtkCellArray * Cells
Storage for cells of output unstructured mesh.
general representation of visualization data
Definition: vtkDataObject.h:65
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkIncrementalPointLocator * Locator
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...