Robotsystem from Robot Group Leipzig: cameramanipulatorRace.h Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# cameramanipulatorRace.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: cameramanipulatorRace.h,v $
    00027  *   Revision 1.1.2.1  2006/03/19 13:34:31  robot3
    00028  *   race mode now works
    00029  *
    00030  *
    00031  *                                                                         *
    00032  ***************************************************************************/
    00033 #ifndef __CAMERAMANIPULATORRACE_H
    00034 #define __CAMERAMANIPULATORRACE_H
    00035
    00036 #include "osgforwarddecl.h"
    00037 #include "cameramanipulator.h"
    00038
    00039 namespace lpzrobots {
    00040
    00041   /**
    00042      CameraManipulatorRace is a MatrixManipulator which provides Flying simulator-like
    00043      updating of the camera position & orientation.
    00044      Left mouse button: Pan and tilt
    00045      Right mouse button: forward and sideways
    00046      Middle mouse button: up and sideways
    00047   */
    00048
    00049   class CameraManipulatorRace : public CameraManipulator {
    00050
    00051   public:
    00052
    00053     CameraManipulatorRace(osg::Node* node,GlobalData& global);
    00054
    00055     /** returns the classname of the manipulator
    00056         it's NECCESSARY to define this funtion, otherwise
    00057         the new manipulator WON'T WORK! (but ask me not why)
    00058      */
    00059     virtual const char* className() const { return "Race-Camera"; }
    00060
    00061   protected:
    00062
    00063     virtual ~CameraManipulatorRace();
    00064
    00065     /** This handles robot movements, so that the camera movemenent is right affected.
    00066         should be overwritten by new cameramanipulator
    00067     */
    00068        virtual void calcMovementByAgent();
    00069
    00070   };
    00071 }
    00072
    00073 #endif