VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCore
DtGlobalIdToElementIdMapper.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtGlobalIdToElementIdMapper.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
11
13
14
#pragma once
15
16
#include <
vrfGuiCore/vrfGuiCore.h
>
17
18
#include <
vrvUtil/DtVirtualBaseClass.h
>
19
#include <
vrvCore/DtUniqueID.h
>
20
#include <
vrvCore/DtSimState.h
>
21
#include <
vrvCore/DtStateView.h
>
22
#include <
vrvCore/DtEntityState.h
>
23
24
#include <boost/unordered_map.hpp>
25
26
namespace
makVrv
27
{
28
class
DtDe;
29
class
DtBaseStateView;
30
class
DtSimEntry;
31
class
DtSimObjectEntry;
32
}
33
34
namespace
makVrf
35
{
37
class
DT_DLL_VRFGUICORE
DtGlobalIdToElementIdMapper
:
public
makVrv::DtVirtualBaseClass
38
{
39
protected
:
40
typedef
boost::unordered_map<makVrv::DtElementID, std::string>
ElementIdToGlobalIdMap
;
41
typedef
boost::unordered_map<std::string, makVrv::DtElementID>
GlobalIdToElementIdMap
;
42
43
public
:
44
DtGlobalIdToElementIdMapper
(
makVrv::DtDe
&);
45
virtual
~
DtGlobalIdToElementIdMapper
();
46
48
static
DtGlobalIdToElementIdMapper
& instance(
makVrv::DtDe
& de);
49
50
static
void
registerInstance(
makVrv::DtDe
& de,
DtGlobalIdToElementIdMapper
*);
51
52
public
:
53
54
makVrv::DtElementID
globalIdToElementId(
const
std::string&)
const
;
55
std::string elementIdToGlobalId(
makVrv::DtElementID
)
const
;
56
57
makVrv::DtElementID
entityIdToElementId(
const
std::string&)
const
;
58
std::string elementIdToEntityId(
makVrv::DtElementID
)
const
;
59
60
protected
:
61
virtual
void
slot_simStateAdded(
makVrv::DtSimObjectEntry
&);
62
virtual
void
slot_simStateAboutToBeRemoved(
makVrv::DtSimObjectEntry
&);
63
virtual
void
slot_stateViewUpdated(
makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>
* s);
64
65
virtual
void
eraseFrom(
ElementIdToGlobalIdMap
&,
GlobalIdToElementIdMap
&,
makVrv::DtElementID
);
66
67
protected
:
68
virtual
void
initialize();
69
70
protected
:
71
ElementIdToGlobalIdMap
myElementIdToGlobalIdMap
;
72
GlobalIdToElementIdMap
myGlobalIdToElementIdMap
;
73
74
ElementIdToGlobalIdMap
myElementIdToEntityIdMap
;
75
GlobalIdToElementIdMap
myEntityIdToElementIdMap
;
76
77
makVrv::DtDe
&
myDe
;
78
};
79
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)