VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTextureReplaceVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/NodeVisitor>
15 
16 #include <string>
17 #include <unordered_map>
18 
19 namespace osg
20 {
21  class Geode;
22  class Node;
23  class ProxyNode;
24  class StateSet;
25 };
26 
27 namespace makVrv
28 {
29  class DtDe;
30  class DtOsgFileCache;
31 
35  class DT_DLL_VRVOSG DtTextureReplaceVisitor : public osg::NodeVisitor
36  {
37  public:
40 
42  virtual ~DtTextureReplaceVisitor();
43  public:
48  virtual void apply(osg::Node& node);
49 
54  virtual void apply(osg::Geode& geode);
55 
58  virtual void setReplaceLocation(const std::string& replaceDir);
59 
61  virtual void setBaseLocation(const std::string& baseLocation);
62 
63  protected:
65  virtual void replaceTextureIfFoundReplacement(osg::StateSet& ss, osg::Node& node);
66  protected:
67  std::string myReplaceLocation;
68  std::string myBaseLocation;
69 
72  };
73 }
std::string myReplaceLocation
Definition: DtTextureReplaceVisitor.h:67
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::string myBaseLocation
Definition: DtTextureReplaceVisitor.h:68
For all textures in the model: A texture will be replaced if there exists another texture with the sa...
Definition: DtTextureReplaceVisitor.h:35
DtOsgFileCache & myOsgFileCache
Definition: DtTextureReplaceVisitor.h:70
The OSG implementation of makVrv::DtOsgFileCache. This will cache files as .ive&#39;s for quicker load ti...
Definition: DtOsgFileCache.h:56
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDe & myDe
Definition: DtTextureReplaceVisitor.h:71

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)