17 using namespace TMath;
23 lines->SetLineWidth(2);
27 auto cones =
new REveBoxSet(
"EllipticConeSet");
28 bool valIsColor =
true;
31 cones->SetPickable(
kTRUE);
40 rad =
r.Uniform(3, 5);
43 pos.
Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
45 cones->AddEllipticCone(pos, dir, rad, 0.5*rad,
r.Uniform(0,360));
47 cones->DigitColor(
kRed);
56 if (
r.Integer(2)>0) cones->SetDrawConeCap(
kTRUE);
61 cones->SetPickable(1);
62 cones->SetAlwaysSecSelect(1);
64 eveMng->GetEventScene()->AddElement(cones);
65 eveMng->GetEventScene()->AddElement(lines);
80 using namespace TMath;
84 lines->SetLineWidth(2);
89 cones->SetPalette(pal);
90 bool valIsColor =
false;
100 rad =
r.Uniform(3, 5);
103 pos.
Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
105 cones->AddCone(pos, dir, rad);
106 cones->DigitValue(
r.Uniform(0, 500));
113 cones->SetPickable(1);
114 cones->SetAlwaysSecSelect(1);
116 if (
r.Integer(2)>0) cones->SetDrawConeCap(
kTRUE);
122 eveMng->GetEventScene()->AddElement(cones);
123 eveMng->GetEventScene()->AddElement(lines);
124 eveMng->GetEventScene()->AddElement(pal);
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,...
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
REveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Eve representation of a GL view.
@ kBT_InstancedScaledRotated
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
REveStraightLineSet Set of straight lines with optional markers along the lines.
void Set(const Float_t *v)
This is the base class for the ROOT Random number generators.
ROOT::Experimental::REveManager * eveMng
REveVectorT< Float_t > REveVector
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.