g4tools  5.4.0
strings
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_sg_strings
5 #define tools_sg_strings
6 
7 #include <string>
8 
9 namespace tools {
10 namespace sg {
11 
15 inline const std::string& tick_modeling_none() {
16  static const std::string s_v("none");
17  return s_v;
18 }
19 inline const std::string& tick_modeling_hippo() {
20  static const std::string s_v("hippo");
21  return s_v;
22 }
23 inline const std::string& tick_modeling_hplot() {
24  static const std::string s_v("hplot");
25  return s_v;
26 }
27 
31 inline const std::string& infos_modeling_ROOT() {
32  static const std::string s_v("ROOT");
33  return s_v;
34 }
38 inline const std::string& encoding_none() {
39  static const std::string s_v("none");
40  return s_v;
41 }
42 inline const std::string& encoding_PAW() {
43  static const std::string s_v("PAW");
44  return s_v;
45 }
46 
50 
51 inline const std::string& s_font_outline() {static const std::string s_v("font_outline");return s_v;}
52 inline const std::string& s_font_filled() {static const std::string s_v("font_filled");return s_v;}
53 inline const std::string& s_font_pixmap() {static const std::string s_v("font_pixmap");return s_v;}
54 
55 inline const std::string& s_anim_mode_0() {static const std::string s_v("anim_mode_0");return s_v;}
56 inline const std::string& s_anim_mode_1() {static const std::string s_v("anim_mode_1");return s_v;}
57 inline const std::string& s_anim_mode_2() {static const std::string s_v("anim_mode_2");return s_v;}
58 inline const std::string& s_anim_mode_3() {static const std::string s_v("anim_mode_3");return s_v;}
59 inline const std::string& s_anim_mode_4() {static const std::string s_v("anim_mode_4");return s_v;}
60 
64 inline const std::string& modeling_boxes() {
65  static const std::string s_v("boxes");
66  return s_v;
67 }
68 
69 inline const std::string& modeling_wire_boxes() {
70  static const std::string s_v("wire_boxes");
71  return s_v;
72 }
73 inline const std::string& modeling_lines() {
74  static const std::string s_v("lines");
75  return s_v;
76 }
77 inline const std::string& modeling_segments() {
78  static const std::string s_v("segments");
79  return s_v;
80 }
81 inline const std::string& modeling_points() {
82  static const std::string s_v("points");
83  return s_v;
84 }
85 inline const std::string& modeling_top_lines() {
86  static const std::string s_v("top_lines");
87  return s_v;
88 }
89 inline const std::string& modeling_top_lines_boxes() {
90  static const std::string s_v("top_lines_boxes");
91  return s_v;
92 }
93 inline const std::string& modeling_texts() {
94  static const std::string s_v("texts");
95  return s_v;
96 }
97 inline const std::string& modeling_curve() {
98  static const std::string s_v("curve");
99  return s_v;
100 }
101 inline const std::string& modeling_filled_curve() {
102  static const std::string s_v("filled_curve");
103  return s_v;
104 }
105 inline const std::string& modeling_bar_chart() {
106  static const std::string s_v("bar_chart");
107  return s_v;
108 }
109 inline const std::string& modeling_solid() {
110  static const std::string s_v("solid");
111  return s_v;
112 }
113 inline const std::string& modeling_wire_frame() {
114  static const std::string s_v("wire_frame");
115  return s_v;
116 }
117 inline const std::string& modeling_reduced_wire_frame() {
118  static const std::string s_v("reduced_wire_frame");
119  return s_v;
120 }
121 inline const std::string& modeling_polygon() {
122  static const std::string s_v("polygon");
123  return s_v;
124 }
125 inline const std::string& modeling_none() {
126  static const std::string s_v("none");
127  return s_v;
128 }
129 inline const std::string& modeling_I() {
130  static const std::string s_v("I");
131  return s_v;
132 }
133 inline const std::string& modeling_plus() {
134  static const std::string s_v("plus");
135  return s_v;
136 }
137 inline const std::string& modeling_markers() { //used in sg::plotter.
138  static const std::string s_v("markers");
139  return s_v;
140 }
141 
145 
146 inline const std::string& modeling_arrow() {
147  static const std::string s_v("arrow");
148  return s_v;
149 }
150 inline const std::string& modeling_cube() {
151  static const std::string s_v("cube");
152  return s_v;
153 }
154 inline const std::string& modeling_cone() { //used in EsbRootView.
155  static const std::string s_v("cone");
156  return s_v;
157 }
158 inline const std::string& modeling_cone_detector() { //used in EsbRootView.
159  static const std::string s_v("cone_detector");
160  return s_v;
161 }
162 inline const std::string& modeling_detector() { //used in EsbRootView.
163  static const std::string s_v("detector");
164  return s_v;
165 }
166 inline const std::string& modeling_firework() { //used in EsbRootView.
167  static const std::string s_v("firework");
168  return s_v;
169 }
170 
174 inline const std::string& light_model_base_color() {
175  static const std::string s_v("base_color");
176  return s_v;
177 }
178 inline const std::string& light_model_phong() {
179  static const std::string s_v("phong");
180  return s_v;
181 }
182 
186 inline const std::string& font_hershey() {static const std::string s_v("hershey");return s_v;}
187 
188 #define TOOLS_FONT_TTF(a__name) \
189 inline const std::string& font_##a__name##_ttf() {\
190  static const std::string s_v(std::string(#a__name)+".ttf");\
191  return s_v;\
192 }
193 
194 TOOLS_FONT_TTF(arial)
195 TOOLS_FONT_TTF(arialbd)
196 TOOLS_FONT_TTF(timesbd)
197 TOOLS_FONT_TTF(symbol)
198 TOOLS_FONT_TTF(helvetica)
199 TOOLS_FONT_TTF(helveticabd)
200 TOOLS_FONT_TTF(times_roman)
201 TOOLS_FONT_TTF(cour)
202 TOOLS_FONT_TTF(courbd)
203 TOOLS_FONT_TTF(couri)
204 TOOLS_FONT_TTF(courbi)
205 TOOLS_FONT_TTF(lucidagrandebd)
206 
207 TOOLS_FONT_TTF(roboto_bold) //free replacement of arialbd
208 TOOLS_FONT_TTF(lato_regular) //free replacement of helvetica
209 TOOLS_FONT_TTF(lato_bold) //free replacement of helveticabd
210 
211 #undef TOOLS_FONT_TTF
212 
213 inline const std::string& font_stixgeneral_otf() {static const std::string s_v("stixgeneral.otf");return s_v;}
214 inline const std::string& font_STIX2Text_Regular_otf() {static const std::string s_v("STIX2Text-Regular.otf");return s_v;}
215 
219 // From TAttText.cxx :
220 //*-* 1 : times-medium-i-normal "Times New Roman" 1 4
221 //*-* 2 : times-bold-r-normal "Times New Roman" 0 7
222 //*-* 3 : times-bold-i-normal "Times New Roman" 1 7
223 //*-* 4 : helvetica-medium-r-normal "Arial" 0 4
224 //*-* 5 : helvetica-medium-o-normal "Arial" 1 4
225 //*-* 6 : helvetica-bold-r-normal "Arial" 0 7
226 //*-* 7 : helvetica-bold-o-normal "Arial" 1 7
227 //*-* 8 : courier-medium-r-normal "Courier New" 0 4
228 //*-* 9 : courier-medium-o-normal "Courier New" 1 4
229 //*-* 10 : courier-bold-r-normal "Courier New" 0 7
230 //*-* 11 : courier-bold-o-normal "Courier New" 1 7
231 //*-* 12 : symbol-medium-r-normal "Symbol" 0 6
232 //*-* 13 : times-medium-r-normal "Times New Roman" 0 4
233 //*-* 14 : "Wingdings" 0 4
234 
235 inline const std::string& font_ROOT_12() {static const std::string s_v("timesi.ttf");return s_v;}
236 inline const std::string& font_ROOT_22() {static const std::string s_v("timesbd.ttf");return s_v;}
237 inline const std::string& font_ROOT_32() {static const std::string s_v("timesbi.ttf");return s_v;}
238 inline const std::string& font_ROOT_42() {static const std::string s_v("arial.ttf");return s_v;}
239 inline const std::string& font_ROOT_52() {static const std::string s_v("ariali.ttf");return s_v;}
240 inline const std::string& font_ROOT_62() {static const std::string s_v("arialbd.ttf");return s_v;}
241 inline const std::string& font_ROOT_72() {static const std::string s_v("arialbi.ttf");return s_v;}
242 inline const std::string& font_ROOT_82() {static const std::string s_v("cour.ttf");return s_v;}
243 inline const std::string& font_ROOT_92() {static const std::string s_v("couri.ttf");return s_v;}
244 inline const std::string& font_ROOT_102() {static const std::string s_v("courbd.fff");return s_v;}
245 inline const std::string& font_ROOT_112() {static const std::string s_v("courbi.fff");return s_v;}
246 inline const std::string& font_ROOT_122() {static const std::string s_v("symbol.fff");return s_v;}
247 inline const std::string& font_ROOT_132() {static const std::string s_v("times.ttf");return s_v;}
248 inline const std::string& font_ROOT_142() {static const std::string s_v("wingding.fff");return s_v;}
249 
250 }}
251 
255 
256 #include "../S_STRING"
257 
258 namespace tools {
259 namespace sg {
260 TOOLS_GLOBAL_STRING(node_end) //for write_bsg, sg::rbsg
261 //TOOLS_GLOBAL_STRING(clear_scene)
262 //TOOLS_GLOBAL_STRING(no_hide_menu)
263 //TOOLS_GLOBAL_STRING(back_color)
264 //TOOLS_GLOBAL_STRING(adapt_camera)
265 //TOOLS_GLOBAL_STRING(adapt_camera_sg_was_empty)
266 TOOLS_GLOBAL_STRING(delete)
267 TOOLS_GLOBAL_STRING(movable)
268 
272 
273 //TOOLS_GLOBAL_STRING(whole)
276 
277 TOOLS_GLOBAL_STRING_VALUE(white_jpg,white.jpg)
278 
279 // for <scenario> EsbRootView.scenarios
280 TOOLS_GLOBAL_STRING(rotation)
281 TOOLS_GLOBAL_STRING(translation)
282 
283 //slides :
284 TOOLS_GLOBAL_STRING(pos_x_wcam)
285 TOOLS_GLOBAL_STRING(pos_y_hcam)
286 TOOLS_GLOBAL_STRING(scale)
287 TOOLS_GLOBAL_STRING(rad_per_sec)
288 //TOOLS_GLOBAL_STRING(kind)
290 TOOLS_GLOBAL_STRING(time_interval)
291 TOOLS_GLOBAL_STRING(pos_col)
292 TOOLS_GLOBAL_STRING(pos_row)
293 TOOLS_GLOBAL_STRING(repeat)
294 TOOLS_GLOBAL_STRING(class)
295 TOOLS_GLOBAL_STRING(camera_height)
296 
298 
299 TOOLS_GLOBAL_STRING(placement)
300 // send sg options :
301 TOOLS_GLOBAL_STRING_VALUE(send_placement,placement)
302 TOOLS_GLOBAL_STRING_VALUE(placement_static,static)
303 TOOLS_GLOBAL_STRING_VALUE(placement_dynamic,dynamic)
304 TOOLS_GLOBAL_STRING_VALUE(placement_static_blend,static_blend)
305 TOOLS_GLOBAL_STRING_VALUE(placement_screen,screen)
306 TOOLS_GLOBAL_STRING_VALUE(send_radius,radius)
307 TOOLS_GLOBAL_STRING_VALUE(send_scale,scale)
308 TOOLS_GLOBAL_STRING_VALUE(send_clear,clear)
309 //TOOLS_GLOBAL_STRING_VALUE(send_height,height)
310 
311 TOOLS_GLOBAL_STRING_VALUE(protocol_start,start)
312 TOOLS_GLOBAL_STRING_VALUE(protocol_disconnect,disconnect)
313 TOOLS_GLOBAL_STRING_VALUE(protocol_zdoc,zdoc)
314 TOOLS_GLOBAL_STRING_VALUE(protocol_get_wall_params,get_wall_params)
315 
316 TOOLS_GLOBAL_STRING_VALUE(protocol_arg_sep,;)
317 
318 TOOLS_GLOBAL_STRING_VALUE(protocol_rwc,rwc)
319 TOOLS_GLOBAL_STRING_VALUE(protocol_set_params,rwc_set_params)
320 TOOLS_GLOBAL_STRING_VALUE(protocol_set_camera,rwc_set_camera)
321 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_static_sg,rwc_clear_static_scene)
322 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_dynamic_sg,rwc_clear_dynamic_scene)
323 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_screen_sg,rwc_clear_screen_scene)
324 
325 TOOLS_GLOBAL_STRING(protocol_view_all)
326 TOOLS_GLOBAL_STRING(protocol_set_background_black)
327 TOOLS_GLOBAL_STRING(protocol_set_background_white)
328 TOOLS_GLOBAL_STRING(protocol_disable_anim)
329 TOOLS_GLOBAL_STRING(protocol_reset_camera)
330 
331 /* if adding protocols, think to declare corresponding methods to SWIG.
332 protocol_set_plane_viewer(bool)
333 protocol_set_scene_light_on(bool)
334 protocol_hide_main_menu
335 protocol_hide_meta_zone
336 protocol_show_camera_menu
337 */
338 
339 TOOLS_GLOBAL_STRING_VALUE(dir_diaporama,diaporama)
340 
341 // sg_serv params :
342 TOOLS_GLOBAL_STRING_VALUE(sg_serv_ww,ww)
343 TOOLS_GLOBAL_STRING_VALUE(sg_serv_wh,wh)
344 TOOLS_GLOBAL_STRING_VALUE(sg_serv_bw,bw)
345 TOOLS_GLOBAL_STRING_VALUE(sg_serv_bh,bh)
346 TOOLS_GLOBAL_STRING_VALUE(sg_serv_cols,cols)
347 TOOLS_GLOBAL_STRING_VALUE(sg_serv_rows,rows)
348 
349 
350 // view_evd insh commands :
351 TOOLS_GLOBAL_STRING_VALUE(insh_clear_static_scene,clear_static_scene)
352 TOOLS_GLOBAL_STRING_VALUE(insh_clear_dynamic_scene,clear_dynamic_scene)
353 TOOLS_GLOBAL_STRING_VALUE(insh_clear_screen_scene,clear_screen_scene)
354 
355 }}
356 
357 #endif
358 
359 
TOOLS_GLOBAL_STRING
#define TOOLS_GLOBAL_STRING(a_name)
Definition: S_STRING:29
tools::sg::font_ROOT_22
const std::string & font_ROOT_22()
Definition: strings:236
tools::sg::font_ROOT_132
const std::string & font_ROOT_132()
Definition: strings:247
tools::sg::light_model_phong
const std::string & light_model_phong()
Definition: strings:178
tools::sg::modeling_boxes
const std::string & modeling_boxes()
Definition: strings:64
tools::sg::modeling_none
const std::string & modeling_none()
Definition: strings:125
tools::sg::modeling_cube
const std::string & modeling_cube()
Definition: strings:150
tools::sg::light_model_base_color
const std::string & light_model_base_color()
Definition: strings:174
tools::sg::modeling_I
const std::string & modeling_I()
Definition: strings:129
tools::sg::modeling_texts
const std::string & modeling_texts()
Definition: strings:93
tools::sg::modeling_polygon
const std::string & modeling_polygon()
Definition: strings:121
TOOLS_GLOBAL_STRING_VALUE
#define TOOLS_GLOBAL_STRING_VALUE(a_name, a_value)
Definition: S_STRING:35
tools::sg::modeling_filled_curve
const std::string & modeling_filled_curve()
Definition: strings:101
tools::sg::modeling_plus
const std::string & modeling_plus()
Definition: strings:133
tools::sg::modeling_reduced_wire_frame
const std::string & modeling_reduced_wire_frame()
Definition: strings:117
tools::sg::modeling_cone_detector
const std::string & modeling_cone_detector()
Definition: strings:158
tools::sg::modeling_segments
const std::string & modeling_segments()
Definition: strings:77
tools::sg::encoding_PAW
const std::string & encoding_PAW()
Definition: strings:42
tools::sg::font_ROOT_92
const std::string & font_ROOT_92()
Definition: strings:243
tools::sg::font_ROOT_122
const std::string & font_ROOT_122()
Definition: strings:246
tools::sg::modeling_firework
const std::string & modeling_firework()
Definition: strings:166
tools::sg::font_ROOT_62
const std::string & font_ROOT_62()
Definition: strings:240
tools::sg::s_anim_mode_3
const std::string & s_anim_mode_3()
Definition: strings:58
tools::sg::font_ROOT_82
const std::string & font_ROOT_82()
Definition: strings:242
tools::sg::modeling_top_lines_boxes
const std::string & modeling_top_lines_boxes()
Definition: strings:89
tools::sg::modeling_top_lines
const std::string & modeling_top_lines()
Definition: strings:85
tools::sg::tick_modeling_hippo
const std::string & tick_modeling_hippo()
Definition: strings:19
tools::sg::modeling_cone
const std::string & modeling_cone()
Definition: strings:154
tools::sg::modeling_curve
const std::string & modeling_curve()
Definition: strings:97
tools::sg::modeling_lines
const std::string & modeling_lines()
Definition: strings:73
tools::sg::s_font_pixmap
const std::string & s_font_pixmap()
Definition: strings:53
tools::sg::s_anim_mode_1
const std::string & s_anim_mode_1()
Definition: strings:56
tools::sg::font_ROOT_12
const std::string & font_ROOT_12()
Definition: strings:235
tools::sg::font_ROOT_52
const std::string & font_ROOT_52()
Definition: strings:239
tools::sg::s_anim_mode_0
const std::string & s_anim_mode_0()
Definition: strings:55
tools::sg::font_ROOT_102
const std::string & font_ROOT_102()
Definition: strings:244
tools::sg::modeling_wire_frame
const std::string & modeling_wire_frame()
Definition: strings:113
tools::sg::modeling_markers
const std::string & modeling_markers()
Definition: strings:137
tools::sg::encoding_none
const std::string & encoding_none()
Definition: strings:38
tools::sg::modeling_bar_chart
const std::string & modeling_bar_chart()
Definition: strings:105
tools::sg::font_ROOT_42
const std::string & font_ROOT_42()
Definition: strings:238
tools::sg::infos_modeling_ROOT
const std::string & infos_modeling_ROOT()
Definition: strings:31
tools::sg::s_anim_mode_4
const std::string & s_anim_mode_4()
Definition: strings:59
tools::sg::TOOLS_FONT_TTF
TOOLS_FONT_TTF(roboto_bold) TOOLS_FONT_TTF(lato_regular) TOOLS_FONT_TTF(lato_bold) inline const std
Definition: strings:207
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::sg::modeling_points
const std::string & modeling_points()
Definition: strings:81
tools::sg::modeling_solid
const std::string & modeling_solid()
Definition: strings:109
tools::sg::font_ROOT_32
const std::string & font_ROOT_32()
Definition: strings:237
tools::sg::tick_modeling_none
const std::string & tick_modeling_none()
Definition: strings:15
tools::sg::font_ROOT_72
const std::string & font_ROOT_72()
Definition: strings:241
tools::sg::modeling_arrow
const std::string & modeling_arrow()
EsbRootView : /////////////////////////////////////////////.
Definition: strings:146
tools::sg::modeling_detector
const std::string & modeling_detector()
Definition: strings:162
tools::sg::font_hershey
const std::string & font_hershey()
Definition: strings:186
tools::sg::s_font_filled
const std::string & s_font_filled()
Definition: strings:52
tools::sg::modeling_wire_boxes
const std::string & modeling_wire_boxes()
Definition: strings:69
tools::sg::font_STIX2Text_Regular_otf
const std::string & font_STIX2Text_Regular_otf()
Definition: strings:214
tools::sg::font_ROOT_112
const std::string & font_ROOT_112()
Definition: strings:245
tools::sg::font_ROOT_142
const std::string & font_ROOT_142()
Definition: strings:248
tools::sg::s_font_outline
const std::string & s_font_outline()
Definition: strings:51
tools::sg::tick_modeling_hplot
const std::string & tick_modeling_hplot()
Definition: strings:23
tools::sg::s_anim_mode_2
const std::string & s_anim_mode_2()
Definition: strings:57