rendertotexturecallback.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 * * 00023 * DESCRIPTION * 00024 * * 00025 * $Log: rendertotexturecallback.h,v $ 00026 * Revision 1.2 2006/07/14 12:23:36 martius 00027 * selforg becomes HEAD 00028 * 00029 * Revision 1.1.2.2 2006/01/17 09:11:19 martius 00030 * commented since not compileable with OSG 1.0 00031 * 00032 * Revision 1.1.2.1 2006/01/12 14:22:37 martius 00033 * deep shadow implementation 00034 * 00035 * Revision 1.1.2.1 2005/12/06 17:38:21 martius 00036 * *** empty log message *** 00037 * 00038 * * 00039 ***************************************************************************/ 00040 #ifndef __RENDERTOTEXTURECALLBACK_H 00041 #define __RENDERTOTEXTURECALLBACK_H 00042 00043 /* #include <osg/ref_ptr> */ 00044 /* #include "osgforwarddecl.h" */ 00045 /* //#include <osg/Node> */ 00046 /* #include <osg/NodeCallback> */ 00047 /* #include <osgUtil/CullVisitor> */ 00048 /* #include <osg/Texture2D> */ 00049 /* //#include <osg/StateSet> */ 00050 /* #include <osg/Viewport> */ 00051 /* //#include <osg/LightSource> */ 00052 /* #include <osg/TexGen> */ 00053 00054 /* namespace lpzrobots { */ 00055 00056 /* class RenderToTextureCallback: public osg::NodeCallback { */ 00057 /* public: */ 00058 /* RenderToTextureCallback(osg::Node* subgraph, */ 00059 /* osg::Texture2D* texture, */ 00060 /* osg::LightSource* light_source, */ 00061 /* osg::TexGen* tex_gen); */ 00062 00063 /* virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) */ 00064 /* { */ 00065 00066 /* osgUtil::CullVisitor* cullVisitor = dynamic_cast<osgUtil::CullVisitor*>(nv); */ 00067 /* if (cullVisitor && _texture.valid() && _subgraph.valid()) */ 00068 /* { */ 00069 /* _request_render_to_depth_texture(*node, *cullVisitor); */ 00070 /* } */ 00071 00072 /* // must traverse the subgraph */ 00073 /* traverse(node,nv); */ 00074 /* } */ 00075 00076 /* void _request_render_to_depth_texture(osg::Node& node, osgUtil::CullVisitor& cv); */ 00077 00078 00079 /* osg::ref_ptr<osg::Node> _subgraph; */ 00080 /* osg::ref_ptr<osg::Texture2D> _texture; */ 00081 /* osg::ref_ptr<osg::StateSet> _local_stateset; */ 00082 /* osg::ref_ptr<osg::Viewport> _viewport; */ 00083 /* osg::ref_ptr<osg::RefMatrix> _light_projection; */ 00084 /* osg::ref_ptr<osg::LightSource> _light_source; */ 00085 /* osg::ref_ptr<osg::TexGen> _tex_gen; */ 00086 /* }; */ 00087 00088 /* } */ 00089 00090 #endif

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