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