39std::map<G4LogicalVolume*, const G4VisAttributes*>
54 fpCommand -> SetGuidance(
"Lists vis attributes of logical volume(s).");
55 fpCommand -> SetGuidance(
"\"all\" lists all logical volumes.");
56 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
57 fpCommand -> SetDefaultValue(
"all");
74 for (
size_t iLV = 0; iLV < pLVStore->size(); iLV++ ) {
77 if (newValue ==
"all" || logVolName == newValue) {
81 G4cout <<
'\n' << *visAtts;
83 G4cout <<
" no vis attributes";
87 if (logVolName == newValue) found =
true;
89 if (newValue !=
"all" && !found) {
91 G4warn <<
"ERROR: Logical volume \"" << newValue
92 <<
"\" not found in logical volume store." <<
G4endl;
104 fpCommand -> SetGuidance(
"Restores vis attributes of logical volume(s).");
105 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
106 fpCommand -> SetDefaultValue(
"all");
123 size_t nLV = pLVStore->size();
127 for (iLV = 0; iLV < nLV; iLV++ ) {
128 pLV = (*pLVStore)[iLV];
130 if (logVolName == newValue) found =
true;
131 if (newValue ==
"all" || logVolName == newValue) {
139 <<
"\": re-setting vis attributes:\nwas: " << *newVisAtts
140 <<
"\nnow: " << *oldVisAtts
146 if (newValue !=
"all" && !found) {
148 G4warn <<
"ERROR: Logical volume \"" << newValue
149 <<
"\" not found in logical volume store." <<
G4endl;
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
const G4VisAttributes * GetVisAttributes() const
void SetVisAttributes(const G4VisAttributes *pVA)
const G4String & GetName() const
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
virtual ~G4VVisCommandGeometry()
static std::map< G4LogicalVolume *, const G4VisAttributes * > fVisAttsMap
std::map< G4LogicalVolume *, constG4VisAttributes * >::const_iterator VisAttsMapIterator
static G4VisManager * fpVisManager
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometryList()
virtual ~G4VisCommandGeometryList()
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandGeometryRestore()
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometryRestore()
G4VViewer * GetCurrentViewer() const
static Verbosity GetVerbosity()