VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtIndicatorVisualizer.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtIndicatorVisualizer.h,v $ $Revision: 1.43 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/DtStateVisualizer.h
>
16
#include <
vrvUtil/signalslib.h
>
17
#include <
vrvUtil/DtUnicode.h
>
18
19
namespace
makVrv
20
{
21
class
DtEntityInfoWidget;
22
28
class
DT_DLL_VRVCORE
DtIndicatorVisualizer
:
public
DtStateVisualizer
29
{
30
public
:
32
DtIndicatorVisualizer
(
DtBaseConnection
& simulation,
DtStateListener
& listener,
int
modelSet);
33
35
virtual
~
DtIndicatorVisualizer
();
36
38
void
setIndicatorVisible(
bool
visible);
39
41
bool
indicatorVisible()
const
;
42
43
virtual
void
setWidgetEventsEnabled(
bool
enabled);
44
virtual
void
setIndicatorPinned(
bool
);
45
46
bool
infoPinned()
const
;
47
virtual
void
setSelected(
bool
selected);
48
49
virtual
void
setShowInfoPopupOnSelect(
bool
enabled);
50
virtual
bool
showInfoPopupOnSelect()
const
;
51
52
virtual
void
setInfoPinned(
bool
pinned);
53
55
virtual
void
createIndicator() = 0;
56
58
virtual
void
destroyIndicator() = 0;
59
60
DtEntityInfoWidget
* infoWidget()
const
;
61
63
virtual
void
setInfoVisible(
bool
);
64
66
virtual
void
setInfoText(
const
DtUnicode
& text);
67
69
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
70
72
boost::signal<void (bool)>
signal_infoVisibleChanged
;
73
74
protected
:
76
virtual
void
postUpdate();
77
78
virtual
void
updateIndicator();
79
80
virtual
void
createModelAgents();
81
84
virtual
void
destroyModelAgents();
85
86
virtual
void
setModelDefinitionForAgents();
87
88
virtual
void
setUniqueID(
DtUniqueID
id
);
89
virtual
void
setVisualizerDefinition(
const
DtVisualizerDefinition
& visDef);
90
91
virtual
void
slot_mouseInChanged(
bool
isMouseInIndicator);
92
93
virtual
void
setUpdateInfo(
bool
b);
94
95
protected
:
97
virtual
const
DtUnicode
& infoString()
const
;
98
100
virtual
DtUnicode
generateInfoString()
const
;
101
102
protected
:
103
DtEntityInfoWidget
*
myInfoWidget
;
104
bool
myIndicatorVisible
;
105
bool
myWidgetEventsEnabled
;
106
bool
myIndicatorPinned
;
107
bool
myShowInfoOnSelect
;
108
bool
myInfoPinned
;
109
bool
myInfoVisible
;
110
DtUnicode
myInfoString
;
111
bool
myUpdateInfo
;
112
double
myR
, myG, myB, myA;
113
};
114
}
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
)