15 using namespace TMath;
19 lines->SetLineWidth(2);
24 cones->SetPalette(pal);
30 for (
Int_t i=0; i<num; ++i)
34 height =
r.Uniform(5, 15);
35 rad =
r.Uniform(3, 5);
38 pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
40 cones->AddCone(pos, dir,
rad);
41 cones->DigitValue(
r.Uniform(0, 500));
45 lines->AddLine(pos.fX, pos.fY, pos.fZ, end.
fX, end.
fY, end.
fZ);
49 if (
r.Integer(2)>0) cones->SetDrawConeCap(
kTRUE);
69 using namespace TMath;
75 lines->SetLineWidth(2);
82 cones->SetPickable(
kTRUE);
87 for (
Int_t i=0; i<num; ++i)
91 height =
r.Uniform(5, 15);
92 rad =
r.Uniform(3, 5);
95 pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
97 cones->AddEllipticCone(pos, dir,
rad, 0.5*
rad,
r.Uniform(0,360));
98 cones->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
99 r.Uniform(20, 255),
r.Uniform(20, 255));
103 lines->AddLine(pos.fX, pos.fY, pos.fZ, end.
fX, end.
fY, end.
fZ);
107 if (
r.Integer(2)>0) cones->SetDrawConeCap(
kTRUE);
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds...
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
static constexpr double rad
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
This is the base class for the ROOT Random number generators.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
R__EXTERN TEveManager * gEve
void SetPos(Double_t x, Double_t y, Double_t z)
Set position (base-vec 4).
you should not use this method at all Int_t Int_t z
Set of straight lines with optional markers along the lines.