15 using namespace TMath;
19 lines->SetLineWidth(2);
24 cones->SetPalette(pal);
29 Float_t theta, phi, height, rad;
30 for (
Int_t i=0; i<num; ++i)
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);
69 using namespace TMath;
75 lines->SetLineWidth(2);
82 cones->SetPickable(
kTRUE);
86 Float_t theta, phi, height, rad;
87 for (
Int_t i=0; i<num; ++i)
97 cones->AddEllipticCone(pos, dir, rad, 0.5*rad,
r.
Uniform(0,360));
103 lines->AddLine(pos.fX, pos.fY, pos.fZ, end.
fX, end.
fY, end.
fZ);
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)
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
This is the base class for the ROOT Random number generators.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
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).
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
you should not use this method at all Int_t Int_t z
Set of straight lines with optional markers along the lines.