VTK  9.0.3
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 =========================================================================*/
31 #ifndef vtkHyperTreeGridGeometry_h
32 #define vtkHyperTreeGridGeometry_h
33 
34 #include "vtkFiltersHyperTreeModule.h" // For export macro
36 
37 class vtkBitArray;
38 class vtkCellArray;
39 class vtkHyperTreeGrid;
40 class vtkPoints;
42 class vtkDoubleArray;
45 class vtkIdList;
46 class vtkIdTypeArray;
48 
49 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGeometry : public vtkHyperTreeGridAlgorithm
50 {
51 public:
54  void PrintSelf(ostream&, vtkIndent) override;
55 
57 
62  vtkSetMacro(Merging, bool);
63  vtkGetMacro(Merging, bool);
65 
66 protected:
69 
74 
79 
85 
90 
95 
100 
104  void AddFace(vtkIdType useId, const double* origin, const double* size, unsigned int offset,
105  unsigned int orientation, unsigned char hideEdge);
106 
107  void AddFace2(vtkIdType inId, vtkIdType useId, const double* origin, const double* size,
108  unsigned int offset, unsigned int orientation, bool create = true);
109 
114 
119 
123  unsigned int Dimension;
124 
128  unsigned int Orientation;
129 
134 
139 
144 
149  bool Merging;
151 
152  // JB A RECUPERER DANS LE .H VTK9
156 
159 
160  vtkIdType EdgesA[12];
161  vtkIdType EdgesB[12];
162 
165 
168 
174 
175 private:
177  void operator=(const vtkHyperTreeGridGeometry&) = delete;
178 };
179 
180 #endif /* vtkHyperTreeGridGeometry_h */
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:34
object to represent cell connectivity
Definition: vtkCellArray.h:180
general representation of visualization data
Definition: vtkDataObject.h:60
dynamic, self-adjusting array of double
Superclass for algorithms that produce a hyper tree grid as output.
Hyper tree grid outer surface.
static vtkHyperTreeGridGeometry * New()
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkPolyData instance.
vtkBitArray * PureMask
Pure Material Mask.
void AddFace2(vtkIdType inId, vtkIdType useId, const double *origin, const double *size, unsigned int offset, unsigned int orientation, bool create=true)
void ProcessLeaf1D(vtkHyperTreeGridNonOrientedGeometryCursor *)
Process 1D leaves and issue corresponding edges (lines)
void RecursivelyProcessTreeNot3D(vtkHyperTreeGridNonOrientedGeometryCursor *)
Recursively descend into tree down to leaves.
void RecursivelyProcessTree3D(vtkHyperTreeGridNonOrientedVonNeumannSuperCursor *, unsigned char)
bool Merging
JB Un locator est utilise afin de produire un maillage avec moins JB de points.
void AddFace(vtkIdType useId, const double *origin, const double *size, unsigned int offset, unsigned int orientation, unsigned char hideEdge)
Helper method to generate a face based on its normal and offset from cursor origin.
void PrintSelf(ostream &, vtkIndent) override
Methods invoked by print to print information about the object including superclasses.
~vtkHyperTreeGridGeometry() override
vtkPoints * Points
Storage for points of output unstructured mesh.
void ProcessLeaf2D(vtkHyperTreeGridNonOrientedGeometryCursor *)
Process 2D leaves and issue corresponding faces (quads)
vtkCellArray * Cells
Storage for cells of output unstructured mesh.
vtkBitArray * Mask
material Mask
unsigned int Orientation
Orientation of input grid when dimension < 3.
unsigned int Dimension
Dimension of input grid.
vtkIncrementalPointLocator * Locator
void ProcessLeaf3D(vtkHyperTreeGridNonOrientedVonNeumannSuperCursor *)
Process 3D leaves and issue corresponding cells (voxels)
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to generate external boundary.
vtkUnsignedCharArray * EdgeFlags
Array used to hide edges left by masked cells.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
list of point or cell ids
Definition: vtkIdList.h:31
dynamic, self-adjusting array of vtkIdType
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:34
dynamic, self-adjusting array of unsigned char
@ orientation
Definition: vtkX3D.h:268
@ size
Definition: vtkX3D.h:259
@ offset
Definition: vtkX3D.h:444
int vtkIdType
Definition: vtkType.h:338