Demonstrates usage of 'cone' mode in TEveBoxSet class.
{
lines->SetLineWidth(2);
bool valIsColor = true;
cones->SetPickable(
kTRUE);
for (
Int_t i = 0; i < num; ++i) {
height =
r.Uniform(5, 15);
dir *= height;
pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
cones->AddEllipticCone(
pos, dir, rad, 0.5 * rad,
r.Uniform(0, 360));
if (i % 2 == 0)
else
}
cones->SetDrawConeCap(
kTRUE);
cones->RefitPlex();
cones->SetPickable(1);
cones->SetAlwaysSecSelect(1);
eveMng->GetEventScene()->AddElement(cones);
eveMng->GetEventScene()->AddElement(lines);
return cones;
}
{
lines->SetLineWidth(2);
cones->SetPalette(pal);
bool valIsColor = false;
for (
Int_t i = 0; i < num; ++i) {
height =
r.Uniform(5, 15);
dir *= height;
pos.Set(
r.Uniform(-
a,
a),
r.Uniform(-
a,
a),
r.Uniform(-
a,
a));
cones->AddCone(
pos, dir, rad);
cones->DigitValue(
r.Uniform(0, 500));
}
cones->SetPickable(1);
cones->SetAlwaysSecSelect(1);
cones->SetDrawConeCap(
kTRUE);
cones->RefitPlex();
eveMng->GetEventScene()->AddElement(cones);
eveMng->GetEventScene()->AddElement(lines);
eveMng->GetEventScene()->AddElement(pal);
return cones;
}
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.