45fpASCIITree(ASCIITree) {
50 fpDirectory -> SetGuidance (
"Commands for ASCIITree control.");
53 fpDirectorySet -> SetGuidance (
"Settings for ASCIITree control.");
57 (
" < 10: notifies but does not print details of repeated volumes.");
59 (
" >= 10: prints all physical volumes (touchables).");
61 (
"The level of detail is given by verbosity%10:");
63 (
" >= 0: physical volume name.");
65 (
" >= 1: logical volume name (and names of sensitive detector"
66 " and readout geometry, if any).");
68 (
" >= 2: solid name and type.");
70 (
" >= 3: volume and density.");
72 (
" >= 5: daughter-subtracted volume and mass.");
74 (
" >= 6: physical volume dump.");
76 (
" >= 7: polyhedron dump.");
78 (
"and in the summary at the end of printing:");
80 (
" >= 4: daughter-included mass of top physical volume(s) in scene"
81 " to depth specified.");
83 (
"Note: by default, culling is switched off so all volumes are seen.");
85 (
"Note: the mass calculation takes into account daughters, which can be"
86 " time consuming. If you want the mass of a particular subtree try:");
88 (
" /vis/drawTree <subtree-physical-volume-name>");
90 (
"Or if you want more control, for example:");
94 (
" /vis/ASCIITree/verbose 14");
96 (
" /vis/scene/create");
98 (
" /vis/scene/add/volume <subtree-physical-volume-name> ! <depth>");
100 (
" /vis/sceneHandler/attach");
102 (
" /vis/viewer/flush");
104 (
"Note: dumping the physical volumes produces a lot of output. It is"
105 " advisable to select the volume of interest, as for a sub-tree above.");
109 fpCommandVerbose -> SetParameterName (
"verbosity",omitable =
true);
110 fpCommandVerbose -> SetDefaultValue(1);
114 fpCommandSetOutFile -> SetGuidance (
"Set name of output file.");
115 fpCommandSetOutFile -> SetParameterName (
"out-filename",
117 fpCommandSetOutFile -> SetDefaultValue (
"G4cout");
121 delete fpCommandSetOutFile;
122 delete fpDirectorySet;
123 delete fpCommandVerbose;
134 if (command == fpCommandVerbose)
138 G4cout <<
"G4ASCIITree verbosity now "
142 else if (command == fpCommandSetOutFile)
144 fpASCIITree -> SetOutFileName (newValue);
145 G4cout <<
"G4ASCIITree out filename now "
146 << fpASCIITree -> GetOutFileName()
G4GLOB_DLL std::ostream G4cout
G4String GetCurrentValue(G4UIcommand *command)
static std::vector< G4String > fVerbosityGuidance
G4ASCIITreeMessenger(G4ASCIITree *)
virtual ~G4ASCIITreeMessenger()
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetVerbosity(G4int verbosity)
G4int GetVerbosity() const
static G4int GetNewIntValue(const char *paramString)