VTK
vtkHyperTreeGridToUnstructuredGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperTreeGridToUnstructuredGrid.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 =========================================================================*/
39 #ifndef vtkHyperTreeGridToUnstructuredGrid_h
40 #define vtkHyperTreeGridToUnstructuredGrid_h
41 
42 #include "vtkFiltersHyperTreeModule.h" // For export macro
44 
45 class vtkBitArray;
46 class vtkCellArray;
47 class vtkHyperTreeGrid;
49 class vtkPoints;
51 
52 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridToUnstructuredGrid : public vtkHyperTreeGridAlgorithm
53 {
54 public:
57  void PrintSelf( ostream&, vtkIndent ) override;
58 
59 protected:
62 
66  int FillOutputPortInformation( int, vtkInformation* ) override;
67 
71  int ProcessTrees( vtkHyperTreeGrid*, vtkDataObject* ) override;
72 
76  void RecursivelyProcessTree( vtkHyperTreeGridCursor*, vtkBitArray* );
77 
81  void AddCell( vtkIdType, double*, double* );
82 
87 
92 
96  unsigned int Dimension;
97 
98 private:
100  void operator=(const vtkHyperTreeGridToUnstructuredGrid&) = delete;
101 };
102 
103 #endif /* vtkHyperTreeGridToUnstructuredGrid_h */
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.
int vtkIdType
Definition: vtkType.h:347
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.
dataset represents arbitrary combinations of all possible cell types
vtkCellArray * Cells
Storage for cells of output unstructured mesh.
object to represent cell connectivity
Definition: vtkCellArray.h:50
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
Superclass for algorithms that produce a hyper tree grid as output.
static vtkAlgorithm * New()
Convert hyper tree grid to unstructured grid.
vtkPoints * Points
Storage for points of output unstructured mesh.
general representation of visualization data
Definition: vtkDataObject.h:64
unsigned int Dimension
Storage for dimension of underlying tree.
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...