54static const char *kOvlFont =
"LiberationSerif-Regular";
70 t->SetFontWeight(0.05f);
74 t->SetTextColor(text_color);
78 t->SetDrawFrame(
true);
79 t->SetFillColor(fill_color);
81 t->SetLineColor(frame_color);
83 t->SetLineWidth(0.06);
84 t->SetExtraBorder(0.25);
91 t->SetResizable(resizable);
93 holder->AddElement(t);
101 b->SetShape(
new TGeoTube(kR_min, kR_max, kZ_d));
103 b->SetMainTransparency(60);
105 eveMng->GetGlobalScene()->AddElement(
b);
109 for (
int i = 0; i < 4; ++i) {
111 jet->SetCylinder(2 * kR_max, 2 * kZ_d);
112 jet->AddEllipticCone(
r.Uniform(-2.5, 2.5),
r.Uniform(0,
TMath::TwoPi()),
r.Uniform(0.05, 0.2),
113 r.Uniform(0.05, 0.25));
114 jet->SetFillColor(
kPink - 8);
115 jet->SetLineColor(
kBlack);
116 jets->AddElement(jet);
118 eveMng->GetEventScene()->AddElement(jets);
125 auto eveMng = REveManager::Create();
131 eveMng->AllowMultipleRemoteConnections(
false,
false);
137 REveText::AssertSdfFont(kOvlFont, rf + kOvlFont +
".ttf");
139 makeSceneContent(eveMng);
143 REveScene *os = eveMng->SpawnNewScene(
"Overlay scene",
"Draggable annotations");
144 ((
REveViewer *)(eveMng->GetViewers()->FirstChild()))->AddScene(os);
145 os->SetIsOverlay(
true);
153 auto logo =
new REveLogo(
"Root6Icon.png",
"Logo");
154 logo->SetPosition(0.88, 0.86);
156 logo->SetOpacity(0.75);
157 os->AddElement(logo);
169 makeAnnotation(holder,
"Title",
"Run 123456 / Event 42", 0.03, 0.95, 0.035, kInk, kQuiet, kIce,
false);
170 makeAnnotation(holder,
"DragMe",
"drag me anywhere", 0.03, 0.85, 0.030, kInk, kLive, kIce);
171 makeAnnotation(holder,
"ResizeMe",
"hover me, then grab the corner", 0.03, 0.76, 0.030, kInk, kLive, kIce);
175 makeAnnotation(holder,
"Legend",
"legend\n cyan barrel\n pink jet cones", 0.03, 0.67, 0.030, kInk, kLive, kIce);
177 makeAnnotation(holder,
"InFront",
"always in front of the geometry", 0.34, 0.28, 0.026, kInk, kQuiet, kIce,
false);
179 os->AddElement(holder);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
short Color_t
Color number (short)
double Double_t
Double 8 bytes.
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 text
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
A screen-space image for an overlay scene, such as an experiment logo or a watermark.
Central application manager for web-based REve.
Eve representation of TGLScene.
Eve representation of a GL view.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
static const TString & GetIconPath()
Get the icon path in the installation. Static utility function.
static const TString & GetDataDir()
Get the data directory in the installation. Static utility function.
This is the base class for the ROOT Random number generators.
Namespace for ROOT features in testing.
constexpr Double_t TwoPi()