46 fpASCIITree(ASCIITree) {
51 fpDirectory -> SetGuidance (
"Commands for ASCIITree control.");
54 fpDirectorySet -> SetGuidance (
"Settings for ASCIITree control.");
58 (
" < 10: - does not print daughters of repeated placements,"
59 " does not repeat replicas.");
61 (
" >= 10: prints all physical volumes.");
63 (
"The level of detail is given by verbosity%10:");
67 (
" >= 0: physical volume name.");
69 (
" >= 1: logical volume name (and names of sensitive detector"
70 " and readout geometry, if any).");
72 (
" >= 2: solid name and type.");
74 (
" >= 3: volume and density.");
76 (
" >= 5: daughter-subtracted volume and mass.");
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 to a"
87 " particular depth:");
91 (
" /vis/ASCIITree/verbose 14");
93 (
" /vis/scene/create");
95 (
" /vis/scene/add/volume <subtree-physical-volume> ! <depth>");
97 (
" /vis/sceneHandler/attach");
99 (
" /vis/viewer/flush");
103 fpCommandVerbose -> SetParameterName (
"verbosity",omitable =
true);
104 fpCommandVerbose -> SetDefaultValue(0);
108 fpCommandSetOutFile -> SetGuidance (
"Set name of output file.");
109 fpCommandSetOutFile -> SetParameterName (
"out-filename",
111 fpCommandSetOutFile -> SetDefaultValue (
"G4cout");
115 delete fpCommandSetOutFile;
116 delete fpDirectorySet;
117 delete fpCommandVerbose;
128 if (command == fpCommandVerbose)
132 G4cout <<
"G4ASCIITree verbosity now "
136 else if (command == fpCommandSetOutFile)
138 fpASCIITree -> SetOutFileName (newValue);
139 G4cout <<
"G4ASCIITree out filename now "
140 << fpASCIITree -> GetOutFileName()
G4DLLIMPORT 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)