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.1.2.5 2006/01/12 14:39:06 martius 00024 * transparent stateset 00025 * 00026 * Revision 1.1.2.4 2005/12/29 16:48:06 martius 00027 * changeColor 00028 * 00029 * Revision 1.1.2.3 2005/12/22 14:09:56 martius 00030 * different tesselhints for different level of detail 00031 * 00032 * Revision 1.1.2.2 2005/12/13 18:12:20 martius 00033 * some utils 00034 * 00035 * Revision 1.1.2.1 2005/12/06 16:18:02 martius 00036 * handle class for OpenSceneGraph 00037 * 00038 * 00039 ***************************************************************************/ 00040 #ifndef __OSGHANDLE_H 00041 #define __OSGHANDLE_H 00042 00043 #include "osgforwarddecl.h" 00044 #include "color.h" 00045 00046 namespace lpzrobots { 00047 00048 /** Data structure for accessing the ODE */ 00049 class OsgHandle 00050 { 00051 public: 00052 OsgHandle( ); 00053 OsgHandle( osg::Group* scene, osg::TessellationHints* tesselhints[3], 00054 osg::StateSet* normalState, osg::StateSet* transparentState, 00055 const Color& color); 00056 00057 osg::Group* scene; 00058 osg::TessellationHints* tesselhints[3]; 00059 osg::StateSet* normalState; 00060 osg::StateSet* transparentState; 00061 Color color; 00062 00063 OsgHandle changeColor(const Color& color) const; 00064 00065 }; 00066 00067 } 00068 00069 #endif 00070