16 using namespace TMath;
22 lines->SetLineWidth(2);
26 auto cones =
new REveBoxSet(
"EllipticConeSet");
27 bool valIsColor =
true;
30 cones->SetPickable(
kTRUE);
34 Float_t theta, phi, height, rad;
35 for (
Int_t i = 0; i < num; ++i) {
38 height =
r.Uniform(5, 15);
39 rad =
r.Uniform(3, 5);
42 pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
44 cones->AddEllipticCone(
pos, dir, rad, 0.5 * rad,
r.Uniform(0, 360));
46 cones->DigitColor(
kRed);
56 cones->SetDrawConeCap(
kTRUE);
61 cones->SetPickable(1);
62 cones->SetAlwaysSecSelect(1);
64 eveMng->GetEventScene()->AddElement(cones);
65 eveMng->GetEventScene()->AddElement(lines);
78 using namespace TMath;
82 lines->SetLineWidth(2);
87 cones->SetPalette(pal);
88 bool valIsColor =
false;
93 Float_t theta, phi, height, rad;
94 for (
Int_t i = 0; i < num; ++i) {
97 height =
r.Uniform(5, 15);
98 rad =
r.Uniform(3, 5);
101 pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
103 cones->AddCone(
pos, dir, rad);
104 cones->DigitValue(
r.Uniform(0, 500));
111 cones->SetPickable(1);
112 cones->SetAlwaysSecSelect(1);
114 if (
r.Integer(2) > 0)
115 cones->SetDrawConeCap(
kTRUE);
121 eveMng->GetEventScene()->AddElement(cones);
122 eveMng->GetEventScene()->AddElement(lines);
123 eveMng->GetEventScene()->AddElement(pal);
int Int_t
Signed integer 4 bytes (int).
float Float_t
Float 4 bytes (float).
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
Namespace for ROOT features in testing.
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.