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);
56 fpCommand -> SetDefaultValue(
"all");
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 G4cout <<
"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);
101 fpCommand -> SetDefaultValue(
"all");
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 G4cout <<
"ERROR: Logical volume \"" << newValue
144 <<
"\" not found in logical volume store." <<
G4endl;
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()
G4VViewer * GetCurrentViewer() const
virtual ~G4VisCommandGeometryRestore()
void SetVisAttributes(const G4VisAttributes *pVA)
G4int ApplyCommand(const char *aCommand)
G4VisCommandGeometryList()
static G4VisManager * fpVisManager