00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkHyperOctreeDepth.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00025 #ifndef __vtkHyperOctreeDepth_h 00026 #define __vtkHyperOctreeDepth_h 00027 00028 #include "vtkDataSetAlgorithm.h" 00029 00030 class vtkHyperOctree; 00031 class vtkHyperOctreeCursor; 00032 class vtkIntArray; 00033 00034 class VTK_GRAPHICS_EXPORT vtkHyperOctreeDepth : public vtkDataSetAlgorithm 00035 { 00036 public: 00037 static vtkHyperOctreeDepth *New(); 00038 vtkTypeMacro(vtkHyperOctreeDepth, vtkDataSetAlgorithm); 00039 00040 protected: 00041 vtkHyperOctreeDepth(); 00042 ~vtkHyperOctreeDepth(); 00043 00044 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00045 virtual int FillInputPortInformation(int port, vtkInformation *info); 00046 virtual int FillOutputPortInformation(int port, vtkInformation *info); 00047 00048 vtkHyperOctree *Input; 00049 vtkHyperOctree *Output; 00050 00051 void TraverseAndCount(vtkHyperOctreeCursor *, int depth); 00052 00053 vtkIntArray *GeneratedDepths; 00054 int NumChildren; 00055 00056 private: 00057 vtkHyperOctreeDepth(const vtkHyperOctreeDepth&); // Not implemented. 00058 void operator=(const vtkHyperOctreeDepth&); // Not implemented. 00059 }; 00060 00061 #endif