00001 /* ************************************************************************* 00002 insidelist.h - description 00003 ------------------- 00004 begin : Wed Oct 16 2002 00005 copyright : (C) 2002 by Micha Riser 00006 email : mriser@gmx.net 00007 00008 $Id: insidelist_8h-source.html,v 1.1 2005/02/04 21:02:27 micha Exp $ 00009 00010 ************************************************************************* */ 00011 00012 /* ************************************************************************* 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ************************************************************************* */ 00020 00021 00022 #ifndef INSIDELIST_H 00023 #define INSIDELIST_H 00024 00025 #include<list> 00026 #include "types.h" 00027 00028 class Object3D; 00029 class Media3D; 00030 00035 class InsideList { 00036 00037 public: // Public attributes 00038 std::list<const Object3D*> objectlist; // public?? -- better not 00039 FLT ior; 00040 00041 public: // Constructors and destructor 00042 00045 InsideList(): objectlist(), ior(1) {} 00046 00049 InsideList(const InsideList& l): objectlist(l.objectlist), ior(l.ior) {}; 00050 00051 public: // Public methods 00054 void add(const Object3D* o); 00055 00059 FLT swap(const Object3D* o); 00060 00064 Media3D* getMedia(); 00065 00066 private: // Private methods 00067 00070 bool remove(const Object3D* o); 00071 00072 }; 00073 00074 #endif
1.3.8