Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/sg/strings is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_sg_strings
0005 #define tools_sg_strings
0006 
0007 #include <string>
0008 
0009 namespace tools {
0010 namespace sg {
0011 
0012 ///////////////////////////////////////////////////////////////
0013 ///////////////////////////////////////////////////////////////
0014 ///////////////////////////////////////////////////////////////
0015 inline const std::string& tick_modeling_none() {
0016   static const std::string s_v("none");
0017   return s_v;
0018 }
0019 inline const std::string& tick_modeling_hippo() {
0020   static const std::string s_v("hippo");
0021   return s_v;
0022 }
0023 inline const std::string& tick_modeling_hplot() {
0024   static const std::string s_v("hplot");
0025   return s_v;
0026 }
0027 
0028 ///////////////////////////////////////////////////////////////
0029 ///////////////////////////////////////////////////////////////
0030 ///////////////////////////////////////////////////////////////
0031 inline const std::string& infos_modeling_ROOT() {
0032   static const std::string s_v("ROOT");
0033   return s_v;
0034 }
0035 ///////////////////////////////////////////////////////////////
0036 ///////////////////////////////////////////////////////////////
0037 ///////////////////////////////////////////////////////////////
0038 inline const std::string& encoding_none() {
0039   static const std::string s_v("none");
0040   return s_v;
0041 }
0042 inline const std::string& encoding_PAW() {
0043   static const std::string s_v("PAW");
0044   return s_v;
0045 }
0046 
0047 ///////////////////////////////////////////////////////////////
0048 ///////////////////////////////////////////////////////////////
0049 ///////////////////////////////////////////////////////////////
0050 
0051 inline const std::string& s_font_outline() {static const std::string s_v("font_outline");return s_v;}
0052 inline const std::string& s_font_filled()  {static const std::string s_v("font_filled");return s_v;}
0053 inline const std::string& s_font_pixmap()  {static const std::string s_v("font_pixmap");return s_v;}
0054 
0055 inline const std::string& s_anim_mode_0()  {static const std::string s_v("anim_mode_0");return s_v;}
0056 inline const std::string& s_anim_mode_1()  {static const std::string s_v("anim_mode_1");return s_v;}
0057 inline const std::string& s_anim_mode_2()  {static const std::string s_v("anim_mode_2");return s_v;}
0058 inline const std::string& s_anim_mode_3()  {static const std::string s_v("anim_mode_3");return s_v;}
0059 inline const std::string& s_anim_mode_4()  {static const std::string s_v("anim_mode_4");return s_v;}
0060 
0061 ///////////////////////////////////////////////////////////////
0062 ///////////////////////////////////////////////////////////////
0063 ///////////////////////////////////////////////////////////////
0064 inline const std::string& modeling_boxes() {
0065   static const std::string s_v("boxes");
0066   return s_v;
0067 }
0068 
0069 inline const std::string& modeling_wire_boxes() {
0070   static const std::string s_v("wire_boxes");
0071   return s_v;
0072 }
0073 inline const std::string& modeling_lines() {
0074   static const std::string s_v("lines");
0075   return s_v;
0076 }
0077 inline const std::string& modeling_segments() {
0078   static const std::string s_v("segments");
0079   return s_v;
0080 }
0081 inline const std::string& modeling_points() {
0082   static const std::string s_v("points");
0083   return s_v;
0084 }
0085 inline const std::string& modeling_top_lines() {
0086   static const std::string s_v("top_lines");
0087   return s_v;
0088 }
0089 inline const std::string& modeling_top_lines_boxes() {
0090   static const std::string s_v("top_lines_boxes");
0091   return s_v;
0092 }
0093 inline const std::string& modeling_texts() {
0094   static const std::string s_v("texts");
0095   return s_v;
0096 }
0097 inline const std::string& modeling_curve() {
0098   static const std::string s_v("curve");
0099   return s_v;
0100 }
0101 inline const std::string& modeling_filled_curve() {
0102   static const std::string s_v("filled_curve");
0103   return s_v;
0104 }
0105 inline const std::string& modeling_bar_chart() {
0106   static const std::string s_v("bar_chart");
0107   return s_v;
0108 }
0109 inline const std::string& modeling_solid() {
0110   static const std::string s_v("solid");
0111   return s_v;
0112 }
0113 inline const std::string& modeling_wire_frame() {
0114   static const std::string s_v("wire_frame");
0115   return s_v;
0116 }
0117 inline const std::string& modeling_reduced_wire_frame() {
0118   static const std::string s_v("reduced_wire_frame");
0119   return s_v;
0120 }
0121 inline const std::string& modeling_polygon() {
0122   static const std::string s_v("polygon");
0123   return s_v;
0124 }
0125 inline const std::string& modeling_none() {
0126   static const std::string s_v("none");
0127   return s_v;
0128 }
0129 inline const std::string& modeling_I() {
0130   static const std::string s_v("I");
0131   return s_v;
0132 }
0133 inline const std::string& modeling_plus() {
0134   static const std::string s_v("plus");
0135   return s_v;
0136 }
0137 inline const std::string& modeling_markers() { //used in sg::plotter.
0138   static const std::string s_v("markers");
0139   return s_v;
0140 }
0141 
0142 ///////////////////////////////////////////////////////////////
0143 /// EsbRootView : /////////////////////////////////////////////
0144 ///////////////////////////////////////////////////////////////
0145 
0146 inline const std::string& modeling_arrow() {
0147   static const std::string s_v("arrow");
0148   return s_v;
0149 }
0150 inline const std::string& modeling_cube() {
0151   static const std::string s_v("cube");
0152   return s_v;
0153 }
0154 inline const std::string& modeling_cone() { //used in EsbRootView.
0155   static const std::string s_v("cone");
0156   return s_v;
0157 }
0158 inline const std::string& modeling_cone_detector() { //used in EsbRootView.
0159   static const std::string s_v("cone_detector");
0160   return s_v;
0161 }
0162 inline const std::string& modeling_detector() { //used in EsbRootView.
0163   static const std::string s_v("detector");
0164   return s_v;
0165 }
0166 inline const std::string& modeling_firework() { //used in EsbRootView.
0167   static const std::string s_v("firework");
0168   return s_v;
0169 }
0170 
0171 ///////////////////////////////////////////////////////////////
0172 ///////////////////////////////////////////////////////////////
0173 ///////////////////////////////////////////////////////////////
0174 inline const std::string& light_model_base_color() {
0175   static const std::string s_v("base_color");
0176   return s_v;
0177 }
0178 inline const std::string& light_model_phong() {
0179   static const std::string s_v("phong");
0180   return s_v;
0181 }
0182 
0183 ///////////////////////////////////////////////////////////////
0184 ///////////////////////////////////////////////////////////////
0185 ///////////////////////////////////////////////////////////////
0186 inline const std::string& font_hershey() {static const std::string s_v("hershey");return s_v;}
0187 
0188 #define TOOLS_FONT_TTF(a__name) \
0189 inline const std::string& font_##a__name##_ttf() {\
0190   static const std::string s_v(std::string(#a__name)+".ttf");\
0191   return s_v;\
0192 }
0193 
0194 TOOLS_FONT_TTF(arial)
0195 TOOLS_FONT_TTF(arialbd)
0196 TOOLS_FONT_TTF(timesbd)
0197 TOOLS_FONT_TTF(symbol)
0198 TOOLS_FONT_TTF(helvetica)
0199 TOOLS_FONT_TTF(helveticabd)
0200 TOOLS_FONT_TTF(times_roman)
0201 TOOLS_FONT_TTF(cour)
0202 TOOLS_FONT_TTF(courbd)
0203 TOOLS_FONT_TTF(couri)
0204 TOOLS_FONT_TTF(courbi)
0205 TOOLS_FONT_TTF(lucidagrandebd)
0206 
0207 TOOLS_FONT_TTF(roboto_bold)    //free replacement of arialbd
0208 TOOLS_FONT_TTF(lato_regular)   //free replacement of helvetica
0209 TOOLS_FONT_TTF(lato_bold)      //free replacement of helveticabd
0210 
0211 #undef TOOLS_FONT_TTF
0212 
0213 inline const std::string& font_stixgeneral_otf() {static const std::string s_v("stixgeneral.otf");return s_v;}
0214 inline const std::string& font_STIX2Text_Regular_otf() {static const std::string s_v("STIX2Text-Regular.otf");return s_v;}
0215 
0216 ///////////////////////////////////////////////////////////////
0217 ///////////////////////////////////////////////////////////////
0218 ///////////////////////////////////////////////////////////////
0219 // From TAttText.cxx :
0220 //*-*      1 : times-medium-i-normal      "Times New Roman"      1           4
0221 //*-*      2 : times-bold-r-normal        "Times New Roman"      0           7
0222 //*-*      3 : times-bold-i-normal        "Times New Roman"      1           7
0223 //*-*      4 : helvetica-medium-r-normal  "Arial"                0           4
0224 //*-*      5 : helvetica-medium-o-normal  "Arial"                1           4
0225 //*-*      6 : helvetica-bold-r-normal    "Arial"                0           7
0226 //*-*      7 : helvetica-bold-o-normal    "Arial"                1           7
0227 //*-*      8 : courier-medium-r-normal    "Courier New"          0           4
0228 //*-*      9 : courier-medium-o-normal    "Courier New"          1           4
0229 //*-*     10 : courier-bold-r-normal      "Courier New"          0           7
0230 //*-*     11 : courier-bold-o-normal      "Courier New"          1           7
0231 //*-*     12 : symbol-medium-r-normal     "Symbol"               0           6
0232 //*-*     13 : times-medium-r-normal      "Times New Roman"      0           4
0233 //*-*     14 :                            "Wingdings"            0           4
0234 
0235 inline const std::string& font_ROOT_12() {static const std::string s_v("timesi.ttf");return s_v;}
0236 inline const std::string& font_ROOT_22() {static const std::string s_v("timesbd.ttf");return s_v;}
0237 inline const std::string& font_ROOT_32() {static const std::string s_v("timesbi.ttf");return s_v;}
0238 inline const std::string& font_ROOT_42() {static const std::string s_v("arial.ttf");return s_v;}
0239 inline const std::string& font_ROOT_52() {static const std::string s_v("ariali.ttf");return s_v;}
0240 inline const std::string& font_ROOT_62() {static const std::string s_v("arialbd.ttf");return s_v;}
0241 inline const std::string& font_ROOT_72() {static const std::string s_v("arialbi.ttf");return s_v;}
0242 inline const std::string& font_ROOT_82() {static const std::string s_v("cour.ttf");return s_v;}
0243 inline const std::string& font_ROOT_92() {static const std::string s_v("couri.ttf");return s_v;}
0244 inline const std::string& font_ROOT_102() {static const std::string s_v("courbd.fff");return s_v;}
0245 inline const std::string& font_ROOT_112() {static const std::string s_v("courbi.fff");return s_v;}
0246 inline const std::string& font_ROOT_122() {static const std::string s_v("symbol.fff");return s_v;}
0247 inline const std::string& font_ROOT_132() {static const std::string s_v("times.ttf");return s_v;}
0248 inline const std::string& font_ROOT_142() {static const std::string s_v("wingding.fff");return s_v;}
0249 
0250 }}
0251 
0252 ///////////////////////////////////////////////////////////////
0253 ///////////////////////////////////////////////////////////////
0254 ///////////////////////////////////////////////////////////////
0255 
0256 #include "../S_STRING"
0257 
0258 namespace tools {
0259 namespace sg {
0260 TOOLS_GLOBAL_STRING(node_end) //for write_bsg, sg::rbsg
0261 //TOOLS_GLOBAL_STRING(clear_scene)
0262 //TOOLS_GLOBAL_STRING(no_hide_menu)
0263 //TOOLS_GLOBAL_STRING(back_color)
0264 //TOOLS_GLOBAL_STRING(adapt_camera)
0265 //TOOLS_GLOBAL_STRING(adapt_camera_sg_was_empty)
0266 TOOLS_GLOBAL_STRING(delete)
0267 TOOLS_GLOBAL_STRING(movable)
0268 
0269 TOOLS_GLOBAL_STRING(1D)
0270 TOOLS_GLOBAL_STRING(2D)
0271 TOOLS_GLOBAL_STRING(3D)
0272 
0273 //TOOLS_GLOBAL_STRING(whole)
0274 TOOLS_GLOBAL_STRING(col)
0275 TOOLS_GLOBAL_STRING(row)
0276 
0277 TOOLS_GLOBAL_STRING_VALUE(white_jpg,white.jpg)
0278 
0279 // for <scenario> EsbRootView.scenarios
0280 TOOLS_GLOBAL_STRING(rotation)
0281 TOOLS_GLOBAL_STRING(translation)
0282 
0283 //slides :
0284 TOOLS_GLOBAL_STRING(pos_x_wcam)
0285 TOOLS_GLOBAL_STRING(pos_y_hcam)
0286 TOOLS_GLOBAL_STRING(scale)
0287 TOOLS_GLOBAL_STRING(rad_per_sec)
0288 //TOOLS_GLOBAL_STRING(kind)
0289 TOOLS_GLOBAL_STRING(axis)
0290 TOOLS_GLOBAL_STRING(time_interval)
0291 TOOLS_GLOBAL_STRING(pos_col)
0292 TOOLS_GLOBAL_STRING(pos_row)
0293 TOOLS_GLOBAL_STRING(repeat)
0294 TOOLS_GLOBAL_STRING(class)
0295 TOOLS_GLOBAL_STRING(camera_height)
0296 
0297 TOOLS_GLOBAL_STRING(none)
0298 
0299 TOOLS_GLOBAL_STRING(placement)
0300 // send sg options :
0301 TOOLS_GLOBAL_STRING_VALUE(send_placement,placement)
0302 TOOLS_GLOBAL_STRING_VALUE(placement_static,static)
0303 TOOLS_GLOBAL_STRING_VALUE(placement_dynamic,dynamic)
0304 TOOLS_GLOBAL_STRING_VALUE(placement_static_blend,static_blend)
0305 TOOLS_GLOBAL_STRING_VALUE(placement_screen,screen)
0306 TOOLS_GLOBAL_STRING_VALUE(send_radius,radius)
0307 TOOLS_GLOBAL_STRING_VALUE(send_scale,scale)
0308 TOOLS_GLOBAL_STRING_VALUE(send_clear,clear)
0309 //TOOLS_GLOBAL_STRING_VALUE(send_height,height)
0310 
0311 TOOLS_GLOBAL_STRING_VALUE(protocol_start,start)
0312 TOOLS_GLOBAL_STRING_VALUE(protocol_disconnect,disconnect)
0313 TOOLS_GLOBAL_STRING_VALUE(protocol_zdoc,zdoc)
0314 TOOLS_GLOBAL_STRING_VALUE(protocol_get_wall_params,get_wall_params)
0315 
0316 TOOLS_GLOBAL_STRING_VALUE(protocol_arg_sep,;)
0317 
0318 TOOLS_GLOBAL_STRING_VALUE(protocol_rwc,rwc)
0319 TOOLS_GLOBAL_STRING_VALUE(protocol_set_params,rwc_set_params)
0320 TOOLS_GLOBAL_STRING_VALUE(protocol_set_camera,rwc_set_camera)
0321 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_static_sg,rwc_clear_static_scene)
0322 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_dynamic_sg,rwc_clear_dynamic_scene)
0323 TOOLS_GLOBAL_STRING_VALUE(protocol_clear_screen_sg,rwc_clear_screen_scene)
0324 
0325 TOOLS_GLOBAL_STRING(protocol_view_all)
0326 TOOLS_GLOBAL_STRING(protocol_set_background_black)
0327 TOOLS_GLOBAL_STRING(protocol_set_background_white)
0328 TOOLS_GLOBAL_STRING(protocol_disable_anim)
0329 TOOLS_GLOBAL_STRING(protocol_reset_camera)
0330 
0331 /* if adding protocols, think to declare corresponding methods to SWIG.
0332 protocol_set_plane_viewer(bool)
0333 protocol_set_scene_light_on(bool)
0334 protocol_hide_main_menu
0335 protocol_hide_meta_zone
0336 protocol_show_camera_menu
0337 */
0338 
0339 TOOLS_GLOBAL_STRING_VALUE(dir_diaporama,diaporama)
0340 
0341 // sg_serv params :
0342 TOOLS_GLOBAL_STRING_VALUE(sg_serv_ww,ww)
0343 TOOLS_GLOBAL_STRING_VALUE(sg_serv_wh,wh)
0344 TOOLS_GLOBAL_STRING_VALUE(sg_serv_bw,bw)
0345 TOOLS_GLOBAL_STRING_VALUE(sg_serv_bh,bh)
0346 TOOLS_GLOBAL_STRING_VALUE(sg_serv_cols,cols)
0347 TOOLS_GLOBAL_STRING_VALUE(sg_serv_rows,rows)
0348 
0349 
0350 // view_evd insh commands :
0351 TOOLS_GLOBAL_STRING_VALUE(insh_clear_static_scene,clear_static_scene)
0352 TOOLS_GLOBAL_STRING_VALUE(insh_clear_dynamic_scene,clear_dynamic_scene)
0353 TOOLS_GLOBAL_STRING_VALUE(insh_clear_screen_scene,clear_screen_scene)
0354 
0355 }}
0356 
0357 #endif
0358 
0359