Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | 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 virtual 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 00068 virtual bool IsBoundingBoxSet () const = 0; 00069 00074 virtual void UpdateBoundingBoxes () = 0; 00075 00080 virtual void Clear () = 0; 00081 00087 virtual void* CreateRootNode () = 0; 00088 00092 virtual void* GetRootNode () = 0; 00093 00100 virtual void SplitNode (void* parent, int axis, float where, 00101 void*& child1, void*& child2) = 0; 00102 00106 virtual void* GetFirstChild (void* parent) const = 0; 00107 00111 virtual void* GetSecondChild (void* parent) const = 0; 00112 00116 virtual const csBox3& GetNodeBBox (void* node) const = 0; 00117 00121 virtual void GetAxisAndPosition ( 00122 void* node, int& axis, float& where) const = 0; 00123 00127 virtual void MarkInvisible (void* source, void* target) = 0; 00128 00133 virtual bool WriteOut () = 0; 00134 }; 00135 00136 #endif // __CS_IVARIA_PVSTREE_H__ 00137
Generated for Crystal Space by doxygen 1.4.4