VR-Forces 4.6.1 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
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 Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)