VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
diGuyAppearanceRecord.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2020 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
6
#pragma once
7
8
#include <
vl/genericVariableRecord.h
>
9
10
class
DT_DLL_VL
DtDiGuyAppearanceRecord
:
public
DtGenericVariableRecord
11
{
12
public
:
13
15
DtDiGuyAppearanceRecord
();
16
18
DtDiGuyAppearanceRecord
(
const
DtDiGuyAppearanceRecord
& orig);
19
21
DtDiGuyAppearanceRecord
(
void
* netBuffer,
unsigned
int
size);
22
24
virtual
DtDiGuyAppearanceRecord
&
operator=
(
const
DtDiGuyAppearanceRecord
& record);
25
27
virtual
DtStandardVariableRecord
&
operator=
(
const
DtStandardVariableRecord
& other);
28
30
virtual
bool
operator==
(
const
DtDiGuyAppearanceRecord
& record);
31
33
virtual
bool
operator==
(
const
DtStandardVariableRecord
& other);
34
36
virtual
const
DtString
& appearance()
const
;
37
virtual
void
setAppearance(
const
DtString
& appearanceValue);
38
40
virtual
const
DtString
& headAppearance()
const
;
41
virtual
void
setHeadAppearance(
const
DtString
& appearanceValue);
42
44
virtual
const
DtString
& itemAppearance()
const
;
45
virtual
void
setItemAppearance(
const
DtString
& appearanceValue);
46
48
virtual
double
bodyWeight()
const
;
49
virtual
void
setBodyWeight(
double
bw);
50
52
virtual
void
printDataToStream
(std::ostream& stream)
const
;
53
55
virtual
DtStandardVariableRecord
*
clone
()
const
;
56
57
// Writes the network representation to the given address.
58
// The assumption is that this memory is allocated and is of the proper size.
59
virtual
void
writeRecord
(
void
* addr)
const
;
60
63
virtual
void
setFromNet
(
const
void
* netRecord,
unsigned
int
length,
DtStandardVariableRetCode
* retCode = NULL);
64
66
virtual
unsigned
int
unpaddedNetsize
()
const
;
67
68
public
:
69
71
static
DtStandardVariableRecord
*
create
(
void
* addr,
unsigned
int
length);
72
74
static
unsigned
int
recordTypeToUse();
75
77
static
void
setRecordTypeToUse(
unsigned
int
typeToUse);
78
79
protected
:
80
81
// Update the data members from the data buffer
82
virtual
void
updateData();
83
84
// Commit the data members to the data buffer
85
virtual
void
commitData();
86
87
// Do the assignment work
88
virtual
DtDiGuyAppearanceRecord
& doCopy(
const
DtDiGuyAppearanceRecord
& record);
89
90
protected
:
91
92
double
myBodyWeight
;
93
DtString
myAppearance
;
94
DtString
myHeadAppearance
;
95
DtString
myItemAppearance
;
96
bool
myDataIsDirty
;
97
bool
myBufferIsDirty
;
98
99
protected
:
100
101
static
DtDatumParam
theDiGuyAppearanceId
;
102
103
};
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)