VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEncryptReferencedTexturesVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtEncryptReferencedTexturesVisitor.h,v $ $Revision: 1.6 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvOsg/vrvOsg.h>
15 #include <osgUtil/Optimizer>
16 #include <boost/unordered_map.hpp>
17 #include <osg/ref_ptr>
18 
19 namespace makVrv
20 {
21  class DtOsgFileCache;
22 
26  class DT_DLL_VRVOSG DtRenameTextureToMeifVisitor : public osg::NodeVisitor
27  {
28 
29  public:
30 
32  //If the graphics context is null, the image filenames are simple changed.
33  DtRenameTextureToMeifVisitor(const std::string& relativePath,
34  bool resolveToRelativePath );
35 
38 
39 
41  virtual void apply(osg::Node& node);
42 
44  virtual void apply(osg::Geode& geode);
45 
47  void applyToStateSet(osg::StateSet& stateset);
48 
50  void applyToTexture(osg::Texture &texture);
51 
52  protected:
53 
54  std::string getNewFilename(const std::string& originalFileName);
55  std::string myRelativePath;
57  };
58 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)