osghandle.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 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, write to the * 00019 * Free Software Foundation, Inc., * 00020 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00021 * * 00022 * $Log: osghandle.h,v $ 00023 * Revision 1.3 2006/12/11 18:26:55 martius 00024 * destructor, but without any function 00025 * 00026 * Revision 1.2 2006/07/14 12:23:56 martius 00027 * selforg becomes HEAD 00028 * 00029 * Revision 1.1.2.8 2006/06/29 16:39:56 robot3 00030 * -you can now see bounding shapes if you type ./start -drawboundings 00031 * -includes cleared up 00032 * -abstractobstacle and abstractground have now .cpp-files 00033 * 00034 * Revision 1.1.2.7 2006/06/15 09:17:09 martius 00035 * restores changeAlpha 00036 * 00037 * Revision 1.1.2.6 2006/06/12 13:37:55 robot3 00038 * added missing const OsgHandle->changeAlpha(const float& alpha); 00039 * 00040 * Revision 1.1.2.5 2006/01/12 14:39:06 martius 00041 * transparent stateset 00042 * 00043 * Revision 1.1.2.4 2005/12/29 16:48:06 martius 00044 * changeColor 00045 * 00046 * Revision 1.1.2.3 2005/12/22 14:09:56 martius 00047 * different tesselhints for different level of detail 00048 * 00049 * Revision 1.1.2.2 2005/12/13 18:12:20 martius 00050 * some utils 00051 * 00052 * Revision 1.1.2.1 2005/12/06 16:18:02 martius 00053 * handle class for OpenSceneGraph 00054 * 00055 * 00056 ***************************************************************************/ 00057 #ifndef __OSGHANDLE_H 00058 #define __OSGHANDLE_H 00059 00060 #include "osgforwarddecl.h" 00061 #include "color.h" 00062 00063 namespace lpzrobots { 00064 00065 /** Data structure for accessing the ODE */ 00066 class OsgHandle 00067 { 00068 public: 00069 OsgHandle(); 00070 OsgHandle( osg::Group* scene, osg::TessellationHints* tesselhints[3], 00071 osg::StateSet* normalState, osg::StateSet* transparentState, 00072 const Color& color); 00073 00074 ~OsgHandle(); 00075 00076 osg::Group* scene; 00077 osg::TessellationHints* tesselhints[3]; 00078 osg::StateSet* normalState; 00079 osg::StateSet* transparentState; 00080 Color color; 00081 00082 // returns a new osghandle with only the color changed 00083 OsgHandle changeColor(const Color& color) const; 00084 // returns a new osghandle with only the alpha channel changed 00085 OsgHandle changeAlpha(double alpha) const; 00086 00087 }; 00088 00089 } 00090 00091 #endif 00092

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