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 =========================================================================*/
30 #ifndef vtkHyperTreeGridGeometry_h
31 #define vtkHyperTreeGridGeometry_h
32 
33 #include "vtkFiltersHyperTreeModule.h" // For export macro
35 
36 class vtkBitArray;
37 class vtkCellArray;
38 class vtkDoubleArray;
39 class vtkHyperTreeGrid;
41 class vtkIdList;
42 class vtkIdTypeArray;
43 class vtkPoints;
44 
45 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGeometry : public vtkHyperTreeGridAlgorithm
46 {
47 public:
48  static vtkHyperTreeGridGeometry* New();
50  void PrintSelf( ostream&, vtkIndent ) override;
51 
52 protected:
54  ~vtkHyperTreeGridGeometry() override;
55 
59  int FillOutputPortInformation( int, vtkInformation* ) override;
60 
64  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
65 
69  void RecursivelyProcessTree( vtkHyperTreeGridCursor*, vtkBitArray* );
70 
74  void ProcessLeaf1D( vtkHyperTreeGridCursor* );
75 
79  void ProcessLeaf2D( vtkHyperTreeGridCursor*, vtkBitArray* );
80 
84  void ProcessLeaf3D( vtkHyperTreeGridCursor*, vtkBitArray* );
85 
89  void AddFace( vtkIdType, double*, double*, int, unsigned int, bool create = true );
90 
94  unsigned int Dimension;
95 
99  unsigned int Orientation;
100 
105 
110 
112 
119 
121 
127 
129 
132  vtkIdType EdgesA[12];
133  vtkIdType EdgesB[12];
135 
137 
143 
145 
151 
152 private:
154  void operator=(const vtkHyperTreeGridGeometry&) = delete;
155 };
156 
157 #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:33
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:30
vtkDoubleArray * Normals
Keep track of input interface parameters.
vtkDoubleArray * Intercepts
Keep track of input interface parameters.
object to represent cell connectivity
Definition: vtkCellArray.h:44
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
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:58
vtkIdList * FaceIDs
Storage for interface points.
represent and manipulate 3D points
Definition: vtkPoints.h:33
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...