VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 #include <osgUtil/Optimizer>
13 #include <boost/unordered_map.hpp>
14 #include <osg/ref_ptr>
15 
16 namespace makVrv
17 {
18  class DtOsgFileCache;
19 
23  class DT_DLL_VRVOSG DtRenameTextureToMeifVisitor : public osg::NodeVisitor
24  {
25 
26  public:
27 
29  //If the graphics context is null, the image filenames are simple changed.
30  DtRenameTextureToMeifVisitor(const std::string& relativePath,
31  bool resolveToRelativePath );
32 
35 
36 
38  virtual void apply(osg::Node& node);
39 
41  virtual void apply(osg::Geode& geode);
42 
44  void applyToStateSet(osg::StateSet& stateset);
45 
47  void applyToTexture(osg::Texture &texture);
48 
49  protected:
50 
51  std::string getNewFilename(const std::string& originalFileName);
52  std::string myRelativePath;
54  };
55 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This class will go through a node structure and renames the texture to use a meif.
Definition: DtEncryptReferencedTexturesVisitor.h:23
std::string myRelativePath
Definition: DtEncryptReferencedTexturesVisitor.h:52
Contains DLL export macros.
bool myResolveToRelativePath
Definition: DtEncryptReferencedTexturesVisitor.h:53

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)