903 : fId (0) {
905 fpCommand =
new G4UIcommand (
"/vis/viewer/create",
this);
906 fpCommand -> SetGuidance
907 ("Creates a viewer. If the scene handler name is specified, then a"
908 "\nviewer of that scene handler is created. Otherwise, a viewer"
909 "\nof the current scene handler is created.");
910 fpCommand -> SetGuidance
911 ("If the viewer name is not specified a name is generated from the name"
912 "\nof the scene handler and a serial number.");
913 fpCommand -> SetGuidance("The scene handler and viewer become current.");
914 fpCommand -> SetGuidance
915 ("(Note: the system adds the graphics system name to the viewer name"
916 "\nfor identification, but for selecting, copying, etc., only characters"
917 "\nup to the first blank are used. For example, if the viewer name is"
918 "\n\"viewer-0 (G4OpenGLStoredQt)\", it may be referenced by \"viewer-0\","
919 "\nfor example in \"/vis/viewer/select viewer-0\".)");
920 fpCommand -> SetGuidance
921 ("Window size and placement hints, e.g. 600x600-100+100 (in pixels):");
922 fpCommand -> SetGuidance
923 ("- single number, e.g., \"600\": square window;");
924 fpCommand -> SetGuidance
925 ("- two numbers, e.g., \"800x600\": rectangluar window;");
926 fpCommand -> SetGuidance
927 ("- two numbers plus placement hint, e.g., \"600x600-100+100\" places window of size"
928 "\n 600x600 100 pixels left and 100 pixels down from top right corner.");
929 fpCommand -> SetGuidance
930 ("- If not specified, the default is \"600\", i.e., 600 pixels square, placed"
931 "\n at the window manager's discretion...or picked up from the previous viewer.");
932 fpCommand -> SetGuidance
933 ("- This is an X-Windows-type geometry string, see:"
934 "\n https://en.wikibooks.org/wiki/Guide_to_X11/Starting_Programs,"
935 "\n \"Specifying window geometry\".");
937 parameter =
new G4UIparameter (
"scene-handler",
's', omitable =
true);
938 parameter -> SetCurrentAsDefault (true);
939 fpCommand -> SetParameter (parameter);
940 parameter =
new G4UIparameter (
"viewer-name",
's', omitable =
true);
941 parameter -> SetCurrentAsDefault (true);
942 fpCommand -> SetParameter (parameter);
943 parameter =
new G4UIparameter (
"window-size-hint",
's', omitable =
true);
944 parameter -> SetCurrentAsDefault (true);
945 fpCommand -> SetParameter (parameter);
946}