VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgModelPreloader.h
Go to the documentation of this file.
1 /*****************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvCore/DtUniqueID.h>
15 #include <vrvOsg/vrvOsg.h>
16 
17 #include <osg/Node>
18 #include <boost/unordered_map.hpp>
19 #include <string>
20 
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtModelDefinition;
26 
31  {
32 
33  public:
34 
37 
39  virtual ~DtOsgModelPreloader();
40 
42  virtual bool load(const std::string& modelDefName);
43 
44  protected:
45 
46  typedef osg::ref_ptr<osg::Node> NodeRefPtr;
47  typedef boost::unordered_map<std::string, NodeRefPtr> ModelDefinitionFilenameMap;
48 
50  virtual osg::ref_ptr<osg::Node> loadNodeFile(DtModelDefinition& definition);
51 
52  protected:
53 
55  };
56 
57 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)