VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkHyperOctreeDepth.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreeDepth.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 =========================================================================*/
25 #ifndef __vtkHyperOctreeDepth_h
26 #define __vtkHyperOctreeDepth_h
27 
28 #include "vtkFiltersHyperTreeModule.h" // For export macro
29 #include "vtkDataSetAlgorithm.h"
30 
31 class vtkHyperOctree;
32 class vtkHyperOctreeCursor;
33 class vtkIntArray;
34 
35 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeDepth : public vtkDataSetAlgorithm
36 {
37 public:
38  static vtkHyperOctreeDepth *New();
39  vtkTypeMacro(vtkHyperOctreeDepth, vtkDataSetAlgorithm);
40 
41 protected:
44 
45  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
46  virtual int FillInputPortInformation(int port, vtkInformation *info);
47  virtual int FillOutputPortInformation(int port, vtkInformation *info);
48 
49  vtkHyperOctree *Input;
50  vtkHyperOctree *Output;
51 
52  void TraverseAndCount(vtkHyperOctreeCursor *, int depth);
53 
54  vtkIntArray *GeneratedDepths;
56 
57 private:
58  vtkHyperOctreeDepth(const vtkHyperOctreeDepth&); // Not implemented.
59  void operator=(const vtkHyperOctreeDepth&); // Not implemented.
60 };
61 
62 #endif
vtkHyperOctree * Input
vtkIntArray * GeneratedDepths
vtkHyperOctree * Output
Assign tree depth attribute to each cell.