VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtEntityDIGuyStateVisualizer.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
11
12
#pragma once
13
#include <
vrvCore/DtCharacterModel.h
>
14
#include <
vrvCore/DtEntityStateVisualizer.h
>
15
#include <
vrvUtil/signalslib.h
>
16
17
namespace
makVrv
18
{
19
class
DtCharacterModelAgent;
20
23
class
DT_DLL_VRVCORE
DtEntityDIGuyStateVisualizer
:
24
public
DtEntityStateVisualizer
25
{
26
public
:
28
DtEntityDIGuyStateVisualizer
(
DtBaseConnection
& simulation,
29
DtStateListener
& listener,
int
modelSet);
30
32
virtual
~
DtEntityDIGuyStateVisualizer
();
33
34
virtual
void
setCharacterPosture(
DtCharacterModel::Posture
);
35
virtual
void
setCharacterAlive(
bool
);
36
virtual
void
setCharacterAppearance(
const
std::string& appearance );
37
virtual
void
setCharacterModel(
const
std::string& m );
38
virtual
void
setCharacterAction(
const
std::string& action,
bool
paused );
39
virtual
void
setCharacterWeaponAiming(
bool
aiming);
40
virtual
void
setCharacterPaused(
bool
paused);
41
43
virtual
void
setVisualizerDefinition(
const
DtVisualizerDefinition
& visDef);
44
45
virtual
void
setColorizedColor(
float
r,
float
g,
float
b,
float
alpha );
46
48
virtual
void
setDisableModelScaling(
bool
b );
49
51
virtual
const
DtStateVisualizer::TypeInfo
& typeInfo()
const
;
52
54
static
const
DtStateVisualizer::TypeInfo
& theTypeInfo();
55
56
protected
:
57
virtual
void
createModelAgents();
58
virtual
void
destroyModelAgents();
59
virtual
void
setModelDefinitionForAgents();
60
virtual
void
resetSpatial();
61
virtual
void
updateColorBlending();
62
63
protected
:
64
65
DtCharacterModelAgent*
myCharacterModelAgent
;
66
DtCharacterModel::Posture
myCharacterPosture
;
67
bool
myAlive
;
68
bool
myDeployed
;
69
bool
myAffectsBounds
;
70
bool
myColorized
;
71
float
myColorizedRed
;
72
float
myColorizedGreen
;
73
float
myColorizedBlue
;
74
float
myColorizedAlpha
;
75
76
std::string
myLastAction
;
77
bool
myLastPaused
;
78
bool
myDisableModelScaling
;
79
};
80
81
84
typedef
DtStateVisualizerCreatorTemplate<DtEntityDIGuyStateVisualizer>
85
DtEntityDIGuyStateVisualizerCreator
;
86
}
87
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
)