21const char *
blurbs[] = {
"Love",
"Peace",
"ROOT",
"Code",
"Courage",
"Quiche"};
25const char *
fonts[] = {
"comic",
"comicbd",
"verdana",
"BlackChancery",
"georgia",
"georgiai"};
30const char *
blurbs2[] = {
"Čüšék! Šèžëçàgïlá",
"Αβρασαξ",
"πφηθωμβτ"};
33const char *
fonts2[] = {
"LiberationMono-Regular",
"LiberationSerif-Regular"};
39 const double lim = 300;
43 for (
int i = 0; i < N_Texts; i++) {
44 std::string word, font;
53 auto name_text =
Form(
"%s_%d", word.data(), i);
55 text->SetText(name_text);
59 int mode =
r.Integer(2);
62 auto &t =
text->RefMainTrans();
63 t.SetRotByAngles(
r.Uniform(-pi, pi),
r.Uniform(-pi, pi),
r.Uniform(-pi, pi));
64 t.SetPos(
r.Uniform(-lim, lim),
r.Uniform(-lim, lim),
r.Uniform(-lim, lim));
65 text->SetFontSize(
r.Uniform(0.01 * lim, 0.2 * lim));
69 text->SetFontSize(
r.Uniform(0.001, 0.05));
72 TColor::GetColor((
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5)));
76 TColor::GetColor((
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2)));
77 text->SetLineAlpha(192);
79 TColor::GetColor((
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0)));
80 text->SetFillAlpha(128);
81 text->SetDrawFrame(
true);
92 for (
int i = 0; i < N_Jets; i++) {
95 jet->AddEllipticCone(
r.Uniform(-0.5, 0.5),
r.Uniform(0,
TMath::TwoPi()), 0.1, 0.2);
96 jet->SetFillColor(
kRed);
97 jet->SetLineColor(
kRed);
105 auto eveMng = REX::REveManager::Create();
121 for (
int i = 0; i <
n_fonts; ++i) {
122 REX::REveText::AssertSdfFont(
fonts[i], rf_dir +
fonts[i] +
".ttf");
124 for (
int i = 0; i <
n_fonts2; ++i) {
125 REX::REveText::AssertSdfFont(
fonts2[i], rf_dir +
fonts2[i] +
".ttf");
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
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)
REveViewer Reve representation of TGLViewer.
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
constexpr Double_t TwoPi()
void makeJets(int N_Jets, REveElement *jetHolder)
void makeTexts(int N_Texts, REX::REveElement *textHolder)