VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtEncryptReferencedTexturesVisitor.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtEncryptReferencedTexturesVisitor.h,v $ $Revision: 1.6 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvOsg/vrvOsg.h>
00015 #include <osgUtil/Optimizer>
00016 #include <boost/unordered_map.hpp>
00017 #include <osg/ref_ptr>
00018 
00019 namespace makVrv
00020 {
00021    class DtOsgFileCache;
00022 
00026    class DT_DLL_VRVOSG DtRenameTextureToMeifVisitor : public osg::NodeVisitor
00027    {
00028 
00029    public:
00030 
00032       //If the graphics context is null, the image filenames are simple changed.
00033       DtRenameTextureToMeifVisitor(const std::string& relativePath,
00034          bool resolveToRelativePath );
00035 
00037       virtual ~DtRenameTextureToMeifVisitor();
00038 
00039 
00041       virtual void apply(osg::Node& node);
00042 
00044       virtual void apply(osg::Geode& geode);
00045 
00047       void applyToStateSet(osg::StateSet& stateset);
00048 
00050       void applyToTexture(osg::Texture &texture);
00051 
00052    protected:
00053 
00054       std::string getNewFilename(const std::string& originalFileName);
00055       std::string myRelativePath;
00056       bool myResolveToRelativePath;
00057    };
00058 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)