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:
45 
49 
52 
53  void TraverseAndCount(vtkHyperOctreeCursor *, int depth);
54 
57 
58 private:
59  vtkHyperOctreeDepth(const vtkHyperOctreeDepth&) VTK_DELETE_FUNCTION;
60  void operator=(const vtkHyperOctreeDepth&) VTK_DELETE_FUNCTION;
61 };
62 
63 #endif
vtkHyperOctree * Input
Store vtkAlgorithm input/output information.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkIntArray * GeneratedDepths
A dataset structured as a tree where each node has exactly 2^n children.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Objects that can traverse hyperoctree nodes.
vtkHyperOctree * Output
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()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.