VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgAttributeGroupWidget.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (c) 2013 MAK Technologies, Inc.
3
* All rights reserved.
4
**************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvCore/DtAttributeGroupWidget.h
>
14
#include <
vrvOsg/DtAttributeLayout.h
>
15
16
namespace
makVrv
17
{
18
19
class
DtAttributeLayout;
20
class
DtTextAttribute;
21
24
class
DT_DLL_VRVOSG
DtOsgAttributeGroupWidget
25
:
public
DtAttributeGroupWidget
26
{
27
public
:
28
29
DtOsgAttributeGroupWidget
(
DtDe
& de,
DtUniqueID
id
);
30
31
virtual
~
DtOsgAttributeGroupWidget
();
32
34
virtual
void
setBackgroundEnabled(
bool
enabled);
35
37
virtual
void
setOutlineEnabled(
bool
enabled);
38
40
virtual
void
setTypeText(
unsigned
int
index,
41
const
DtUnicode
& attributeName);
42
44
virtual
void
setTypeValueText(
unsigned
int
index,
45
const
DtUnicode
& attributeName);
46
48
virtual
void
setTypeNumeric(
unsigned
int
index,
49
const
DtUnicode
& attributeName);
50
52
virtual
void
setTypeValueBar(
unsigned
int
index,
53
const
DtUnicode
& attributeName);
54
56
virtual
void
setTypeGraph(
57
unsigned
int
index,
const
DtUnicode
& attributeName,
int
maxValues);
58
60
virtual
void
setTypeImage(
61
unsigned
int
index,
const
DtUnicode
& attributeName);
62
64
virtual
void
setTypeNull(
unsigned
int
index);
65
67
virtual
void
setValueImage(
68
unsigned
int
index,
const
std::string& imageFilepath);
69
71
virtual
void
setValueGraphPoint(
72
unsigned
int
index,
unsigned
int
n,
float
x,
float
y);
73
75
virtual
void
setValueBarValue(
unsigned
int
index,
float
val);
76
78
virtual
void
setValueNumeric(
unsigned
int
index,
float
val);
79
81
virtual
void
setValueTextValue(
unsigned
int
index,
const
DtUnicode
& val);
82
84
virtual
void
setAttributeVisible(
unsigned
int
index,
bool
visible);
85
86
// DtWidget interface
88
virtual
void
setOverlay(
unsigned
int
overlay );
89
91
virtual
unsigned
int
overlay()
const
;
92
94
virtual
void
setOrderGroup(
unsigned
int
group );
95
97
virtual
unsigned
int
orderGroup()
const
;
98
100
virtual
void
setBackgroundOrderGroup(
unsigned
int
groupId );
101
103
virtual
void
setPosition(
float
x,
float
y,
float
z,
float
w = 0 );
104
106
virtual
void
setBackgroundImage(
const
std::string& filename );
107
109
virtual
void
setBackgroundColor(
float
r,
float
g,
float
b,
float
a = 1.0f );
110
112
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
113
116
virtual
void
setOrigin(
float
originX,
float
originY);
117
119
virtual
void
setSize(
float
w,
float
h);
120
122
virtual
void
setPadding(
float
paddingX,
float
paddingY);
123
126
virtual
void
setModelDefinition(
const
std::string& str);
127
129
virtual
void
setEventsEnabled(
bool
enabled);
130
132
virtual
void
expandLayoutBy(
unsigned
int
rows,
unsigned
int
cols);
133
135
virtual
void
setVisible(
bool
visible);
136
139
virtual
void
setHorizontalCenter(
bool
center);
140
143
virtual
void
setVerticalCenter(
bool
center);
144
146
virtual
void
setFontSize(
float
fontSize);
147
149
virtual
void
setFontFile(
const
std::string& fontFile);
150
152
virtual
void
setShadowText(
bool
enabled );
153
155
virtual
void
setRotation(
float
);
156
157
protected
:
158
159
DtAttributeLayout
myLayout
;
160
161
osg::Vec4
myBackgroundColor
;
162
163
float
myR
;
164
float
myG
;
165
float
myB
;
166
float
myA
;
167
168
std::string
myFontFile
;
169
float
myFontSize
;
170
171
unsigned
int
myOverlay
;
172
173
virtual
DtTextAttribute
* buildTextAttribute(
const
DtUnicode
& text);
174
175
};
176
177
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)