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) {
80 G4cout <<
'\n' << *visAtts;
82 G4cout <<
" no vis attributes";
86 if (logVolName == newValue) found =
true;
88 if (newValue !=
"all" && !found) {
90 G4cerr <<
"ERROR: Logical volume \"" << newValue
91 <<
"\" not found in logical volume store." <<
G4endl;
103 fpCommand -> SetGuidance(
"Restores vis attributes of logical volume(s).");
104 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
122 size_t nLV = pLVStore->size();
126 for (iLV = 0; iLV < nLV; iLV++ ) {
127 pLV = (*pLVStore)[iLV];
129 if (logVolName == newValue) found =
true;
130 if (newValue ==
"all" || logVolName == newValue) {
138 <<
"\": re-setting vis attributes:\nwas: " << *newVisAtts
139 <<
"\nnow: " << *oldVisAtts
145 if (newValue !=
"all" && !found) {
147 G4cerr <<
"ERROR: Logical volume \"" << newValue
148 <<
"\" 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
const G4String & GetName() const
virtual ~G4VisCommandGeometryRestore()
void SetVisAttributes(const G4VisAttributes *pVA)
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
G4VisCommandGeometryList()
static G4VisManager * fpVisManager