VTK
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 =========================================================================*/
36 #ifndef vtkHyperTreeGridGeometry_h
37 #define vtkHyperTreeGridGeometry_h
38 
39 #include "vtkFiltersHyperTreeModule.h" // For export macro
41 
42 class vtkBitArray;
43 class vtkCellArray;
44 class vtkDoubleArray;
45 class vtkHyperTreeGrid;
47 class vtkIdList;
48 class vtkIdTypeArray;
49 class vtkPoints;
50 
51 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGeometry : public vtkHyperTreeGridAlgorithm
52 {
53 public:
54  static vtkHyperTreeGridGeometry* New();
56  void PrintSelf( ostream&, vtkIndent ) override;
57 
58 protected:
60  ~vtkHyperTreeGridGeometry() override;
61 
65  int FillOutputPortInformation( int, vtkInformation* ) override;
66 
70  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
71 
75  void RecursivelyProcessTree( vtkHyperTreeGridCursor*, vtkBitArray* );
76 
80  void ProcessLeaf1D( vtkHyperTreeGridCursor* );
81 
85  void ProcessLeaf2D( vtkHyperTreeGridCursor*, vtkBitArray* );
86 
90  void ProcessLeaf3D( vtkHyperTreeGridCursor*, vtkBitArray* );
91 
95  void AddFace( vtkIdType, double*, double*, int, unsigned int, bool create = true );
96 
100  unsigned int Dimension;
101 
105  unsigned int Orientation;
106 
111 
116 
118 
125 
127 
133 
135 
138  vtkIdType EdgesA[12];
139  vtkIdType EdgesB[12];
141 
143 
149 
151 
157 
158 private:
160  void operator=(const vtkHyperTreeGridGeometry&) = delete;
161 };
162 
163 #endif /* vtkHyperTreeGridGeometry_h */
vtkIdTypeArray * FacesB
Storage for interface faces.
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.
bool HasInterface
Keep track of input interface parameters.
unsigned int Dimension
Dimension of input grid.
vtkIdTypeArray * FacesA
Storage for interface faces.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:345
Hyper tree grid outer surface.
dynamic, self-adjusting array of double
vtkDoubleArray * FaceScalarsB
Storage for interface scalars.
Objects for depth-first traversal HyperTreeGrids.
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:36
vtkDoubleArray * Normals
Keep track of input interface parameters.
vtkDoubleArray * Intercepts
Keep track of input interface parameters.
object to represent cell connectivity
Definition: vtkCellArray.h:50
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
vtkDoubleArray * FaceScalarsA
Storage for interface scalars.
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.
vtkPoints * FacePoints
Storage for interface points.
general representation of visualization data
Definition: vtkDataObject.h:64
vtkIdList * FaceIDs
Storage for interface points.
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...