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;
virtual ~G4VisCommandGeometryRestore()
G4UIcmdWithAString * fpCommand
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandGeometryList()
G4VisCommandGeometryRestore()
G4int ApplyCommand(const char *aCommand)
static std::map< G4LogicalVolume *, const G4VisAttributes * > fVisAttsMap
static G4UImanager * GetUIpointer()
std::map< G4LogicalVolume *, const G4VisAttributes * >::const_iterator VisAttsMapIterator
G4VisCommandGeometryList()
G4VViewer * GetCurrentViewer() const
static Verbosity GetVerbosity()
const G4VisAttributes * GetVisAttributes() const
void SetVisAttributes(const G4VisAttributes *pVA)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4GLOB_DLL std::ostream G4cerr
G4UIcmdWithAString * fpCommand
virtual ~G4VVisCommandGeometry()
G4GLOB_DLL std::ostream G4cout
void SetNewValue(G4UIcommand *command, G4String newValue)
static G4VisManager * fpVisManager
static G4LogicalVolumeStore * GetInstance()
const G4String & GetName() const