ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tutorials
eve
text.C File Reference
Tutorials
»
Event display tutorials
Detailed Description
Demonstrates usage of class
TEveText
- 2D & 3D text in GL.
TEveText
*
text
()
{
gSystem
->
IgnoreSignal
(
kSigSegmentationViolation
,
true
);
TEveManager::Create
();
TEvePointSet
* marker =
new
TEvePointSet
(8);
marker->
SetName
(
"Origin marker"
);
marker->
SetMarkerColor
(6);
marker->
SetMarkerStyle
(3);
Float_t
a = 10;
marker->
SetPoint
(0, a, +a, +a);
marker->
SetPoint
(1, a, -a, +a);
marker->
SetPoint
(2, -a, -a, +a);
marker->
SetPoint
(3, -a, +a, +a);
marker->
SetPoint
(4, +a, +a, -a);
marker->
SetPoint
(5, +a, -a, -a);
marker->
SetPoint
(6, -a, +a, -a);
marker->
SetPoint
(7, -a, -a, -a);
gEve
->
AddElement
(marker);
TEveText
* t =
new
TEveText
(
"DADA"
);
t->
PtrMainTrans
()->
RotateLF
(1, 3,
TMath::PiOver2
());
t->
SetMainColor
(kOrange-2);
t->
SetFontSize
(64);
t->
SetFontMode
(
TGLFont::kExtrude
);
t->
SetLighting
(
kTRUE
);
gEve
->
AddElement
(t);
// TEveText does not know its bounding box before first rendering.
gEve
->
FullRedraw3D
(
kTRUE
);
gEve
->
GetDefaultGLViewer
()->
ResetCurrentCamera
();
gEve
->
GetDefaultGLViewer
()->
RequestDraw
(
TGLRnrCtx::kLODHigh
);
return
t;
}
Author
Alja Mrak-Tadel
Definition in file
text.C
.