Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
pvstree.h
00001 /* 00002 Copyright (C) 2004 by Jorrit Tyberghein 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CS_IVARIA_PVSTREE_H__ 00020 #define __CS_IVARIA_PVSTREE_H__ 00021 00022 #include "csutil/scf.h" 00023 00024 class csBox3; 00025 struct iDataBuffer; 00026 struct iStaticPVSTree; 00027 00028 SCF_VERSION (iPVSCuller, 0, 0, 1); 00029 00034 struct iPVSCuller : public iBase 00035 { 00039 virtual iStaticPVSTree* GetPVSTree () = 0; 00040 }; 00041 00042 SCF_VERSION (iStaticPVSTree, 0, 0, 1); 00043 00048 struct iStaticPVSTree : public iBase 00049 { 00056 virtual void SetBoundingBox (const csBox3& bbox) = 0; 00057 00061 virtual const csBox3& GetBoundingBox () const = 0; 00062 00067 virtual void UpdateBoundingBoxes () = 0; 00068 00073 virtual void Clear () = 0; 00074 00080 virtual void* CreateRootNode () = 0; 00081 00085 virtual void* GetRootNode () = 0; 00086 00093 virtual void SplitNode (void* parent, int axis, float where, 00094 void*& child1, void*& child2) = 0; 00095 00099 virtual void* GetFirstChild (void* parent) const = 0; 00100 00104 virtual void* GetSecondChild (void* parent) const = 0; 00105 00109 virtual const csBox3& GetNodeBBox (void* node) const = 0; 00110 00114 virtual void GetAxisAndPosition ( 00115 void* node, int& axis, float& where) const = 0; 00116 00120 virtual void MarkInvisible (void* source, void* target) = 0; 00121 00126 virtual bool WriteOut () = 0; 00127 }; 00128 00129 #endif // __CS_IVARIA_PVSTREE_H__ 00130
Generated for Crystal Space by doxygen 1.3.9.1