VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
33 #ifndef __vtkHyperTreeGridGeometry_h
34 #define __vtkHyperTreeGridGeometry_h
35 
36 #include "vtkFiltersHyperTreeModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class vtkCellArray;
40 class vtkDataSetAttributes;
41 class vtkHyperTreeGrid;
42 class vtkPoints;
43 
44 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridGeometry : public vtkPolyDataAlgorithm
45 {
46 public:
47  static vtkHyperTreeGridGeometry* New();
48  vtkTypeMacro( vtkHyperTreeGridGeometry, vtkPolyDataAlgorithm );
49  void PrintSelf( ostream&, vtkIndent );
50 
51 protected:
54 
55  virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* );
56  virtual int FillInputPortInformation( int, vtkInformation* );
57 
58  void ProcessTrees();
59  void RecursiveProcessTree( void* );
60  void ProcessLeaf1D( void* );
61  void ProcessLeaf2D( void* );
62  void ProcessLeaf3D( void* );
63  void AddFace( vtkIdType inId, double* origin, double* size,
64  int offset, int orientation );
65 
66  vtkHyperTreeGrid* Input;
67  vtkPolyData* Output;
68 
69  vtkDataSetAttributes* InData;
70  vtkDataSetAttributes* OutData;
71 
72  vtkPoints* Points;
73  vtkCellArray* Cells;
74 
75 private:
76  vtkHyperTreeGridGeometry(const vtkHyperTreeGridGeometry&); // Not implemented.
77  void operator=(const vtkHyperTreeGridGeometry&); // Not implemented.
78 };
79 
80 #endif
vtkDataSetAttributes * InData
Hyper tree grid outer surface.
vtkDataSetAttributes * OutData