| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /****************************************************************************** 00002 * VRS - The Virtual Rendering System 00003 * Copyright (C) 2002-2007 Computer Graphics Systems Group at the 00004 * Hasso-Plattner-Institute (HPI), University Potsdam, Germany. 00005 * 00006 * Author: stefan.maass@hpi.uni-potsdam.de 00007 * 00008 * This library is free software; you can redistribute it and/or modify it 00009 * under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation; either version 2.1 of the License, or (at 00011 * your option) any later version. This library is distributed in the hope 00012 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 00013 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. You should have received 00015 * a copy of the GNU Lesser+ General Public License along with this library; if 00016 * not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, 00017 * Boston, MA, 02111-1307, USA. 00018 ******************************************************************************/ 00019 #ifndef VRS_OPENGL_CLEARTEXTURECOORDINATES_H 00020 #define VRS_OPENGL_CLEARTEXTURECOORDINATES_H 00021 00022 #include <vrs/sharedobj.h> 00023 #include <vrs/scenenodevisitor.h> 00024 #include <vrs/container/dictionary.h> 00025 00026 namespace VRS { 00027 00028 class VRS_CORE_API FindTexturedMeshes 00029 : public VRS::SceneNodeVisitor 00030 { 00031 public: 00032 FindTexturedMeshes (SO<NonPersistentDictionary<SharedObj*, SharedObj* > >& texturedMeshes); 00038 private: 00039 virtual SceneNodeVisitor::TraversalFlag visitScene(SharedObj* obj, bool pushHint); 00040 00041 unsigned int m_activeTextures; 00042 00043 SO<NonPersistentDictionary<SharedObj*, SharedObj* > > m_texturedMeshes; 00044 }; 00045 00046 00047 class VRS_CORE_API ClearTextureCoordinates 00048 : public VRS::SceneNodeVisitor 00049 { 00050 public: 00051 ClearTextureCoordinates (SO<NonPersistentDictionary<SharedObj*, SharedObj* > >& texturedMeshes); 00056 private: 00057 virtual SceneNodeVisitor::TraversalFlag visitScene(SharedObj* obj, bool pushHint); 00058 00059 SO<NonPersistentDictionary<SharedObj*, SharedObj* > > m_texturedMeshes; 00060 }; 00061 00062 } // namespace VRS 00063 00064 #endif // VRS_OPENGL_CLEARTEXTURECOORDINATES_H