22const char *
blurbs[] = {
"Love",
"Peace",
"ROOT",
"Code",
"Courage",
"Quiche"};
26const char *
fonts[] = {
"comic",
"comicbd",
"verdana",
"BlackChancery",
"georgia",
"georgiai"};
31const char *
blurbs2[] = {
"Čüšék! Šèžëçàgïlá",
"Αβρασαξ",
"πφηθωμβτ"};
34const char *
fonts2[] = {
"LiberationMono-Regular",
"LiberationSerif-Regular"};
40 const double lim = 300;
44 for (
int i = 0; i <
N_Texts; i++) {
45 std::string
word, font;
60 int mode =
r.Integer(2);
63 auto &t =
text->RefMainTrans();
64 t.SetRotByAngles(
r.Uniform(-pi, pi),
r.Uniform(-pi, pi),
r.Uniform(-pi, pi));
66 text->SetFontSize(
r.Uniform(0.01 *
lim, 0.2 *
lim));
70 text->SetFontSize(
r.Uniform(0.001, 0.05));
73 TColor::GetColor((
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5)));
77 TColor::GetColor((
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2)));
78 text->SetLineAlpha(192);
80 TColor::GetColor((
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0)));
81 text->SetFillAlpha(128);
82 text->SetDrawFrame(
true);
93 for (
int i = 0; i <
N_Jets; i++) {
96 jet->AddEllipticCone(
r.Uniform(-0.5, 0.5),
r.Uniform(0,
TMath::TwoPi()), 0.1, 0.2);
106 auto eveMng = REX::REveManager::Create();
122 for (
int i = 0; i <
n_fonts; ++i) {
125 for (
int i = 0; i <
n_fonts2; ++i) {
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 mode
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.
R__EXTERN TSystem * gSystem
Base class for REveUtil visualization elements, providing hierarchy management, rendering control and...
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
Eve representation of a GL view.
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveElement * FirstChild() const
Returns the first child element or 0 if the list is empty.
REveScene * GetEventScene() const
void AllowMultipleRemoteConnections(bool loopBack=true, bool useAuthKey=true)
Utility function to allow remote RWebWindow connections.
REveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
REveViewerList * GetViewers() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
void SetIsOverlay(bool x)
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
This is the base class for the ROOT Random number generators.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
ROOT::Experimental::REveManager * eveMng
void makeJets(int N_Jets, REX::REveElement *jetHolder)
constexpr Double_t TwoPi()