CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 
00051 struct iCameraPosition : public iBase
00052 {
00054   virtual iObject *QueryObject() = 0;
00055 
00057   virtual iCameraPosition* Clone () const = 0;
00058 
00060   virtual const char *GetSector () = 0;
00062   virtual void SetSector (const char *Name) = 0;
00063 
00065   virtual const csVector3 &GetPosition () = 0;
00067   virtual void SetPosition (const csVector3 &p) = 0;
00068 
00070   virtual const csVector3 &GetUpwardVector () = 0;
00072   virtual void SetUpwardVector (const csVector3 &v) = 0;
00073 
00075   virtual const csVector3 &GetForwardVector () = 0;
00077   virtual void SetForwardVector (const csVector3 &v) = 0;
00078 
00080   virtual void Set (const char *sector, const csVector3 &pos,
00081       const csVector3 &forward, const csVector3 &upward) = 0;
00082 
00084   virtual bool Load (iCamera*, iEngine*) = 0;
00085 
00094   virtual void SetFarPlane (csPlane3* pl) = 0;
00095 
00100   virtual void ClearFarPlane () = 0;
00101 
00105   virtual csPlane3* GetFarPlane () const = 0;
00106 };
00107 
00108 
00109 SCF_VERSION (iCameraPositionList, 0, 0, 1);
00110 
00112 struct iCameraPositionList : public iBase
00113 {
00115   virtual iCameraPosition* NewCameraPosition (const char* name) = 0;
00116 
00118   virtual int GetCount () const = 0;
00119 
00121   virtual iCameraPosition *Get (int n) const = 0;
00122 
00124   virtual int Add (iCameraPosition *obj) = 0;
00125 
00127   virtual bool Remove (iCameraPosition *obj) = 0;
00128 
00130   virtual bool Remove (int n) = 0;
00131 
00133   virtual void RemoveAll () = 0;
00134 
00136   virtual int Find (iCameraPosition *obj) const = 0;
00137 
00139   virtual iCameraPosition *FindByName (const char *Name) const = 0;
00140 };
00141 
00144 #endif // __CS_IENGINE_CAMPOS_H__
00145 

Generated for Crystal Space by doxygen 1.2.14