15 auto eveMng = REveManager::Create();
17 using namespace TMath;
19 REveManager::Create();
23 lines->SetLineWidth(2);
27 auto cones =
new REveBoxSet(
"EllipticConeSet");
28 bool valIsColor =
true;
29 cones->Reset(REveBoxSet::kBT_InstancedScaledRotated, valIsColor, 64);
31 cones->SetPickable(
kTRUE);
36 for (
Int_t i=0; i<num; ++i) {
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);
68 v->SetAxesType(REveViewer::kAxesOrigin);
78 auto eveMng = REveManager::Create();
80 using namespace TMath;
84 lines->SetLineWidth(2);
89 cones->SetPalette(pal);
90 bool valIsColor =
false;
91 cones->Reset(REveBoxSet::kBT_InstancedScaledRotated, valIsColor, 64);
96 for (
Int_t i=0; i<num; ++i) {
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);
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.
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
REveScene * GetEventScene() const
REveViewerList * GetViewers() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
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
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.