47 for (
size_t iLV = 0; iLV < pLVStore->size(); iLV++ ) {
50 if (logVolName == requestedName) found =
true;
51 if (requestedName ==
"all" || logVolName == requestedName) {
52 SetLVVisAtts(pLV, setFunction, 0, requestedDepth);
55 if (requestedName !=
"all" && !found) {
57 G4cerr <<
"ERROR: Logical volume \"" << requestedName
58 <<
"\" not found in logical volume store." <<
G4endl;
62 if (fpVisManager->GetCurrentViewer()) {
74 fVisAttsMap.insert(std::make_pair(pLV,oldVisAtts));
77 *newVisAtts = *oldVisAtts;
79 setFunction(newVisAtts);
84 <<
"\": setting vis attributes:";
86 G4cout <<
"\nwas: " << *oldVisAtts;
88 G4cout <<
"\n(no old attributes)";
90 G4cout <<
"\nnow: " << *newVisAtts
93 if (requestedDepth < 0 || depth < requestedDepth) {
95 for (
G4int i = 0; i < nDaughters; ++i) {
97 setFunction, ++depth, requestedDepth);
111 (
"Optionally propagates down hierarchy to given depth.");
113 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
116 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
119 (
"Depth of propagation (-1 means unlimited depth).");
124 (
"Red component or a string, e.g., \"blue\", in which case succeeding colour components are ignored.");
126 parameter =
new G4UIparameter(
"green",
'd', omitable =
true);
132 parameter =
new G4UIparameter(
"opacity",
'd', omitable =
true);
151 G4int requestedDepth;
153 std::istringstream iss(newValue);
154 iss >> name >> requestedDepth >> redOrString >> green >> blue >> opacity;
156 ConvertToColour(colour, redOrString, green, blue, opacity);
158 Set(name, setColour, requestedDepth);
170 (
"Optionally propagates down hierarchy to given depth.");
172 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
175 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
178 (
"Depth of propagation (-1 means unlimited depth).");
180 parameter =
new G4UIparameter(
"daughtersInvisible",
'b', omitable =
true);
200 G4int requestedDepth;
202 std::istringstream iss(newValue);
203 iss >> name >> requestedDepth >> daughtersInvisibleString;
204 G4bool daughtersInvisible =
207 if (requestedDepth !=0) {
210 G4cout <<
"Recursive application suppressed for this attribute."
216 setDaughtersInvisible(daughtersInvisible);
217 Set(name, setDaughtersInvisible, requestedDepth);
219 G4VViewer* pViewer = fpVisManager->GetCurrentViewer();
225 "Culling must be on - \"/vis/viewer/set/culling global true\" - to see effect."
239 (
"Forces auxiliary (soft) edges of logical volume(s) to be visible,"
240 "\nregardless of the view parameters.");
243 (
"Optionally propagates down hierarchy to given depth.");
245 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
248 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
251 (
"Depth of propagation (-1 means unlimited depth).");
253 parameter =
new G4UIparameter(
"forceAuxEdgeVisible",
'b', omitable =
true);
273 G4int requestedDepth;
275 std::istringstream iss(newValue);
276 iss >> name >> requestedDepth >> forceAuxEdgeVisibleString;
277 G4bool forceAuxEdgeVisible =
281 setForceAuxEdgeVisible(forceAuxEdgeVisible);
282 Set(name, setForceAuxEdgeVisible, requestedDepth);
292 (
"Forces number of line segments per circle, the precision with which a"
293 "\ncurved line or surface is represented by a polygon or polyhedron,"
294 "\nregardless of the view parameters.");
297 (
"Optionally propagates down hierarchy to given depth.");
299 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
302 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
305 (
"Depth of propagation (-1 means unlimited depth).");
307 parameter =
new G4UIparameter(
"lineSegmentsPerCircle",
'd', omitable =
true);
309 (
"<= 0 means not forced, i.e., under control of viewer.");
329 G4int requestedDepth;
330 G4int lineSegmentsPerCircle;
331 std::istringstream iss(newValue);
332 iss >> name >> requestedDepth >> lineSegmentsPerCircle;
335 Set(name, setForceLineSegmentsPerCircle, requestedDepth);
345 (
"Forces logical volume(s) always to be drawn solid (surface drawing),"
346 "\nregardless of the view parameters.");
349 (
"Optionally propagates down hierarchy to given depth.");
351 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
354 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
357 (
"Depth of propagation (-1 means unlimited depth).");
359 parameter =
new G4UIparameter(
"force",
'b', omitable =
true);
379 G4int requestedDepth;
381 std::istringstream iss(newValue);
382 iss >> name >> requestedDepth >> forceString;
386 Set(name, setForceSolid, requestedDepth);
396 (
"Forces logical volume(s) always to be drawn as wireframe,"
397 "\nregardless of the view parameters.");
400 (
"Optionally propagates down hierarchy to given depth.");
402 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
405 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
408 (
"Depth of propagation (-1 means unlimited depth).");
410 parameter =
new G4UIparameter(
"forceWireframe",
'b', omitable =
true);
430 G4int requestedDepth;
432 std::istringstream iss(newValue);
433 iss >> name >> requestedDepth >> forceWireframeString;
437 setForceWireframe(forceWireframe);
438 Set(name, setForceWireframe, requestedDepth);
450 (
"Optionally propagates down hierarchy to given depth.");
452 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
455 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
458 (
"Depth of propagation (-1 means unlimited depth).");
460 parameter =
new G4UIparameter(
"lineStyle",
's', omitable =
true);
481 G4int requestedDepth;
482 std::istringstream iss(newValue);
483 iss >> name >> requestedDepth >> lineStyleString;
490 Set(name, setLineStyle, requestedDepth);
502 (
"Optionally propagates down hierarchy to given depth.");
504 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
507 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
510 (
"Depth of propagation (-1 means unlimited depth).");
512 parameter =
new G4UIparameter(
"lineWidth",
'd', omitable =
true);
532 G4int requestedDepth;
534 std::istringstream iss(newValue);
535 iss >> name >> requestedDepth >> lineWidth;
538 Set(name, setLineWidth, requestedDepth);
550 (
"Optionally propagates down hierarchy to given depth.");
552 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
555 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
558 (
"Depth of propagation (-1 means unlimited depth).");
560 parameter =
new G4UIparameter(
"visibility",
'b', omitable =
true);
579 G4int requestedDepth;
581 std::istringstream iss(newValue);
582 iss >> name >> requestedDepth >> visibilityString;
586 Set(name, setVisibility, requestedDepth);
588 G4VViewer* pViewer = fpVisManager->GetCurrentViewer();
595 "Culling must be on - \"/vis/viewer/set/culling global true\" and"
596 "\n \"/vis/viewer/set/culling invisible true\" - to see effect."
608 SetLVVisAtts(pLV, setVisibility, 0, requestedDepth);
610 G4VViewer* pViewer = fpVisManager->GetCurrentViewer();
618 "Culling must be on - \"/vis/viewer/set/culling global true\" and"
619 "\n \"/vis/viewer/set/culling invisible true\" - to see effect."