Loading [MathJax]/extensions/tex2jax.js
ROOT
6.14/05
Reference Guide
ROOT Home
Main Page
Tutorials
Functional Parts
+
Namespaces
Namespace List
+
Namespace 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
j
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
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
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
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
j
k
l
m
n
o
p
r
s
u
v
w
+
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
arrow.C File Reference
Tutorials
»
Event display tutorials
Detailed Description
Demonstrates usage of
TEveArrow
class.
void
arrow
()
{
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);
TEveArrow
* a1 =
new
TEveArrow
(1., 1., 10., 10., 4., 0.);
a1->
SetMainColor
(kBlue);
a1->
SetTubeR
(0.02);
a1->
SetPickable
(
kTRUE
);
gEve
->
AddElement
(a1);
TEveText
*
t1
=
new
TEveText
(
"blue"
);
t1->
SetFontSize
(20);
TEveVector
tv = a1->
GetVector
()*0.5f+a1->
GetOrigin
();
t1->
RefMainTrans
().
SetPos
(tv.
Arr
());
a1->
AddElement
(t1);
TEveArrow
* a2 =
new
TEveArrow
(20., 1., 10., 3., 0., 4.);
a2->
SetMainColor
(
kGreen
);
a2->
SetPickable
(
kTRUE
);
gEve
->
AddElement
(a2);
TEveArrow
* a3 =
new
TEveArrow
(1., 10., 10., 0., 20., 0.);
a3->
SetMainColor
(kOrange);
a3->
SetPickable
(
kTRUE
);
gEve
->
AddElement
(a3);
gEve
->
FullRedraw3D
(
kTRUE
);
}
Author
Alja Mrak-Tadel
Definition in file
arrow.C
.