VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCore
DtImageSymbolVisualizer.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/DtStateVisualizer.h
>
13
#include <
vrvUtil/DtUnicode.h
>
14
#include <
vrvCore/DtVisualizerAttribute.h
>
15
16
namespace
makVrv
17
{
18
19
class
DtWidgetAgent;
20
class
DtWidgetInstanceSignaler;
21
class
DtProjectedWidgetModelAgent;
22
27
class
DT_DLL_VRVCORE
DtImageSymbolVisualizer
:
public
DtStateVisualizer
28
{
29
public
:
30
32
DtImageSymbolVisualizer
(
DtBaseConnection
& connection,
33
DtStateListener
& listener,
int
modelSet );
34
36
virtual
~
DtImageSymbolVisualizer
();
37
39
virtual
void
setVisualizerDefinition(
const
DtVisualizerDefinition
& visDef );
40
42
virtual
void
setModelDefinitionForAgents();
43
45
virtual
void
setSelected(
bool
selected );
46
48
void
setScale(
float
scale );
49
51
virtual
void
setImageSymbol(
int
);
52
54
virtual
int
imageSymbol()
const
;
55
57
virtual
void
setPickable(
bool
b );
58
60
virtual
void
setImageSymbolMap(
const
DtVisualAttributeSymbolSelector::ImageSymbolMap
&);
61
63
const
DtVisualAttributeSymbolSelector::ImageSymbolMap
& imageSymbolMap()
const
;
64
66
virtual
void
setImageSize(
int
x,
int
y);
67
69
void
getImageSize(
int
& x,
int
& y);
70
73
virtual
void
setDestroyed(
bool
);
74
76
bool
destroyed
()
const
{
return
myDestroyed; };
77
79
virtual
void
setDestroyedModel(
const
std::string&);
80
82
const
std::string&
destroyedModel
()
const
{
return
myDestroyedModel; };
83
84
protected
:
85
87
virtual
void
setHasMouse(
bool
hasMouse );
88
90
virtual
void
createModelAgents();
91
93
virtual
void
destroyModelAgents();
94
96
virtual
void
update();
97
99
virtual
DtUnicode
imageSymbolDefinition(
int
)
const
;
100
101
protected
:
102
103
DtProjectedWidgetModelAgent*
myProjectIconPosition
;
104
DtWidgetAgent*
myIcon
;
105
DtWidgetInstanceSignaler
*
myIconSignaler
;
106
DtWidgetAgent*
mySelectedIcon
;
107
bool
myHasMouse
;
108
float
myScale
;
109
110
int
myImageSymbol
;
111
DtVisualAttributeSymbolSelector::ImageSymbolMap
myImageSymbolMap
;
112
113
unsigned
int
myIconGroup
;
114
unsigned
int
myDestroyedIconGroup
;
115
116
int
mySizeX
;
117
int
mySizeY
;
118
119
DtWidgetAgent*
myDestroyedIcon
;
120
bool
myDestroyed
;
121
std::string
myDestroyedModel
;
122
123
};
124
125
}
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
)