00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOBBDicer.h,v $ 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 =========================================================================*/ 00045 #ifndef __vtkOBBDicer_h 00046 #define __vtkOBBDicer_h 00047 00048 #include "vtkDicer.h" 00049 00050 class vtkOBBNode; 00051 class vtkShortArray; 00052 class vtkIdList; 00053 class vtkPoints; 00054 00055 class VTK_GRAPHICS_EXPORT vtkOBBDicer : public vtkDicer 00056 { 00057 public: 00058 vtkTypeRevisionMacro(vtkOBBDicer,vtkDicer); 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 00062 static vtkOBBDicer *New(); 00063 00064 protected: 00065 vtkOBBDicer() {}; 00066 ~vtkOBBDicer() {}; 00067 00068 // Usual data generation method 00069 void Execute(); 00070 00071 //implementation ivars and methods 00072 void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr); 00073 void MarkPoints(vtkOBBNode *OBBptr, vtkShortArray *groupIds); 00074 void DeleteTree(vtkOBBNode *OBBptr); 00075 vtkPoints *PointsList; 00076 00077 private: 00078 vtkOBBDicer(const vtkOBBDicer&); // Not implemented. 00079 void operator=(const vtkOBBDicer&); // Not implemented. 00080 }; 00081 00082 #endif 00083 00084