Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
campos.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2000 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_IENGINE_CAMPOS_H__ 00020 #define __CS_IENGINE_CAMPOS_H__ 00021 00028 #include "csutil/scf.h" 00029 00030 class csVector3; 00031 class csPlane3; 00032 struct iObject; 00033 struct iEngine; 00034 struct iCamera; 00035 00036 SCF_VERSION (iCameraPosition, 0, 1, 0); 00037 00066 struct iCameraPosition : public iBase 00067 { 00069 virtual iObject *QueryObject() = 0; 00070 00072 virtual iCameraPosition* Clone () const = 0; 00073 00075 virtual const char *GetSector () = 0; 00077 virtual void SetSector (const char *Name) = 0; 00078 00080 virtual const csVector3 &GetPosition () = 0; 00082 virtual void SetPosition (const csVector3 &p) = 0; 00083 00085 virtual const csVector3 &GetUpwardVector () = 0; 00087 virtual void SetUpwardVector (const csVector3 &v) = 0; 00088 00090 virtual const csVector3 &GetForwardVector () = 0; 00092 virtual void SetForwardVector (const csVector3 &v) = 0; 00093 00095 virtual void Set (const char *sector, const csVector3 &pos, 00096 const csVector3 &forward, const csVector3 &upward) = 0; 00097 00099 virtual bool Load (iCamera*, iEngine*) = 0; 00100 00109 virtual void SetFarPlane (csPlane3* pl) = 0; 00110 00115 virtual void ClearFarPlane () = 0; 00116 00120 virtual csPlane3* GetFarPlane () const = 0; 00121 }; 00122 00123 00124 SCF_VERSION (iCameraPositionList, 0, 0, 1); 00125 00139 struct iCameraPositionList : public iBase 00140 { 00142 virtual iCameraPosition* NewCameraPosition (const char* name) = 0; 00143 00145 virtual int GetCount () const = 0; 00146 00148 virtual iCameraPosition *Get (int n) const = 0; 00149 00151 virtual int Add (iCameraPosition *obj) = 0; 00152 00154 virtual bool Remove (iCameraPosition *obj) = 0; 00155 00157 virtual bool Remove (int n) = 0; 00158 00160 virtual void RemoveAll () = 0; 00161 00163 virtual int Find (iCameraPosition *obj) const = 0; 00164 00166 virtual iCameraPosition *FindByName (const char *Name) const = 0; 00167 }; 00168 00171 #endif // __CS_IENGINE_CAMPOS_H__ 00172
Generated for Crystal Space by doxygen 1.3.9.1