extendedViewer.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 * $Log: extendedViewer.h,v $ 00024 * Revision 1.2 2006/07/14 12:23:34 martius 00025 * selforg becomes HEAD 00026 * 00027 * Revision 1.1.2.2 2006/06/29 16:35:56 robot3 00028 * includes cleared up 00029 * 00030 * Revision 1.1.2.1 2006/03/06 16:51:04 robot3 00031 * written an own viewer because getCurrentCameraManipulator() was not implemented 00032 * 00033 * * 00034 ***************************************************************************/ 00035 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield 00036 * 00037 * This library is open source and may be redistributed and/or modified under 00038 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 00039 * (at your option) any later version. The full license is in LICENSE file 00040 * included with this distribution, and on the openscenegraph.org website. 00041 * 00042 * This library is distributed in the hope that it will be useful, 00043 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00044 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00045 * OpenSceneGraph Public License for more details. 00046 */ 00047 #ifndef EXTENDEDVIEWER_H 00048 #define EXTENDEDVIEWER_H 00049 00050 #include <osgProducer/Viewer> 00051 00052 namespace lpzrobots { 00053 00054 /** A Producer-based viewer. Just like OpenGL, the core of OSG is independent of 00055 * windowing system. The integration between OSG and some windowing system is 00056 * delegated to other, non-core parts of OSG (users are also allowed to 00057 * integrate OSG with any exotic windowing system they happen to use). 00058 * \c Viewer implements the integration between OSG and Producer, AKA Open 00059 * Producer (http://www.andesengineering.com/Producer), thus offering an 00060 * out-of-the-box, scalable and multi-platform abstraction of the windowing 00061 * system. 00062 */ 00063 class ExtendedViewer : public osgProducer::Viewer { 00064 public : 00065 00066 ExtendedViewer(); 00067 00068 ExtendedViewer(Producer::CameraConfig *cfg); 00069 00070 ExtendedViewer(const std::string& configFile); 00071 00072 ExtendedViewer(osg::ArgumentParser& arguments); 00073 00074 virtual ~ExtendedViewer(); 00075 00076 /** Get the current active camera manipulator.*/ 00077 virtual osgGA::MatrixManipulator* getCurrentCameraManipulator(); 00078 00079 }; 00080 00081 } 00082 00083 #endif

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