VR-Forces 4.3.1 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
DtMetaObjectFactory.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2014 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <rapidjson/document.h>
13
#include <
vrvOsg/vrvOsg.h
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
#include <
vrvCore/DtUniqueID.h
>
16
#include <boost/unordered_map.hpp>
17
#include <osg/Node>
18
19
namespace
makVrv
20
{
21
class
DtMetaObjectCreator;
22
26
class
DT_DLL_VRVOSG
DtMetaObjectFactory
:
public
DtVirtualBaseClass
27
{
28
public
:
29
typedef
boost::unordered_map<std::string, DtMetaObjectCreator*>
30
DtMetaObjectCreators
;
31
33
static
DtMetaObjectFactory
& instance(
DtDe
& de);
34
36
virtual
~
DtMetaObjectFactory
();
37
39
virtual
void
addCreator(
const
std::string& creatorName,
DtMetaObjectCreator
* creator );
40
42
virtual
DtVirtualBaseClass
* createMetaObject(
43
const
std::string& metaFeatureName, osg::Node* node,
44
const
rapidjson::Value& jsonObject,
const
std::string& modelDefName,
45
const
DtElementID
elementId,
const
DtUniqueID
sceneObjectId,
46
const
DtUniqueID
uniqueId,
const
bool
useInstancing,
47
const
unsigned
int
nodeTypeIndex)
const
;
48
50
const
DtMetaObjectCreators
& creators()
const
;
51
52
protected
:
55
DtMetaObjectFactory
(
DtDe
& de);
56
57
protected
:
58
59
DtMetaObjectCreators
myDtMetaObjectCreators
;
60
61
DtDe
&
myDe
;
62
};
63
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)