47 for (
size_t iLV = 0; iLV < pLVStore->size(); iLV++ ) {
50 if (logVolName == requestedName) found =
true;
51 if (requestedName ==
"all" || logVolName == requestedName) {
55 if (requestedName !=
"all" && !found) {
57 G4cerr <<
"ERROR: Logical volume \"" << requestedName
58 <<
"\" not found in logical volume store." <<
G4endl;
64 const auto& runDurationModelList = scene->GetRunDurationModelList();
65 for (
const auto& sceneModel : runDurationModelList) {
66 auto model = sceneModel.fpModel;
71 scene->CalculateExtent();
88 *newVisAtts = *oldVisAtts;
90 setFunction(newVisAtts);
95 <<
"\": setting vis attributes:";
97 G4cout <<
"\nwas: " << *oldVisAtts;
99 G4cout <<
"\n(no old attributes)";
101 G4cout <<
"\nnow: " << *newVisAtts
104 if (requestedDepth < 0 || depth < requestedDepth) {
106 for (
G4int i = 0; i < nDaughters; ++i) {
108 setFunction, ++depth, requestedDepth);
122 (
"Optionally propagates down hierarchy to given depth.");
124 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
127 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
130 (
"Depth of propagation (-1 means unlimited depth).");
135 (
"Red component or a string, e.g., \"blue\", in which case succeeding colour components are ignored.");
137 parameter =
new G4UIparameter(
"green",
'd', omitable =
true);
143 parameter =
new G4UIparameter(
"opacity",
'd', omitable =
true);
162 G4int requestedDepth;
164 std::istringstream iss(newValue);
165 iss >>
name >> requestedDepth >> redOrString >> green >> blue >> opacity;
169 Set(
name, setColour, requestedDepth);
181 (
"Optionally propagates down hierarchy to given depth.");
183 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
186 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
189 (
"Depth of propagation (-1 means unlimited depth).");
191 parameter =
new G4UIparameter(
"daughtersInvisible",
'b', omitable =
true);
211 G4int requestedDepth;
213 std::istringstream iss(newValue);
214 iss >>
name >> requestedDepth >> daughtersInvisibleString;
215 G4bool daughtersInvisible =
218 if (requestedDepth !=0) {
221 G4cout <<
"Recursive application suppressed for this attribute."
227 setDaughtersInvisible(daughtersInvisible);
228 Set(
name, setDaughtersInvisible, requestedDepth);
236 "Culling must be on - \"/vis/viewer/set/culling global true\" - to see effect."
250 (
"Forces auxiliary (soft) edges of logical volume(s) to be visible,"
251 "\nregardless of the view parameters.");
254 (
"Optionally propagates down hierarchy to given depth.");
256 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
259 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
262 (
"Depth of propagation (-1 means unlimited depth).");
264 parameter =
new G4UIparameter(
"forceAuxEdgeVisible",
'b', omitable =
true);
284 G4int requestedDepth;
286 std::istringstream iss(newValue);
287 iss >>
name >> requestedDepth >> forceAuxEdgeVisibleString;
288 G4bool forceAuxEdgeVisible =
292 setForceAuxEdgeVisible(forceAuxEdgeVisible);
293 Set(
name, setForceAuxEdgeVisible, requestedDepth);
303 (
"Forces logical volume(s) always to be drawn as a cloud of points,"
304 "\nregardless of the view parameters.");
307 (
"Optionally propagates down hierarchy to given depth.");
309 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
312 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
315 (
"Depth of propagation (-1 means unlimited depth).");
317 parameter =
new G4UIparameter(
"forceCloud",
'b', omitable =
true);
320 parameter =
new G4UIparameter(
"nPoints",
'd', omitable =
true);
322 (
"<= 0 means under control of viewer.");
342 G4int requestedDepth, nPoints;
343 std::istringstream iss(newValue);
344 iss >>
name >> requestedDepth >> forceCloudString >> nPoints;
348 Set(
name, setForceCloud, requestedDepth);
358 (
"Forces number of line segments per circle, the precision with which a"
359 "\ncurved line or surface is represented by a polygon or polyhedron,"
360 "\nregardless of the view parameters.");
363 (
"Optionally propagates down hierarchy to given depth.");
365 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
368 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
371 (
"Depth of propagation (-1 means unlimited depth).");
373 parameter =
new G4UIparameter(
"lineSegmentsPerCircle",
'd', omitable =
true);
375 (
"<= 0 means not forced, i.e., under control of viewer.");
395 G4int requestedDepth;
396 G4int lineSegmentsPerCircle;
397 std::istringstream iss(newValue);
398 iss >>
name >> requestedDepth >> lineSegmentsPerCircle;
401 setForceLineSegmentsPerCircle(lineSegmentsPerCircle);
402 Set(
name, setForceLineSegmentsPerCircle, requestedDepth);
412 (
"Forces logical volume(s) always to be drawn solid (surface drawing),"
413 "\nregardless of the view parameters.");
416 (
"Optionally propagates down hierarchy to given depth.");
418 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
421 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
424 (
"Depth of propagation (-1 means unlimited depth).");
426 parameter =
new G4UIparameter(
"force",
'b', omitable =
true);
446 G4int requestedDepth;
448 std::istringstream iss(newValue);
449 iss >>
name >> requestedDepth >> forceString;
453 Set(
name, setForceSolid, requestedDepth);
463 (
"Forces logical volume(s) always to be drawn as wireframe,"
464 "\nregardless of the view parameters.");
467 (
"Optionally propagates down hierarchy to given depth.");
469 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
472 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
475 (
"Depth of propagation (-1 means unlimited depth).");
477 parameter =
new G4UIparameter(
"forceWireframe",
'b', omitable =
true);
497 G4int requestedDepth;
499 std::istringstream iss(newValue);
500 iss >>
name >> requestedDepth >> forceWireframeString;
504 setForceWireframe(forceWireframe);
505 Set(
name, setForceWireframe, requestedDepth);
517 (
"Optionally propagates down hierarchy to given depth.");
519 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
522 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
525 (
"Depth of propagation (-1 means unlimited depth).");
527 parameter =
new G4UIparameter(
"lineStyle",
's', omitable =
true);
548 G4int requestedDepth;
549 std::istringstream iss(newValue);
550 iss >>
name >> requestedDepth >> lineStyleString;
557 Set(
name, setLineStyle, requestedDepth);
569 (
"Optionally propagates down hierarchy to given depth.");
571 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
574 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
577 (
"Depth of propagation (-1 means unlimited depth).");
579 parameter =
new G4UIparameter(
"lineWidth",
'd', omitable =
true);
599 G4int requestedDepth;
601 std::istringstream iss(newValue);
602 iss >>
name >> requestedDepth >> lineWidth;
605 Set(
name, setLineWidth, requestedDepth);
617 (
"Optionally propagates down hierarchy to given depth.");
619 parameter =
new G4UIparameter (
"logical-volume-name",
's', omitable =
true);
622 parameter =
new G4UIparameter(
"depth",
'd', omitable =
true);
625 (
"Depth of propagation (-1 means unlimited depth).");
627 parameter =
new G4UIparameter(
"visibility",
'b', omitable =
true);
646 G4int requestedDepth;
648 std::istringstream iss(newValue);
649 iss >>
name >> requestedDepth >> visibilityString;
653 Set(
name, setVisibility, requestedDepth);
662 "Culling must be on - \"/vis/viewer/set/culling global true\" and"
663 "\n \"/vis/viewer/set/culling invisible true\" - to see effect."
685 "Culling must be on - \"/vis/viewer/set/culling global true\" and"
686 "\n \"/vis/viewer/set/culling invisible true\" - to see effect."
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
const G4VisAttributes * GetVisAttributes() const
size_t GetNoDaughters() const
G4VPhysicalVolume * GetDaughter(const G4int i) const
void SetVisAttributes(const G4VisAttributes *pVA)
const G4String & GetName() const
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
static G4bool ConvertToBool(const char *st)
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
void SetDefaultValue(const char *theDefaultValue)
void SetGuidance(const char *theGuidance)
void SetParameterCandidates(const char *theString)
G4LogicalVolume * GetLogicalVolume() const
const G4ViewParameters & GetViewParameters() const
void SetLVVisAtts(G4LogicalVolume *, const G4VVisCommandGeometrySetFunction &, G4int depth, G4int requestedDepth)
void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction &, G4int requestedDepth)
static std::map< G4LogicalVolume *, const G4VisAttributes * > fVisAttsMap
void ConvertToColour(G4Colour &colour, const G4String &redOrString, G4double green, G4double blue, G4double opacity)
static G4VisManager * fpVisManager
G4bool IsCullingInvisible() const
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometrySetColour()
G4VisCommandGeometrySetColour()
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometrySetDaughtersInvisible()
G4VisCommandGeometrySetDaughtersInvisible()
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandGeometrySetForceAuxEdgeVisible()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetForceAuxEdgeVisible()
virtual ~G4VisCommandGeometrySetForceCloud()
G4VisCommandGeometrySetForceCloud()
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometrySetForceLineSegmentsPerCircle()
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandGeometrySetForceLineSegmentsPerCircle()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetForceSolid()
virtual ~G4VisCommandGeometrySetForceSolid()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandGeometrySetForceWireframe()
G4VisCommandGeometrySetForceWireframe()
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometrySetLineStyle()
G4VisCommandGeometrySetLineStyle()
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandGeometrySetLineWidth()
virtual ~G4VisCommandGeometrySetLineWidth()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandGeometrySetVisibility()
void SetNewValueOnLV(G4LogicalVolume *pLV, G4int, G4bool)
G4VisCommandGeometrySetVisibility()
G4VViewer * GetCurrentViewer() const
const G4SceneList & GetSceneList() const
static Verbosity GetVerbosity()
const char * name(G4int ptype)