VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
37
virtual
~
DtRenameTextureToMeifVisitor
();
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
;
56
bool
myResolveToRelativePath
;
57
};
58
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)