VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
Dt3DTextStateVisualizer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtRemoteGraphicVisualizerAttributes.h
>
14
#include <
vrvCore/DtSceneObjectVisualizer.h
>
15
#include <vrvCore/Dt3DTextModelAgent.hpp>
16
#include <
vrvCore/DtVisibilityAdapter.h
>
17
18
class
DtVector
;
19
20
namespace
makVrv
21
{
22
class
DtAttachableUpdaterAgent;
23
26
class
DT_DLL_VRVCORE
Dt3DTextStateVisualizer
:
27
public
DtSceneObjectVisualizer
,
28
public
DtRemoteGraphicVisualizerAttributes
29
{
30
public
:
32
Dt3DTextStateVisualizer
(
DtBaseConnection
& simulation,
33
DtStateListener
& listener,
int
modelSet);
34
36
virtual
~
Dt3DTextStateVisualizer
();
37
40
virtual
void
setLocation(
const
DtVector
& loc);
41
43
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
44
46
virtual
void
setFlashing(
bool
flashing);
47
49
virtual
void
setText(
const
std::string& str);
50
56
virtual
void
setAttached(
DtUniqueID
id
,
int
vtx,
double
percentage);
57
59
virtual
void
setHostId(
const
std::string&
id
,
int
vtx,
double
percentage);
60
62
virtual
const
DtStateVisualizer::TypeInfo
& typeInfo()
const
;
63
65
static
const
DtStateVisualizer::TypeInfo
& theTypeInfo();
66
67
protected
:
71
virtual
void
setVisible(
bool
yesNo);
72
74
virtual
void
createModelAgents();
75
83
virtual
void
destroyModelAgents();
84
86
virtual
void
setModelDefinitionForAgents();
87
88
protected
:
89
Dt3DTextModelAgent*
myTextModelAgent
;
90
DtAttachableUpdaterAgent*
myAttachableUpdater
;
91
DtVisibilityAdapter<Dt3DTextModelAgent>
*
myVisibilityAdapter
;
92
};
93
96
typedef
DtStateVisualizerCreatorTemplate<Dt3DTextStateVisualizer>
97
Dt3DTextStateVisualizerCreator
;
98
}
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
)