38std::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;
G4DLLIMPORT std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
const G4VisAttributes * GetVisAttributes() const
void SetVisAttributes(const G4VisAttributes *pVA)
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()