45 (
"(DTREE) Creates a scene consisting of this physical volume and"
46 "\n produces a representation of the geometry hieracrhy.");
49 parameter =
new G4UIparameter(
"physical-volume-name",
's', omitable =
true);
50 parameter -> SetDefaultValue(
"world");
52 parameter =
new G4UIparameter(
"system",
's', omitable =
true);
53 parameter -> SetDefaultValue(
"ATree");
64 std::istringstream is(newValue);
65 is >> pvname >> system;
75 if (keepVerbose >= 2 ||
101 (
"Draw view from this angle, etc.");
103 parameter =
new G4UIparameter(
"theta-degrees",
'd', omitable =
true);
104 parameter -> SetDefaultValue(0.);
106 parameter =
new G4UIparameter(
"phi-degrees",
'd', omitable =
true);
107 parameter -> SetDefaultValue(0.);
109 parameter =
new G4UIparameter(
"pan-right",
'd', omitable =
true);
110 parameter -> SetDefaultValue(0.);
112 parameter =
new G4UIparameter(
"pan-up",
'd', omitable =
true);
113 parameter -> SetDefaultValue(0.);
115 parameter =
new G4UIparameter(
"pan-unit",
's', omitable =
true);
116 parameter -> SetDefaultValue(
"cm");
118 parameter =
new G4UIparameter(
"zoom-factor",
'd', omitable =
true);
119 parameter -> SetDefaultValue(1.);
121 parameter =
new G4UIparameter(
"dolly",
'd', omitable =
true);
122 parameter -> SetDefaultValue(0.);
124 parameter =
new G4UIparameter(
"dolly-unit",
's', omitable =
true);
125 parameter -> SetDefaultValue(
"cm");
138 if (!currentViewer) {
141 "WARNING: G4VisCommandsDrawView::SetNewValue: no current viewer."
155 std::istringstream is(newValue);
156 is >> thetaDeg >> phiDeg >> panRight >> panUp >> panUnit
157 >> zoomFactor >> dolly >> dollyUnit;
162 if (keepVerbose >= 2 ||
171 G4String(
"/vis/viewer/set/viewpointThetaPhi " + thetaDeg +
" " + phiDeg +
" deg"));
173 G4String(
"/vis/viewer/panTo " + panRight +
" " + panUp +
" " + panUnit));
175 G4String(
"/vis/viewer/zoomTo " + zoomFactor));
180 G4String(
"/vis/viewer/dollyTo " + dolly +
" " + dollyUnit));
190 (
"Creates a scene containing this physical volume and asks the"
191 "\ncurrent viewer to draw it. The scene becomes current.");
193 (
"If physical-volume-name is \"world\" (the default), the main geometry"
194 "\ntree (material world) is drawn. If \"worlds\", all worlds - material"
195 "\nworld and parallel worlds, if any - are drawn. Otherwise a search of"
196 "\nall worlds is made, taking the first matching occurence only. To see"
197 "\na representation of the geometry hierarchy of the worlds, try"
198 "\n\"/vis/drawTree [worlds]\" or one of the driver/browser combinations"
199 "\nthat have the required functionality, e.g., HepRep");
220 static G4bool warned =
false;
223 "NOTE: For systems which are not \"auto-refresh\" you will need to"
224 "\n issue \"/vis/viewer/refresh\" or \"/vis/viewer/flush\"."
236 (
"Creates a scene handler ready for drawing.");
238 (
"The scene handler becomes current (the name is auto-generated).");
240 parameter =
new G4UIparameter(
"graphics-system-name",
's', omitable =
false);
244 for (
size_t igslist = 0; igslist < gslist.size(); igslist++) {
246 const G4String& nickname = gslist[igslist]->GetNickname();
251 candidates += nickname;
255 candidates = candidates.
strip();
258 parameter =
new G4UIparameter(
"window-size-hint",
's', omitable =
true);
260 (
"integer (pixels) for square window placed by window manager or"
261 " X-Windows-type geometry string, e.g. 600x600-100+100");
271 G4String systemName, windowSizeHint;
272 std::istringstream is(newValue);
273 is >> systemName >> windowSizeHint;
277 if (keepVerbose >= 2 ||
292 (
"Draws logical volume with Boolean components, voxels and readout geometry.");
294 (
"Creates a scene consisting of this logical volume and asks the"
295 "\n current viewer to draw it to the specified depth of descent"
296 "\n showing boolean components (if any), voxels (if any)"
297 "\n and readout geometry (if any), under control of the appropriate flag.");
299 (
"Note: voxels are not constructed until start of run - /run/beamOn.");
302 parameter =
new G4UIparameter(
"logical-volume-name",
's', omitable =
false);
304 parameter =
new G4UIparameter(
"depth-of-descent",
'i', omitable =
true);
307 parameter =
new G4UIparameter(
"booleans-flag",
'b', omitable =
true);
310 parameter =
new G4UIparameter(
"voxels-flag",
'b', omitable =
true);
313 parameter =
new G4UIparameter(
"readout-flag",
'b', omitable =
true);
316 parameter =
new G4UIparameter(
"axes-flag",
'b', omitable =
true);
318 parameter -> SetGuidance (
"Set \"false\" to suppress axes.");
339 static G4bool warned =
false;
342 "NOTE: For systems which are not \"auto-refresh\" you will need to"
343 "\n issue \"/vis/viewer/refresh\" or \"/vis/viewer/flush\"."
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
const G4String & GetName() const
void SetParameter(G4UIparameter *const newParameter)
virtual ~G4VisCommandOpen()
void SetCurrentSceneHandler(G4VSceneHandler *)
G4String strip(G4int strip_Type=trailing, char c=' ')
void SetParameterCandidates(const char *theString)
virtual ~G4VisCommandDrawVolume()
const G4ViewParameters & GetViewParameters() const
void SetDefaultValue(const char *theDefaultValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetViewParameters(const G4ViewParameters &vp)
G4VGraphicsSystem * GetCurrentGraphicsSystem() const
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetCurrentScene(G4Scene *)
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
virtual ~G4VisCommandDrawView()
G4GLOB_DLL std::ostream G4cout
void SetGuidance(const char *aGuidance)
void SetCurrentGraphicsSystem(G4VGraphicsSystem *)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetCurrentViewer(G4VViewer *)
virtual ~G4VisCommandSpecify()
void SetAutoRefresh(G4bool)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetDefaultValue(const char *defVal)
G4VSceneHandler * GetCurrentSceneHandler() const
static Verbosity GetVerbosity()
virtual ~G4VisCommandDrawTree()
G4VViewer * GetCurrentViewer() const
G4UIcmdWithAString * fpCommand
void SetGuidance(const char *theGuidance)
const G4GraphicsSystemList & GetAvailableGraphicsSystems()
G4bool IsAutoRefresh() const
G4int ApplyCommand(const char *aCommand)
G4Scene * GetCurrentScene() const
static G4VisManager * fpVisManager