00001 /* -*-c++-*- 00002 * 00003 * Copyright (C) 2006 Mathias Froehlich 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00018 * MA 02110-1301, USA. 00019 * 00020 */ 00021 00022 #ifndef SG_SCENE_STATEATTRIBUTEVISITOR_HXX 00023 #define SG_SCENE_STATEATTRIBUTEVISITOR_HXX 00024 00025 #include <osg/Geode> 00026 #include <osg/Node> 00027 #include <osg/NodeVisitor> 00028 #include <osg/StateSet> 00029 00030 class SGStateAttributeVisitor : public osg::NodeVisitor { 00031 public: 00032 SGStateAttributeVisitor(); 00033 virtual void apply(osg::StateSet::RefAttributePair&); 00034 virtual void apply(osg::StateSet::AttributeList& attrList); 00035 virtual void apply(osg::StateSet* stateSet); 00036 virtual void apply(osg::Node& node); 00037 virtual void apply(osg::Geode& node); 00038 }; 00039 00040 #endif