#include <G4VisCommandsGeometrySet.hh>
Inheritance diagram for G4VisCommandGeometrySetForceAuxEdgeVisible:
Public Member Functions | |
G4VisCommandGeometrySetForceAuxEdgeVisible () | |
virtual | ~G4VisCommandGeometrySetForceAuxEdgeVisible () |
G4String | GetCurrentValue (G4UIcommand *command) |
void | SetNewValue (G4UIcommand *command, G4String newValue) |
Definition at line 206 of file G4VisCommandsGeometrySet.hh.
G4VisCommandGeometrySetForceAuxEdgeVisible::G4VisCommandGeometrySetForceAuxEdgeVisible | ( | ) |
Definition at line 245 of file G4VisCommandsGeometrySet.cc.
References G4UIparameter::SetDefaultValue(), G4UIparameter::SetGuidance(), G4UIcommand::SetGuidance(), and G4UIcommand::SetParameter().
00246 { 00247 G4bool omitable; 00248 fpCommand = new G4UIcommand("/vis/geometry/set/forceAuxEdgeVisible", this); 00249 fpCommand->SetGuidance 00250 ("Forces auxiliary (soft) edges of logical volume(s) to be visible," 00251 "\nregardless of the view parameters."); 00252 fpCommand->SetGuidance("\"all\" sets all logical volumes."); 00253 fpCommand->SetGuidance 00254 ("Optionally propagates down hierarchy to given depth."); 00255 G4UIparameter* parameter; 00256 parameter = new G4UIparameter ("logical-volume-name", 's', omitable = true); 00257 parameter->SetDefaultValue("all"); 00258 fpCommand->SetParameter(parameter); 00259 parameter = new G4UIparameter("depth", 'd', omitable = true); 00260 parameter->SetDefaultValue(0); 00261 parameter->SetGuidance 00262 ("Depth of propagation (-1 means unlimited depth)."); 00263 fpCommand->SetParameter(parameter); 00264 parameter = new G4UIparameter("forceAuxEdgeVisible", 'b', omitable = true); 00265 parameter->SetDefaultValue(false); 00266 fpCommand->SetParameter(parameter); 00267 }
G4VisCommandGeometrySetForceAuxEdgeVisible::~G4VisCommandGeometrySetForceAuxEdgeVisible | ( | ) | [virtual] |
G4String G4VisCommandGeometrySetForceAuxEdgeVisible::GetCurrentValue | ( | G4UIcommand * | command | ) | [virtual] |
void G4VisCommandGeometrySetForceAuxEdgeVisible::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 281 of file G4VisCommandsGeometrySet.cc.
References G4UIcommand::ConvertToBool().
00282 { 00283 G4String name; 00284 G4int requestedDepth; 00285 G4String forceAuxEdgeVisibleString; 00286 std::istringstream iss(newValue); 00287 iss >> name >> requestedDepth >> forceAuxEdgeVisibleString; 00288 G4bool forceAuxEdgeVisible = 00289 G4UIcommand::ConvertToBool(forceAuxEdgeVisibleString);; 00290 00291 G4VisCommandGeometrySetForceAuxEdgeVisibleFunction 00292 setForceAuxEdgeVisible(forceAuxEdgeVisible); 00293 Set(name, setForceAuxEdgeVisible, requestedDepth); 00294 }