VTK
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 =========================================================================*/
26 #ifndef vtkHyperOctreeDepth_h
27 #define vtkHyperOctreeDepth_h
28 
29 #include "vtkFiltersHyperTreeModule.h" // For export macro
30 #include "vtkDataSetAlgorithm.h"
31 
32 class vtkHyperOctree;
34 class vtkIntArray;
35 
36 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeDepth : public vtkDataSetAlgorithm
37 {
38 public:
39  static vtkHyperOctreeDepth *New();
41 
42 protected:
44  ~vtkHyperOctreeDepth() VTK_OVERRIDE;
45 
46  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
47  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
48  int FillOutputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
49 
51  vtkHyperOctree *Output;
52 
53  void TraverseAndCount(vtkHyperOctreeCursor *, int depth);
54 
55  vtkIntArray *GeneratedDepths;
56  int NumChildren;
57 
58 private:
59  vtkHyperOctreeDepth(const vtkHyperOctreeDepth&) VTK_DELETE_FUNCTION;
60  void operator=(const vtkHyperOctreeDepth&) VTK_DELETE_FUNCTION;
61 };
62 
63 #endif
Store vtkAlgorithm input/output information.
A dataset structured as a tree where each node has exactly 2^n children.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
Objects that can traverse hyperoctree nodes.
Assign tree depth attribute to each cell.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()