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++)
45 std::string word, font;
54 auto name_text =
Form(
"%s_%d", word.data(), i);
56 text->SetText(name_text);
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));
65 t.SetPos(
r.Uniform(-lim, lim),
r.Uniform(-lim, lim),
r.Uniform(-lim, lim));
66 text->SetFontSize(
r.Uniform(0.01*lim, 0.2*lim));
69 text->SetFontSize(
r.Uniform(0.001, 0.05));
71 text->SetTextColor(
TColor::GetColor((
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5), (
float)
r.Uniform(0, 0.5)));
74 text->SetLineColor(
TColor::GetColor((
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2), (
float)
r.Uniform(0, 0.2)));
75 text->SetLineAlpha(192);
76 text->SetFillColor(
TColor::GetColor((
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0), (
float)
r.Uniform(0.7, 1.0)));
77 text->SetFillAlpha(128);
78 text->SetDrawFrame(
true);
89 for (
int i = 0; i < N_Jets; i++)
93 jet->AddEllipticCone(
r.Uniform(-0.5, 0.5),
r.Uniform(0,
TMath::TwoPi()),
95 jet->SetFillColor(
kRed);
96 jet->SetLineColor(
kRed);
104 auto eveMng = REX::REveManager::Create();
120 for (
int i = 0; i <
n_fonts; ++i) {
121 REX::REveText::AssertSdfFont(
fonts[i], rf_dir +
fonts[i] +
".ttf");
123 for (
int i = 0; i <
n_fonts2; ++i) {
124 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)