VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
37 #ifndef __vtkHyperTreeGridToUnstructuredGrid_h
38 #define __vtkHyperTreeGridToUnstructuredGrid_h
39 
40 #include "vtkFiltersHyperTreeModule.h" // For export macro
41 #include "vtkUnstructuredGridAlgorithm.h"
42 
43 class vtkCellArray;
44 class vtkDataSetAttributes;
45 class vtkHyperTreeGrid;
46 class vtkPoints;
47 
48 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridToUnstructuredGrid : public vtkUnstructuredGridAlgorithm
49 {
50 public:
52  vtkTypeMacro( vtkHyperTreeGridToUnstructuredGrid, vtkUnstructuredGridAlgorithm );
53  void PrintSelf( ostream&, vtkIndent );
54 
55 protected:
58 
59  unsigned int Dimension;
60  unsigned int CellSize;
61  unsigned int* Coefficients;
62 
63  virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* );
64  virtual int FillInputPortInformation( int, vtkInformation* );
65 
66  void ProcessTrees();
67  void RecursiveProcessTree( void* );
68  void AddCell( vtkIdType inId, double* origin, double* size );
69 
70  vtkHyperTreeGrid* Input;
71  vtkUnstructuredGrid* Output;
72 
73  vtkDataSetAttributes* InData;
74  vtkDataSetAttributes* OutData;
75 
76  vtkPoints* Points;
77  vtkCellArray* Cells;
78 
79 private:
81  void operator=(const vtkHyperTreeGridToUnstructuredGrid&); // Not implemented.
82 };
83 
84 #endif
Convert hyper tree grid to unstructured grid.