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