VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)