- 3. General Technical/Implementation issue
- 3.1 How to write Messengers which can use GUI menus
- and widgets
- - add parameter candidate (simplified example)
- command = new G4UIcommand (
- "/vis/create_view/new_graphics_system", this);
- command -> set_guidance(
- "Creates a new scene and a new view of a new graphics system;"
- "all become current."
- );
- param = new G4UIparameter("Graphics system selector",'s',true);
- param -> set_defaultValue ("");
- G4String candidate =
- "DAWN OGLIX OGLIXm OGLSX OGLSXm OI RayX
- VRML1 VRML1File Wo Xo";
- param -> set_parameterCandidate(candidate);
- - You can rewrite above example using template
- G4VisCommandTemplates.hh
- G4VisCommandTemplates.cc
- G4VisManRegisterMessengers.cc
- (Makoto Asai will report on this in the later session)
Previous slide | Next slide | Back to first slide | View graphic version |