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
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/vrvOsg.h
>
13
#include <
vrvOsg/DtInstanceState.h
>
14
#include <
vrvOsg/DtArticulatedModelParser.h
>
15
16
#include <
vrvUtil/DtVirtualBaseClass.h
>
17
18
#include <vector>
19
#include <map>
20
21
namespace
makVrv
22
{
23
class
DtDe;
24
class
DtModelDefinition;
25
class
DtOsgModelInstance;
26
class
DtArticulatedModelParser;
27
31
class
DT_DLL_VRVOSG
DtInstanceUtils
32
{
33
public
:
34
typedef
std::map<std::string, unsigned int>
InstancedAnimationMap
;
35
typedef
std::vector<ArrayRange>
ArrayRangeList
;
36
typedef
std::map<std::string, ArrayRangeList>
InstancedAnnotationMap
;
37
39
typedef
std::vector<unsigned int>
InstancedPartVec
;
40
45
typedef
std::map<unsigned int, InstancedPartVec>
PartToInstancedPartMap
;
46
47
class
PartMapCache
:
public
DtVirtualBaseClass
48
{
49
public
:
50
virtual
~
PartMapCache
();
51
PartToInstancedPartMap
myPartMap
;
52
};
53
58
class
AnimationMapCache
:
public
DtVirtualBaseClass
59
{
60
public
:
61
virtual
~
AnimationMapCache
();
62
InstancedAnimationMap
myAnimationMap
;
63
};
64
69
class
BoundingBoxCache
:
public
DtVirtualBaseClass
70
{
71
public
:
72
virtual
~
BoundingBoxCache
();
73
DtVector
boundMin
;
74
DtVector
boundMax
;
75
};
76
79
class
AnnotationCache
:
public
DtVirtualBaseClass
80
{
81
public
:
82
virtual
~
AnnotationCache
();
83
InstancedAnnotationMap
myAnnotationMap
;
84
};
85
87
static
void
registerIfNecessary(
DtModelDefinition
& modelDef,
DtDe
& de,
DtOsgModelInstance
& mi,
88
/* output parameters: */
89
DtVector
& boundMinOut,
90
DtVector
& boundMaxOut,
91
AnnotationCache
*& annotationCacheOut,
92
BoundingBoxCache
*& boundingBoxCacheOut,
93
AnimationMapCache
*& animationMapCacheOut,
94
PartMapCache
& partMapCacheOut,
95
PartMapCache
& stateMapCacheOut
96
);
97
};
98
}
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
)