38 std::map<G4LogicalVolume*, const G4VisAttributes*>
53 fpCommand -> SetGuidance(
"Lists vis attributes of logical volume(s).");
54 fpCommand -> SetGuidance(
"\"all\" lists all logical volumes.");
55 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
73 for (
size_t iLV = 0; iLV < pLVStore->size(); iLV++ ) {
76 if (newValue ==
"all" || logVolName == newValue) {
79 <<
"\": vis attributes:\n" << *visAtts
82 if (logVolName == newValue) found =
true;
84 if (newValue !=
"all" && !found) {
86 G4cerr <<
"ERROR: Logical volume \"" << newValue
87 <<
"\" not found in logical volume store." <<
G4endl;
99 fpCommand -> SetGuidance(
"Restores vis attributes of logical volume(s).");
100 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
118 size_t nLV = pLVStore->size();
122 for (iLV = 0; iLV < nLV; iLV++ ) {
123 pLV = (*pLVStore)[iLV];
125 if (logVolName == newValue) found =
true;
126 if (newValue ==
"all" || logVolName == newValue) {
134 <<
"\": re-setting vis attributes:\nwas: " << *newVisAtts
135 <<
"\nnow: " << *oldVisAtts
141 if (newValue !=
"all" && !found) {
143 G4cerr <<
"ERROR: Logical volume \"" << newValue
144 <<
"\" not found in logical volume store." <<
G4endl;
G4UIcmdWithAString * fpCommand
G4String GetCurrentValue(G4UIcommand *command)
std::map< G4LogicalVolume *, const G4VisAttributes * >::const_iterator VisAttsMapIterator
virtual ~G4VVisCommandGeometry()
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometryList()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
const G4VisAttributes * GetVisAttributes() const
static G4LogicalVolumeStore * GetInstance()
static std::map< G4LogicalVolume *, const G4VisAttributes * > fVisAttsMap
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometryRestore()
G4String GetCurrentValue(G4UIcommand *command)
static Verbosity GetVerbosity()
G4UIcmdWithAString * fpCommand
G4VViewer * GetCurrentViewer() const
virtual ~G4VisCommandGeometryRestore()
void SetVisAttributes(const G4VisAttributes *pVA)
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
G4VisCommandGeometryList()
static G4VisManager * fpVisManager