44 fDetectorConstruction(detectorConstruction),
47 fSetBoxMaterialCmd(0),
48 fSetWorldMaterialCmd(0),
49 fSetBoxDimensionsCmd(0),
50 fSetWorldSizeFactorCmd(0)
54 fTopDirectory->
SetGuidance(
"UI commands of common example classes");
61 fSetBoxMaterialCmd->
SetGuidance(
"Select material of the box.");
67 fSetWorldMaterialCmd->
SetGuidance(
"Select material of the world.");
73 fSetBoxDimensionsCmd->
SetGuidance(
"Set box dimensions (in half lentgh).");
75 "BoxDimensionsHx",
"BoxDimensionsHy",
"BoxDimensionsHz",
80 fSetWorldSizeFactorCmd
83 "Set the multiplication factor from box dimensions to world dimensions.");
85 fSetWorldSizeFactorCmd->
SetRange(
"WorldSizeFactor >= 1");
95 delete fSetBoxMaterialCmd;
96 delete fSetWorldMaterialCmd;
97 delete fSetBoxDimensionsCmd;
98 delete fSetWorldSizeFactorCmd;
106 if( command == fSetBoxMaterialCmd ) {
109 else if( command == fSetWorldMaterialCmd ) {
112 else if( command == fSetBoxDimensionsCmd ) {
115 fDetectorConstruction
117 newDimensions.
x(), newDimensions.
y(), newDimensions.
z());
119 else if ( command == fSetWorldSizeFactorCmd ) {
120 fDetectorConstruction