2889 {
2891 fpCommand =
new G4UIcommand (
"/vis/scene/add/volume",
this);
2892 fpCommand -> SetGuidance
2893 ("Adds a physical volume to current scene, with optional clipping volume.");
2894 fpCommand -> SetGuidance
2895 ("If physical-volume-name is \"world\" (the default), the top of the"
2896 "\nmain geometry tree (material world) is added. If \"worlds\", the"
2897 "\ntops of all worlds - material world and parallel worlds, if any - are"
2898 "\nadded. Otherwise a search of all worlds is made.");
2899 fpCommand -> SetGuidance
2900 ("In the last case the names of all volumes in all worlds are matched"
2901 "\nagainst physical-volume-name. If this is of the form \"/regexp/\","
2902 "\nwhere regexp is a regular expression (see C++ regex), the match uses"
2903 "\nthe usual rules of regular expression matching. Otherwise an exact"
2904 "\nmatch is required."
2905 "\nFor example, \"/Shap/\" adds \"Shape1\" and \"Shape2\".");
2906 fpCommand -> SetGuidance
2907 ("It may help to see a textual representation of the geometry hierarchy of"
2908 "\nthe worlds. Try \"/vis/drawTree [worlds]\" or one of the driver/browser"
2909 "\ncombinations that have the required functionality, e.g., HepRepFile.");
2910 fpCommand -> SetGuidance
2911 ("If clip-volume-type is specified, the subsequent parameters are used to"
2912 "\nto define a clipping volume. For example,"
2913 "\n\"/vis/scene/add/volume ! ! ! -box km 0 1 0 1 0 1\" will draw the world"
2914 "\nwith the positive octant cut away. (If the Boolean Processor issues"
2915 "\nwarnings try replacing 0 by 0.000000001 or something.)");
2916 fpCommand -> SetGuidance
2917 ("If clip-volume-type is prepended with '-', the clip-volume is subtracted"
2918 "\n(cutaway). (This is the default if there is no prepended character.)"
2919 "\nIf '*' is prepended, the intersection of the physical-volume and the"
2920 "\nclip-volume is made. (You can make a section through the detector with"
2921 "\na thin box, for example).");
2922 fpCommand -> SetGuidance
2923 ("For \"box\", the parameters are xmin,xmax,ymin,ymax,zmin,zmax."
2924 "\nOnly \"box\" is programmed at present.");
2926 parameter =
new G4UIparameter (
"physical-volume-name",
's', omitable =
true);
2927 parameter -> SetDefaultValue ("world");
2928 fpCommand -> SetParameter (parameter);
2929 parameter =
new G4UIparameter (
"copy-no",
'i', omitable =
true);
2930 parameter -> SetGuidance ("If negative, matches any copy no.");
2931 parameter -> SetDefaultValue (-1);
2932 fpCommand -> SetParameter (parameter);
2933 parameter =
new G4UIparameter (
"depth-of-descent",
'i', omitable =
true);
2934 parameter -> SetGuidance
2935 ("Depth of descent of geometry hierarchy. Default = unlimited depth.");
2937 fpCommand -> SetParameter (parameter);
2938 parameter =
new G4UIparameter (
"clip-volume-type",
's', omitable =
true);
2939 parameter -> SetParameterCandidates("none box -box *box");
2940 parameter -> SetDefaultValue ("none");
2941 parameter -> SetGuidance("[-|*]type. See general guidance.");
2942 fpCommand -> SetParameter (parameter);
2943 parameter =
new G4UIparameter (
"parameter-unit",
's', omitable =
true);
2944 parameter -> SetDefaultValue ("m");
2945 fpCommand -> SetParameter (parameter);
2946 parameter =
new G4UIparameter (
"parameter-1",
'd', omitable =
true);
2947 parameter -> SetDefaultValue (0.);
2948 fpCommand -> SetParameter (parameter);
2949 parameter =
new G4UIparameter (
"parameter-2",
'd', omitable =
true);
2950 parameter -> SetDefaultValue (0.);
2951 fpCommand -> SetParameter (parameter);
2952 parameter =
new G4UIparameter (
"parameter-3",
'd', omitable =
true);
2953 parameter -> SetDefaultValue (0.);
2954 fpCommand -> SetParameter (parameter);
2955 parameter =
new G4UIparameter (
"parameter-4",
'd', omitable =
true);
2956 parameter -> SetDefaultValue (0.);
2957 fpCommand -> SetParameter (parameter);
2958 parameter =
new G4UIparameter (
"parameter-5",
'd', omitable =
true);
2959 parameter -> SetDefaultValue (0.);
2960 fpCommand -> SetParameter (parameter);
2961 parameter =
new G4UIparameter (
"parameter-6",
'd', omitable =
true);
2962 parameter -> SetDefaultValue (0.);
2963 fpCommand -> SetParameter (parameter);
2964}