Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches

Detailed Description

This example display only points in web browser.

#include "TRandom.h"
namespace REX = ROOT::Experimental;
REX::REvePointSet *createPointSet(int npoints = 2, float s = 2, int color = 28)
{
REX::REvePointSet *ps = new REX::REvePointSet("MyTestPoints", "list of eve points", npoints);
for (Int_t i = 0; i < npoints; ++i)
ps->SetNextPoint(r.Uniform(-s, s), r.Uniform(-s, s), r.Uniform(-s, s));
ps->SetMarkerColor(color);
ps->SetMarkerSize(5 + r.Uniform(1, 15));
return ps;
}
void points()
{
auto eveMng = REX::REveManager::Create();
REX::REveElement *event = eveMng->GetEventScene();
auto psDot = createPointSet(100, 300);
psDot->SetMarkerStyle(1);
event->AddElement(psDot);
auto psSquare = createPointSet(100, 300);
psSquare->SetMarkerStyle(2);
event->AddElement(psSquare);
auto psStar = createPointSet(10, 300);
psStar->SetMarkerStyle(3);
event->AddElement(psStar);
eveMng->Show();
}
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:60
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
R__EXTERN TRandom * gRandom
Definition TRandom.h:73
void SetMarkerColor(Color_t col) override
Set the marker color.
void SetMarkerSize(Size_t msize=1) override
Set marker size, propagate to projecteds.
int SetNextPoint(float x, float y, float z)
void SetMarkerStyle(Style_t mstyle=1) override
Set marker style, propagate to projecteds.
This is the base class for the ROOT Random number generators.
Definition TRandom.h:28
Namespace for ROOT features in testing.
Definition TROOT.h:100
Author
Alja Mrak-Tadel

Definition in file points.C.