VR-Forces 4.1.1 Class Documentation
DtKeepOriginalFilenamesVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtKeepOriginalFilenamesVisitor.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvOsg/vrvOsg.h>
15 #include <osg/NodeVisitor>
16 
17 namespace makVrv
18 {
19  class DtFileCache;
20 
24  class DT_DLL_VRVOSG DtKeepOriginalFilenamesVisitor : public osg::NodeVisitor
25  {
26 
27  public:
28 
32  DtKeepOriginalFilenamesVisitor(const std::string& rootFilePath = "",
33  DtFileCache* aFileCache = 0,
34  bool addOriginalName = true);
35 
37 
39  virtual void apply(osg::ProxyNode& node);
40 
44  static bool getOriginalFilenameFromDescription(const std::string& strIn, std::string& strOut);
45 
46  protected:
47  std::string myRootFilePath;
50 
51  };
52 
57  class DT_DLL_VRVOSG DtRenameFileToMedfVisitor : public osg::NodeVisitor
58  {
59 
60  public:
61 
65  DtRenameFileToMedfVisitor( const std::string& relativePath,
66  bool resolveToRelativePath );
67 
69 
71  virtual void apply(osg::ProxyNode& node);
72 
74  std::string getNewFilename( const std::string& originalFileName );
75 
76  protected:
77  std::string myRelativePath;
79  };
80 
81 }
82 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)