10#include <ROOT/REveElement.hxx>
11#include <ROOT/REveScene.hxx>
12#include <ROOT/REveManager.hxx>
13#include <ROOT/REveStraightLineSet.hxx>
24 auto ls =
new REX::REveStraightLineSet();
26 for (
Int_t i = 0; i<nlines; i++) {
27 ls->AddLine(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
28 r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
31 for (
Int_t m = 0;
m <
nm;
m++) ls->AddMarker(i,
r.Rndm());
34 ls->SetMarkerSize(0.5);
35 ls->SetMarkerStyle(1);
43 auto eveMng = REX::REveManager::Create();
47 ls1->SetName(
"LineSet_1");
50 ls2->SetMainColor(
kBlue);
51 ls2->SetName(
"LineSet_2");
R__EXTERN TEveManager * gEve
virtual void AddElement(TEveElement *el)
Add el to the list of children.
TEveScene * GetEventScene() const
This is the base class for the ROOT Random number generators.
REX::REveManager * eveMng
REX::REveStraightLineSet * makeLineSet(Int_t nlines=40, Int_t nmarkers=4)
static constexpr double nm
static constexpr double s