VTK
|
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 "vtkFiltersHyperTreeModule.h" // For export macro 00029 #include "vtkDataSetAlgorithm.h" 00030 00031 class vtkHyperOctree; 00032 class vtkHyperOctreeCursor; 00033 class vtkIntArray; 00034 00035 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeDepth : public vtkDataSetAlgorithm 00036 { 00037 public: 00038 static vtkHyperOctreeDepth *New(); 00039 vtkTypeMacro(vtkHyperOctreeDepth, vtkDataSetAlgorithm); 00040 00041 protected: 00042 vtkHyperOctreeDepth(); 00043 ~vtkHyperOctreeDepth(); 00044 00045 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00046 virtual int FillInputPortInformation(int port, vtkInformation *info); 00047 virtual int FillOutputPortInformation(int port, vtkInformation *info); 00048 00049 vtkHyperOctree *Input; 00050 vtkHyperOctree *Output; 00051 00052 void TraverseAndCount(vtkHyperOctreeCursor *, int depth); 00053 00054 vtkIntArray *GeneratedDepths; 00055 int NumChildren; 00056 00057 private: 00058 vtkHyperOctreeDepth(const vtkHyperOctreeDepth&); // Not implemented. 00059 void operator=(const vtkHyperOctreeDepth&); // Not implemented. 00060 }; 00061 00062 #endif