14 using namespace TMath;
18 lines->SetLineWidth(2);
29 for (
Int_t i = 0; i < num; ++i) {
33 rad =
r.Uniform(3, 5);
36 pos.
Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
38 cones->AddCone(pos, dir, rad);
39 cones->DigitValue(
r.Uniform(0, 500));
42 end = pos + dir * 1.3f;
66 using namespace TMath;
72 lines->SetLineWidth(2);
84 for (
Int_t i = 0; i < num; ++i) {
88 rad =
r.Uniform(3, 5);
91 pos.
Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
93 cones->AddEllipticCone(pos, dir, rad, 0.5 * rad,
r.Uniform(0, 360));
94 cones->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255));
97 end = pos + dir * 1.3f;
102 if (
r.Integer(2) > 0)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TEveManager * gEve
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds,...
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
Set of straight lines with optional markers along the lines.
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
void SetPos(Double_t x, Double_t y, Double_t z)
Set position (base-vec 4).
void Set(const Float_t *v)
This is the base class for the ROOT Random number generators.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.