VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
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
12
#include <
vrvCore/DtModelPreloader.h
>
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
30
class
DT_DLL_VRVOSG
DtOsgModelPreloader
:
public
DtModelPreloader
31
{
32
33
public
:
34
36
DtOsgModelPreloader
(
DtDe
& de,
DtUniqueID
id
);
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
54
ModelDefinitionFilenameMap
myModelDefinitionFilenameMap
;
55
};
56
57
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)