Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

campos.h

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 __IENGINE_CAMPOS_H__
00020 #define __IENGINE_CAMPOS_H__
00021 
00022 #include "csutil/scf.h"
00023 
00024 class csVector3;
00025 class csPlane3;
00026 struct iObject;
00027 struct iEngine;
00028 struct iCamera;
00029 
00030 SCF_VERSION (iCameraPosition, 0, 1, 0);
00031 
00045 struct iCameraPosition : public iBase
00046 {
00048   virtual iObject *QueryObject() = 0;
00049 
00051   virtual iCameraPosition* Clone () const = 0;
00052 
00054   virtual const char *GetSector () = 0;
00056   virtual void SetSector (const char *Name) = 0;
00057 
00059   virtual const csVector3 &GetPosition () = 0;
00061   virtual void SetPosition (const csVector3 &p) = 0;
00062 
00064   virtual const csVector3 &GetUpwardVector () = 0;
00066   virtual void SetUpwardVector (const csVector3 &v) = 0;
00067 
00069   virtual const csVector3 &GetForwardVector () = 0;
00071   virtual void SetForwardVector (const csVector3 &v) = 0;
00072 
00074   virtual void Set (const char *sector, const csVector3 &pos,
00075       const csVector3 &forward, const csVector3 &upward) = 0;
00076 
00078   virtual bool Load (iCamera*, iEngine*) = 0;
00079 
00088   virtual void SetFarPlane (csPlane3* pl) = 0;
00089 
00094   virtual void ClearFarPlane () = 0;
00095 
00099   virtual csPlane3* GetFarPlane () const = 0;
00100 };
00101 
00102 
00103 SCF_VERSION (iCameraPositionList, 0, 0, 1);
00104 
00106 struct iCameraPositionList : public iBase
00107 {
00109   virtual iCameraPosition* NewCameraPosition (const char* name) = 0;
00110 
00112   virtual int GetCount () const = 0;
00113 
00115   virtual iCameraPosition *Get (int n) const = 0;
00116 
00118   virtual int Add (iCameraPosition *obj) = 0;
00119 
00121   virtual bool Remove (iCameraPosition *obj) = 0;
00122 
00124   virtual bool Remove (int n) = 0;
00125 
00127   virtual void RemoveAll () = 0;
00128 
00130   virtual int Find (iCameraPosition *obj) const = 0;
00131 
00133   virtual iCameraPosition *FindByName (const char *Name) const = 0;
00134 };
00135 
00136 #endif
00137 

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000