cameramanipulatorTV.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Robot Group Leipzig * 00003 * martius@informatik.uni-leipzig.de * 00004 * fhesse@informatik.uni-leipzig.de * 00005 * der@informatik.uni-leipzig.de * 00006 * frankguettler@gmx.de * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the * 00020 * Free Software Foundation, Inc., * 00021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00022 *************************************************************************** 00023 * * 00024 * Camera Manipulation by mouse and keyboard * 00025 * * 00026 * $Log: cameramanipulatorTV.h,v $ 00027 * Revision 1.2 2006/07/14 12:23:34 martius 00028 * selforg becomes HEAD 00029 * 00030 * Revision 1.1.2.4 2006/03/19 13:36:38 robot3 00031 * race mode now works 00032 * 00033 * Revision 1.1.2.3 2006/03/06 16:58:27 robot3 00034 * minor changes 00035 * 00036 * Revision 1.1.2.2 2006/03/03 12:08:51 robot3 00037 * preparations made for new cameramanipulators 00038 * 00039 * Revision 1.1.2.1 2006/02/01 10:24:34 robot3 00040 * new camera manipulator added 00041 * 00042 * * 00043 ***************************************************************************/ 00044 #ifndef __CAMERAMANIPULATORTV_H 00045 #define __CAMERAMANIPULATORTV_H 00046 00047 #include "osgforwarddecl.h" 00048 #include "cameramanipulator.h" 00049 00050 namespace lpzrobots { 00051 00052 /** 00053 CameraManipulatorTV is a MatrixManipulator which provides Flying simulator-like 00054 updating of the camera position & orientation. 00055 Left mouse button: Pan and tilt 00056 Right mouse button: forward and sideways 00057 Middle mouse button: up and sideways 00058 */ 00059 00060 class CameraManipulatorTV : public CameraManipulator { 00061 00062 public: 00063 00064 CameraManipulatorTV(osg::Node* node,GlobalData& global); 00065 00066 /** returns the classname of the manipulator 00067 it's NECCESSARY to define this funtion, otherwise 00068 the new manipulator WON'T WORK! (but ask me not why) 00069 */ 00070 virtual const char* className() const { return "TV-Camera"; } 00071 00072 protected: 00073 00074 virtual ~CameraManipulatorTV(); 00075 00076 /** This handles robot movements, so that the camera movemenent is right affected. 00077 should be overwritten by new cameramanipulator 00078 */ 00079 virtual void calcMovementByAgent(); 00080 00081 /** Sets the right view and eye if the robot has changed. 00082 Is called from manageRobots(); 00083 should be overwritten by new cameramanipulator 00084 */ 00085 virtual void setHomeViewByAgent(); 00086 virtual void setHomeEyeByAgent(); 00087 00088 }; 00089 } 00090 00091 #endif

Generated on Tue Jan 16 02:14:34 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8