00001 /* ViewMorphing.hpp - Morpheous 00002 * 00003 * $Header: /home/aldon/cvs/Morpheous/include/ViewMorphing.hpp,v 1.3 2003/08/21 02:02:08 aldon Exp $ 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 00021 #ifndef __VIEWMORPHING_HPP__ 00022 #define __VIEWMORPHING_HPP__ 00023 00024 #include "Image.hpp" 00025 #include "Morphing.hpp" 00026 #include "Camera.hpp" 00027 00031 class ViewMorphing : public Morphing 00032 { 00033 private: 00034 00038 const Camera* camera1; 00039 00043 const Camera* camera2; 00044 00048 Camera* finalCamera; 00049 00053 Vector objectCenter; 00054 00055 public: 00056 00060 ViewMorphing(const Mapping* mapping); 00061 00065 ~ViewMorphing(); 00066 00070 void setCamera(const Camera* camera, WhichImage which); 00071 00077 const Image* doMorph(float s); 00078 }; 00079 00080 00081 #endif // __VIEWMORPHING_HPP__