VR-Forces Development_Version 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
DtInstanceUtils.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/DtInstanceState.h
>
13
#include <
vrvOsg/DtArticulatedModelParser.h
>
14
15
#include <
vrvUtil/DtVirtualBaseClass.h
>
16
17
#include <vector>
18
#include <map>
19
20
namespace
makVrv
21
{
22
class
DtDe;
23
class
DtModelDefinition;
24
class
DtOsgModelInstance;
25
class
DtArticulatedModelParser;
26
30
class
DT_DLL_VRVOSG
DtInstanceUtils
31
{
32
public
:
33
typedef
std::map<std::string, unsigned int>
InstancedAnimationMap
;
34
typedef
std::vector<ArrayRange>
ArrayRangeList
;
35
typedef
std::map<std::string, ArrayRangeList>
InstancedAnnotationMap
;
36
38
typedef
std::vector<unsigned int>
InstancedPartVec
;
39
44
typedef
std::map<unsigned int, InstancedPartVec>
PartToInstancedPartMap
;
45
46
class
PartMapCache
:
public
DtVirtualBaseClass
47
{
48
public
:
49
virtual
~
PartMapCache
();
50
PartToInstancedPartMap
myPartMap
;
51
};
52
57
class
AnimationMapCache
:
public
DtVirtualBaseClass
58
{
59
public
:
60
virtual
~
AnimationMapCache
();
61
InstancedAnimationMap
myAnimationMap
;
62
};
63
68
class
BoundingBoxCache
:
public
DtVirtualBaseClass
69
{
70
public
:
71
virtual
~
BoundingBoxCache
();
72
DtVector
boundMin
;
73
DtVector
boundMax
;
74
};
75
78
class
AnnotationCache
:
public
DtVirtualBaseClass
79
{
80
public
:
81
virtual
~
AnnotationCache
();
82
InstancedAnnotationMap
myAnnotationMap
;
83
};
84
86
static
void
registerIfNecessary(
DtModelDefinition
& modelDef,
DtDe
& de,
DtOsgModelInstance
& mi,
87
/* output parameters: */
88
DtVector
& boundMinOut,
89
DtVector
& boundMaxOut,
90
AnnotationCache
*& annotationCacheOut,
91
BoundingBoxCache
*& boundingBoxCacheOut,
92
AnimationMapCache
*& animationMapCacheOut,
93
PartMapCache
& partMapCacheOut,
94
PartMapCache
& stateMapCacheOut
95
);
96
};
97
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)