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
vrfmsgs
ifModifyVrfOverlay.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfExtProtocol/simInterfaceContent.h
>
12
#include <vlutil/vlString.h>
13
#include <
vrfExtProtocol/objectType.h
>
14
#include <vlpi/entityIdentifier.h>
15
#include <
vrfutil/rwUUID.h
>
16
19
20
#define DtModifyOverlayAll 0x00000000
21
#define DtModifyOverlayColor 0x00000001
22
#define DtModifyOverlayParent 0x00000002
23
#define DtModifyOverlayUserData 0x00000004
24
#define DtModifyOverlayAttachedTo 0x00000008
25
46
#include "
vrfmsgs/vrfmsgsDefines.h
"
47
class
DT_DLL_vrfmsgs
DtIfModifyVrfOverlay
:
public
DtSimInterfaceContent
48
{
49
public
:
50
52
DtIfModifyVrfOverlay
();
53
55
virtual
~
DtIfModifyVrfOverlay
();
56
58
DtIfModifyVrfOverlay
(
const
DtIfModifyVrfOverlay
& orig);
59
61
DtIfModifyVrfOverlay
&
operator=
(
const
DtIfModifyVrfOverlay
& orig);
62
64
virtual
DtSimInterfaceContent
*
clone
()
const
;
65
68
virtual
int
type
()
const
;
69
72
virtual
void
setObjectToModify(
const
DtUUID
&);
73
75
virtual
const
DtUUID
& objectToModify()
const
;
76
77
virtual
int
netRepSize
()
const
;
78
virtual
bool
setFromNet
(
const
char
* contentBuffer,
79
unsigned
contentSize);
80
virtual
bool
setToNet
();
81
82
virtual
void
setUserData(
char
* userData,
int
iLen);
83
virtual
const
char
* userData()
const
;
84
virtual
int
userDataLen()
const
;
85
86
virtual
char
modificationFlags()
const
;
87
88
bool
modifyColor()
const
;
89
bool
modifyOverlay()
const
;
90
bool
modifyUserData()
const
;
91
bool
modifyAttachedTo()
const
;
92
93
virtual
void
printDataToString
(
DtString
& str);
94
95
static
DtSimInterfaceContent
* creator();
96
97
public
:
102
105
virtual
void
setOverlay(
const
DtString
& overlay);
106
108
virtual
const
DtString
& overlay()
const
;
109
111
virtual
void
setAttachmentInfo(
const
DtUUID
& attachment,
bool
keepExisting);
112
114
virtual
const
DtUUID
& attachment()
const
;
115
virtual
bool
keepExistingAttachment()
const
;
116
118
virtual
void
setColor(
int
color);
119
virtual
int
color()
const
;
120
121
protected
:
122
123
DtUUID
myObjectToModify
;
124
125
DtString
myOverlay
;
126
DtUUID
myAttachment
;
127
128
bool
myKeepExistingAttachment
;
129
int
myColor
;
130
131
char
*
myUserData
;
132
int
myUserDataLen
;
133
134
int
myModificationFlags
;
135
};
136
137
inline
char
DtIfModifyVrfOverlay::modificationFlags
()
const
138
{
139
return
myModificationFlags
;
140
}
141
142
inline
bool
DtIfModifyVrfOverlay::modifyColor
()
const
143
{
144
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
145
((
myModificationFlags
&
DtModifyOverlayColor
) != 0));
146
}
147
148
inline
bool
DtIfModifyVrfOverlay::modifyOverlay
()
const
149
{
150
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
151
((
myModificationFlags
&
DtModifyOverlayParent
) != 0));
152
}
153
154
inline
bool
DtIfModifyVrfOverlay::modifyUserData
()
const
155
{
156
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
157
((
myModificationFlags
&
DtModifyOverlayUserData
) != 0));
158
}
159
160
inline
bool
DtIfModifyVrfOverlay::modifyAttachedTo
()
const
161
{
162
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
163
((
myModificationFlags
&
DtModifyOverlayAttachedTo
) != 0));
164
}
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
)