00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOBBDicer.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00037 #ifndef __vtkOBBDicer_h 00038 #define __vtkOBBDicer_h 00039 00040 #include "vtkDicer.h" 00041 00042 class vtkOBBNode; 00043 class vtkShortArray; 00044 class vtkIdList; 00045 class vtkPoints; 00046 00047 class VTK_GRAPHICS_EXPORT vtkOBBDicer : public vtkDicer 00048 { 00049 public: 00050 vtkTypeRevisionMacro(vtkOBBDicer,vtkDicer); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 static vtkOBBDicer *New(); 00055 00056 protected: 00057 vtkOBBDicer() {}; 00058 ~vtkOBBDicer() {}; 00059 00060 // Usual data generation method 00061 void Execute(); 00062 00063 //implementation ivars and methods 00064 void BuildTree(vtkIdList *ptIds, vtkOBBNode *OBBptr); 00065 void MarkPoints(vtkOBBNode *OBBptr, vtkShortArray *groupIds); 00066 void DeleteTree(vtkOBBNode *OBBptr); 00067 vtkPoints *PointsList; 00068 00069 private: 00070 vtkOBBDicer(const vtkOBBDicer&); // Not implemented. 00071 void operator=(const vtkOBBDicer&); // Not implemented. 00072 }; 00073 00074 #endif 00075 00076