Demonstrates usage of class TEveStraightLineSet.
{
for (
Int_t i = 0; i<nlines; i++) {
ls->AddLine(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s),
r.Uniform(-
s,
s));
for (
Int_t m = 0;
m <
nm;
m++) ls->AddMarker(i,
r.Rndm());
}
ls->SetMarkerSize(1.5);
ls->SetMarkerStyle(4);
return ls;
}
{
for (
Int_t i = 0; i<nlines; i++) {
ls->AddLine(
r.Uniform(-
s,
s),
r.Uniform(-
s,
s), 0,
r.Uniform(-
s,
s),
r.Uniform(-
s,
s), 0);
for (
Int_t m = 0;
m <
nm;
m++) ls->AddMarker(i,
r.Rndm());
}
ls->SetMarkerSize(1.5);
ls->SetMarkerStyle(4);
return ls;
}
R__EXTERN TEveManager * gEve
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Set of straight lines with optional markers along the lines.
This is the base class for the ROOT Random number generators.
static constexpr double nm
static constexpr double s
def lineset(nlines=40, nmarkers=4)
- Author
- Matevz Tadel
Definition in file lineset.C.