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