37std::map<G4LogicalVolume*, const G4VisAttributes*>
52 fpCommand -> SetGuidance(
"Lists vis attributes of logical volume(s).");
53 fpCommand -> SetGuidance(
"\"all\" lists all logical volumes.");
54 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
55 fpCommand -> SetDefaultValue(
"all");
72 for (
size_t iLV = 0; iLV < pLVStore->size(); iLV++ ) {
75 if (newValue ==
"all" || logVolName == newValue) {
79 G4cout <<
'\n' << *visAtts;
81 G4cout <<
" no vis attributes";
85 if (logVolName == newValue) found =
true;
87 if (newValue !=
"all" && !found) {
89 G4cerr <<
"ERROR: Logical volume \"" << newValue
90 <<
"\" not found in logical volume store." <<
G4endl;
102 fpCommand -> SetGuidance(
"Restores vis attributes of logical volume(s).");
103 fpCommand -> SetParameterName(
"logical-volume-name", omitable =
true);
104 fpCommand -> SetDefaultValue(
"all");
121 size_t nLV = pLVStore->size();
125 for (iLV = 0; iLV < nLV; iLV++ ) {
126 pLV = (*pLVStore)[iLV];
128 if (logVolName == newValue) found =
true;
129 if (newValue ==
"all" || logVolName == newValue) {
137 <<
"\": re-setting vis attributes:\nwas: " << *newVisAtts
138 <<
"\nnow: " << *oldVisAtts
144 if (newValue !=
"all" && !found) {
146 G4cerr <<
"ERROR: Logical volume \"" << newValue
147 <<
"\" not found in logical volume store." <<
G4endl;
G4GLOB_DLL std::ostream G4cerr
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()