50G4OpenGLXmViewerMessenger::G4OpenGLXmViewerMessenger()
55 fpDirectory->
SetGuidance(
"G4OpenGLXmViewer commands.");
58 fpDirectorySet->
SetGuidance(
"G4OpenGLXmViewer set commands.");
60 fpCommandSetDollyHigh =
62 fpCommandSetDollyHigh->
SetGuidance(
"Higher limit of dolly slider.");
65 fpCommandSetDollyLow =
67 fpCommandSetDollyLow->
SetGuidance(
"Lower limit of dolly slider.");
72 fpCommandSetPanHigh->
SetGuidance(
"Higher limit of pan slider.");
75 fpCommandSetRotationHigh =
77 fpCommandSetRotationHigh->
SetGuidance(
"Higher limit of rotation slider.");
78 fpCommandSetRotationHigh->
SetParameterName(
"rotation-high", omitable =
false);
80 fpCommandSetZoomHigh =
82 fpCommandSetZoomHigh->
SetGuidance(
"Higher limit of zoom slider.");
87 fpCommandSetZoomLow->
SetGuidance(
"Lower limit of zoom slider.");
93 delete fpCommandSetZoomLow;
94 delete fpCommandSetZoomHigh;
95 delete fpCommandSetRotationHigh;
96 delete fpCommandSetPanHigh;
97 delete fpCommandSetDollyLow;
98 delete fpCommandSetDollyHigh;
99 delete fpDirectorySet;
112 "G4OpenGLXmViewerMessenger::SetNewValue: No current viewer."
113 "\n \"/vis/open\", or similar, to get one."
122 "G4OpenGLXmViewerMessenger::SetNewValue: Current viewer is not of type"
123 "\n OGLIXm or OGLSXm. Use \"/vis/viewer/select\" or \"/vis/open\"."
128 G4bool panningControlPanel =
true;
129 G4bool rotationControlPanel =
true;
131 if (command == fpCommandSetDollyHigh)
150 panningControlPanel =
false;
154 else if (command == fpCommandSetDollyLow)
173 panningControlPanel =
false;
177 else if (command == fpCommandSetPanHigh)
188 panningControlPanel =
false;
192 else if (command == fpCommandSetRotationHigh)
204 rotationControlPanel =
false;
208 else if (command == fpCommandSetZoomHigh)
228 panningControlPanel =
false;
232 else if (command == fpCommandSetZoomLow)
252 panningControlPanel =
false;
256 if (!panningControlPanel)
259 "G4OpenGLXmViewerMessenger::SetNewValue: pull down panning"
260 "\n control panel and re-issue command."
265 if (!rotationControlPanel)
268 "G4OpenGLXmViewerMessenger::SetNewValue: pull down rotation"
269 "\n control panel and re-issue command."
G4GLOB_DLL std::ostream G4cout
void SetMinValue(G4double)
void SetInitialValue(G4double)
void SetMaxValue(G4double)
static G4OpenGLXmViewerMessenger * GetInstance()
void SetNewValue(G4UIcommand *, G4String)
~G4OpenGLXmViewerMessenger()
G4OpenGLXmSliderBar * fppanning_slider
G4OpenGLXmSliderBar * fprotation_slider
G4OpenGLXmSliderBar * fpzoom_slider
G4OpenGLXmSliderBar * fpdolly_slider
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4double GetNewDoubleValue(const char *paramString)
void SetGuidance(const char *aGuidance)
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
G4double GetZoomFactor() const
void SetDolly(G4double dolly)
void SetZoomFactor(G4double zoomFactor)
G4double GetDolly() const
G4VViewer * GetCurrentViewer() const
static G4VisManager * GetInstance()