#include <G4VisCommandsCompound.hh>
Definition at line 47 of file G4VisCommandsCompound.hh.
G4VisCommandDrawView::G4VisCommandDrawView |
( |
| ) |
|
Definition at line 113 of file G4VisCommandsCompound.cc.
115 fpCommand =
new G4UIcommand(
"/vis/drawView",
this);
117 (
"Draw view from this angle, etc.");
119 parameter =
new G4UIparameter(
"theta-degrees",
'd', omitable =
true);
120 parameter -> SetDefaultValue(0.);
121 fpCommand -> SetParameter (parameter);
122 parameter =
new G4UIparameter(
"phi-degrees",
'd', omitable =
true);
123 parameter -> SetDefaultValue(0.);
124 fpCommand -> SetParameter (parameter);
125 parameter =
new G4UIparameter(
"pan-right",
'd', omitable =
true);
126 parameter -> SetDefaultValue(0.);
127 fpCommand -> SetParameter (parameter);
128 parameter =
new G4UIparameter(
"pan-up",
'd', omitable =
true);
129 parameter -> SetDefaultValue(0.);
130 fpCommand -> SetParameter (parameter);
131 parameter =
new G4UIparameter(
"pan-unit",
's', omitable =
true);
132 parameter -> SetDefaultValue(
"cm");
133 fpCommand -> SetParameter (parameter);
134 parameter =
new G4UIparameter(
"zoom-factor",
'd', omitable =
true);
135 parameter -> SetDefaultValue(1.);
136 fpCommand -> SetParameter (parameter);
137 parameter =
new G4UIparameter(
"dolly",
'd', omitable =
true);
138 parameter -> SetDefaultValue(0.);
139 fpCommand -> SetParameter (parameter);
140 parameter =
new G4UIparameter(
"dolly-unit",
's', omitable =
true);
141 parameter -> SetDefaultValue(
"cm");
142 fpCommand -> SetParameter (parameter);
void SetGuidance(const char *aGuidance)
G4VisCommandDrawView::~G4VisCommandDrawView |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 149 of file G4VisCommandsCompound.cc.
154 if (!currentViewer) {
157 "WARNING: G4VisCommandsDrawView::SetNewValue: no current viewer."
171 std::istringstream is(newValue);
172 is >> thetaDeg >> phiDeg >> panRight >> panUp >> panUnit
173 >> zoomFactor >> dolly >> dollyUnit;
178 if (keepVerbose >= 2 ||
187 G4String(
"/vis/viewer/set/viewpointThetaPhi " + thetaDeg +
" " + phiDeg +
" deg"));
189 G4String(
"/vis/viewer/panTo " + panRight +
" " + panUp +
" " + panUnit));
191 G4String(
"/vis/viewer/zoomTo " + zoomFactor));
196 G4String(
"/vis/viewer/dollyTo " + dolly +
" " + dollyUnit));
const G4ViewParameters & GetViewParameters() const
void SetViewParameters(const G4ViewParameters &vp)
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
void SetAutoRefresh(G4bool)
static Verbosity GetVerbosity()
G4VViewer * GetCurrentViewer() const
G4bool IsAutoRefresh() const
G4int ApplyCommand(const char *aCommand)
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: