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 */
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkHyperTreeGridCursor
Objects for depth-first traversal HyperTreeGrids.
Definition: vtkHyperTreeGridCursor.h:45
vtkHyperTreeGridGeometry::FacePoints
vtkPoints * FacePoints
Storage for interface points.
Definition: vtkHyperTreeGridGeometry.h:124
vtkHyperTreeGridGeometry::FaceIDs
vtkIdList * FaceIDs
Definition: vtkHyperTreeGridGeometry.h:125
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkHyperTreeGridGeometry::Intercepts
vtkDoubleArray * Intercepts
Definition: vtkHyperTreeGridGeometry.h:117
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
vtkHyperTreeGridGeometry::Normals
vtkDoubleArray * Normals
Definition: vtkHyperTreeGridGeometry.h:116
vtkHyperTreeGridGeometry::Points
vtkPoints * Points
Storage for points of output unstructured mesh.
Definition: vtkHyperTreeGridGeometry.h:104
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
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:44
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkHyperTreeGridGeometry::FaceScalarsA
vtkDoubleArray * FaceScalarsA
Storage for interface scalars.
Definition: vtkHyperTreeGridGeometry.h:148
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkHyperTreeGridGeometry
Hyper tree grid outer surface.
Definition: vtkHyperTreeGridGeometry.h:45
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkHyperTreeGridGeometry::FacesA
vtkIdTypeArray * FacesA
Storage for interface faces.
Definition: vtkHyperTreeGridGeometry.h:140
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
vtkHyperTreeGridGeometry::Dimension
unsigned int Dimension
Dimension of input grid.
Definition: vtkHyperTreeGridGeometry.h:94
vtkHyperTreeGridGeometry::FaceScalarsB
vtkDoubleArray * FaceScalarsB
Definition: vtkHyperTreeGridGeometry.h:149
vtkHyperTreeGridGeometry::HasInterface
bool HasInterface
Keep track of input interface parameters.
Definition: vtkHyperTreeGridGeometry.h:115
vtkHyperTreeGridGeometry::Orientation
unsigned int Orientation
Orientation of input grid when dimension < 3.
Definition: vtkHyperTreeGridGeometry.h:99
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkHyperTreeGridGeometry::Cells
vtkCellArray * Cells
Storage for cells of output unstructured mesh.
Definition: vtkHyperTreeGridGeometry.h:109
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkHyperTreeGridAlgorithm
Superclass for algorithms that produce a hyper tree grid as output.
Definition: vtkHyperTreeGridAlgorithm.h:46
vtkHyperTreeGridGeometry::FacesB
vtkIdTypeArray * FacesB
Definition: vtkHyperTreeGridGeometry.h:141
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:67