3101 {
3103 fpCommand = new G4UIcommand ("/vis/scene/add/volume", this);
3104 fpCommand -> SetGuidance
3105 ("Adds a physical volume to current scene, with optional clipping volume.");
3106 fpCommand -> SetGuidance
3107 ("If physical-volume-name is \"world\" (the default), the top of the"
3108 "\nmain geometry tree (material world) is added. If \"worlds\", the"
3109 "\ntops of all worlds - material world and parallel worlds, if any - are"
3110 "\nadded. Otherwise a search of all worlds is made.");
3111 fpCommand -> SetGuidance
3112 ("In the last case the names of all volumes in all worlds are matched"
3113 "\nagainst physical-volume-name. If this is of the form \"/regexp/\","
3114 "\nwhere regexp is a regular expression (see C++ regex), the match uses"
3115 "\nthe usual rules of regular expression matching. Otherwise an exact"
3116 "\nmatch is required."
3117 "\nFor example, \"/Shap/\" adds \"Shape1\" and \"Shape2\".");
3118 fpCommand -> SetGuidance
3119 ("It may help to see a textual representation of the geometry hierarchy of"
3120 "\nthe worlds. Try \"/vis/drawTree [worlds]\".");
3121 fpCommand -> SetGuidance
3122 ("If clip-volume-type is specified, the subsequent parameters are used to"
3123 "\nto define a clipping volume. For example,"
3124 "\n\"/vis/scene/add/volume ! ! ! -box km 0 1 0 1 0 1\" will draw the world"
3125 "\nwith the positive octant cut away. (If the Boolean Processor issues"
3126 "\nwarnings try replacing 0 by 0.000000001 or something.)");
3127 fpCommand -> SetGuidance
3128 ("If clip-volume-type is prepended with '-', the clip-volume is subtracted"
3129 "\n(cutaway). (This is the default if there is no prepended character.)"
3130 "\nIf '*' is prepended, the intersection of the physical-volume and the"
3131 "\nclip-volume is made. (You can make a section through the detector with"
3132 "\na thin box, for example).");
3133 fpCommand -> SetGuidance
3134 ("For \"box\", the parameters are xmin,xmax,ymin,ymax,zmin,zmax."
3135 "\nOnly \"box\" is programmed at present.");
3136 G4UIparameter* parameter;
3137 parameter = new G4UIparameter ("physical-volume-name", 's', omitable = true);
3138 parameter -> SetDefaultValue ("world");
3139 fpCommand -> SetParameter (parameter);
3140 parameter = new G4UIparameter ("copy-no", 'i', omitable = true);
3141 parameter -> SetGuidance ("If negative, matches any copy no.");
3142 parameter -> SetDefaultValue (-1);
3143 fpCommand -> SetParameter (parameter);
3144 parameter = new G4UIparameter ("depth-of-descent", 'i', omitable = true);
3145 parameter -> SetGuidance
3146 ("Depth of descent of geometry hierarchy. Default = unlimited depth.");
3148 fpCommand -> SetParameter (parameter);
3149 parameter = new G4UIparameter ("clip-volume-type", 's', omitable = true);
3150 parameter -> SetParameterCandidates("none box -box *box");
3151 parameter -> SetDefaultValue ("none");
3152 parameter -> SetGuidance("[-|*]type. See general guidance.");
3153 fpCommand -> SetParameter (parameter);
3154 parameter = new G4UIparameter ("parameter-unit", 's', omitable = true);
3155 parameter -> SetDefaultValue ("m");
3156 fpCommand -> SetParameter (parameter);
3157 parameter = new G4UIparameter ("parameter-1", 'd', omitable = true);
3158 parameter -> SetDefaultValue (0.);
3159 fpCommand -> SetParameter (parameter);
3160 parameter = new G4UIparameter ("parameter-2", 'd', omitable = true);
3161 parameter -> SetDefaultValue (0.);
3162 fpCommand -> SetParameter (parameter);
3163 parameter = new G4UIparameter ("parameter-3", 'd', omitable = true);
3164 parameter -> SetDefaultValue (0.);
3165 fpCommand -> SetParameter (parameter);
3166 parameter = new G4UIparameter ("parameter-4", 'd', omitable = true);
3167 parameter -> SetDefaultValue (0.);
3168 fpCommand -> SetParameter (parameter);
3169 parameter = new G4UIparameter ("parameter-5", 'd', omitable = true);
3170 parameter -> SetDefaultValue (0.);
3171 fpCommand -> SetParameter (parameter);
3172 parameter = new G4UIparameter ("parameter-6", 'd', omitable = true);
3173 parameter -> SetDefaultValue (0.);
3174 fpCommand -> SetParameter (parameter);
3175}