Demonstrates usage of class REveStraightLineSet.
The elements in the set can be individually picked when enable secondary select. The REveStraightLineSet is a projectable class. It can be visible in RhoZ and RhoPhi projected views.
{
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),
ls->AddMarker(i,
r.Rndm());
}
ls->SetMarkerSize(5);
ls->SetMarkerStyle(1);
ls->SetAlwaysSecSelect(sc);
return ls;
}
void lineset(bool secondarySelect = true)
{
auto eveMng = REX::REveManager::Create();
auto ls1 = makeLineSet(50, 10, secondarySelect);
ls1->SetLineWidth(2);
ls1->SetMarkerSize(8);
ls1->SetName("LineSet Violet");
auto ls2 = makeLineSet(10, 10, secondarySelect);
ls2->SetLineWidth(2);
ls2->SetMarkerSize(8);
ls2->SetMainColor(
kBlue);
ls2->SetMarkerColor(
kCyan + 2);
ls2->SetName("LineSet Blue");
ls2->InitMainTrans();
ls2->RefMainTrans().Move3LF(40, 200, 200);
eveMng->Show();
}
int Int_t
Signed integer 4 bytes (int)
float Float_t
Float 4 bytes (float)
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
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveScene * GetEventScene() const
REveStraightLineSet Set of straight lines with optional markers along the lines.
This is the base class for the ROOT Random number generators.
Namespace for ROOT features in testing.
R__EXTERN REveManager * gEve
- Author
- Alja Mrak-Tadel
Definition in file lineset.C.