Geant4 Cross Reference |
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 12 /////////////////////////////////////////////////////////////// 13 /////////////////////////////////////////////////////////////// 14 /////////////////////////////////////////////////////////////// 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 28 /////////////////////////////////////////////////////////////// 29 /////////////////////////////////////////////////////////////// 30 /////////////////////////////////////////////////////////////// 31 inline const std::string& infos_modeling_ROOT() { 32 static const std::string s_v("ROOT"); 33 return s_v; 34 } 35 /////////////////////////////////////////////////////////////// 36 /////////////////////////////////////////////////////////////// 37 /////////////////////////////////////////////////////////////// 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 47 /////////////////////////////////////////////////////////////// 48 /////////////////////////////////////////////////////////////// 49 /////////////////////////////////////////////////////////////// 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 61 /////////////////////////////////////////////////////////////// 62 /////////////////////////////////////////////////////////////// 63 /////////////////////////////////////////////////////////////// 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 142 /////////////////////////////////////////////////////////////// 143 /// EsbRootView : ///////////////////////////////////////////// 144 /////////////////////////////////////////////////////////////// 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 171 /////////////////////////////////////////////////////////////// 172 /////////////////////////////////////////////////////////////// 173 /////////////////////////////////////////////////////////////// 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 183 /////////////////////////////////////////////////////////////// 184 /////////////////////////////////////////////////////////////// 185 /////////////////////////////////////////////////////////////// 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 216 /////////////////////////////////////////////////////////////// 217 /////////////////////////////////////////////////////////////// 218 /////////////////////////////////////////////////////////////// 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 252 /////////////////////////////////////////////////////////////// 253 /////////////////////////////////////////////////////////////// 254 /////////////////////////////////////////////////////////////// 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 269 TOOLS_GLOBAL_STRING(1D) 270 TOOLS_GLOBAL_STRING(2D) 271 TOOLS_GLOBAL_STRING(3D) 272 273 //TOOLS_GLOBAL_STRING(whole) 274 TOOLS_GLOBAL_STRING(col) 275 TOOLS_GLOBAL_STRING(row) 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) 289 TOOLS_GLOBAL_STRING(axis) 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 297 TOOLS_GLOBAL_STRING(none) 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