3042 {
3044 fpCommand = new G4UIcommand ("/vis/scene/add/volume", this);
3045 fpCommand -> SetGuidance
3046 ("Adds a physical volume to current scene, with optional clipping volume.");
3047 fpCommand -> SetGuidance
3048 ("If physical-volume-name is \"world\" (the default), the top of the"
3049 "\nmain geometry tree (material world) is added. If \"worlds\", the"
3050 "\ntops of all worlds - material world and parallel worlds, if any - are"
3051 "\nadded. Otherwise a search of all worlds is made.");
3052 fpCommand -> SetGuidance
3053 ("In the last case the names of all volumes in all worlds are matched"
3054 "\nagainst physical-volume-name. If this is of the form \"/regexp/\","
3055 "\nwhere regexp is a regular expression (see C++ regex), the match uses"
3056 "\nthe usual rules of regular expression matching. Otherwise an exact"
3057 "\nmatch is required."
3058 "\nFor example, \"/Shap/\" adds \"Shape1\" and \"Shape2\".");
3059 fpCommand -> SetGuidance
3060 ("It may help to see a textual representation of the geometry hierarchy of"
3061 "\nthe worlds. Try \"/vis/drawTree [worlds]\" or one of the driver/browser"
3062 "\ncombinations that have the required functionality, e.g., HepRepFile.");
3063 fpCommand -> SetGuidance
3064 ("If clip-volume-type is specified, the subsequent parameters are used to"
3065 "\nto define a clipping volume. For example,"
3066 "\n\"/vis/scene/add/volume ! ! ! -box km 0 1 0 1 0 1\" will draw the world"
3067 "\nwith the positive octant cut away. (If the Boolean Processor issues"
3068 "\nwarnings try replacing 0 by 0.000000001 or something.)");
3069 fpCommand -> SetGuidance
3070 ("If clip-volume-type is prepended with '-', the clip-volume is subtracted"
3071 "\n(cutaway). (This is the default if there is no prepended character.)"
3072 "\nIf '*' is prepended, the intersection of the physical-volume and the"
3073 "\nclip-volume is made. (You can make a section through the detector with"
3074 "\na thin box, for example).");
3075 fpCommand -> SetGuidance
3076 ("For \"box\", the parameters are xmin,xmax,ymin,ymax,zmin,zmax."
3077 "\nOnly \"box\" is programmed at present.");
3078 G4UIparameter* parameter;
3079 parameter = new G4UIparameter ("physical-volume-name", 's', omitable = true);
3080 parameter -> SetDefaultValue ("world");
3081 fpCommand -> SetParameter (parameter);
3082 parameter = new G4UIparameter ("copy-no", 'i', omitable = true);
3083 parameter -> SetGuidance ("If negative, matches any copy no.");
3084 parameter -> SetDefaultValue (-1);
3085 fpCommand -> SetParameter (parameter);
3086 parameter = new G4UIparameter ("depth-of-descent", 'i', omitable = true);
3087 parameter -> SetGuidance
3088 ("Depth of descent of geometry hierarchy. Default = unlimited depth.");
3090 fpCommand -> SetParameter (parameter);
3091 parameter = new G4UIparameter ("clip-volume-type", 's', omitable = true);
3092 parameter -> SetParameterCandidates("none box -box *box");
3093 parameter -> SetDefaultValue ("none");
3094 parameter -> SetGuidance("[-|*]type. See general guidance.");
3095 fpCommand -> SetParameter (parameter);
3096 parameter = new G4UIparameter ("parameter-unit", 's', omitable = true);
3097 parameter -> SetDefaultValue ("m");
3098 fpCommand -> SetParameter (parameter);
3099 parameter = new G4UIparameter ("parameter-1", 'd', omitable = true);
3100 parameter -> SetDefaultValue (0.);
3101 fpCommand -> SetParameter (parameter);
3102 parameter = new G4UIparameter ("parameter-2", 'd', omitable = true);
3103 parameter -> SetDefaultValue (0.);
3104 fpCommand -> SetParameter (parameter);
3105 parameter = new G4UIparameter ("parameter-3", 'd', omitable = true);
3106 parameter -> SetDefaultValue (0.);
3107 fpCommand -> SetParameter (parameter);
3108 parameter = new G4UIparameter ("parameter-4", 'd', omitable = true);
3109 parameter -> SetDefaultValue (0.);
3110 fpCommand -> SetParameter (parameter);
3111 parameter = new G4UIparameter ("parameter-5", 'd', omitable = true);
3112 parameter -> SetDefaultValue (0.);
3113 fpCommand -> SetParameter (parameter);
3114 parameter = new G4UIparameter ("parameter-6", 'd', omitable = true);
3115 parameter -> SetDefaultValue (0.);
3116 fpCommand -> SetParameter (parameter);
3117}