61 #include "QtBaseViewer.hh"
62 #include <QInputDialog>
102 if ((_event->modifiers() & Qt::ControlModifier) &&
103 (_event->modifiers() & Qt::AltModifier))
106 switch (_event->key())
111 bool save(glareaGrabbed_);
115 if(save) releaseGLArea();
117 double val = QInputDialog::getDouble(
this,
"Eye Dist",
"Eye Dist:",
122 if(save) grabGLArea();
137 bool save(glareaGrabbed_);
141 if(save) releaseGLArea();
143 double val = QInputDialog::getDouble(
this,
"Focal Dist",
"Focal Dist:",
148 if(save) grabGLArea();
160 switch (_event->key())
163 case Qt::Key_ScrollLock:
165 if (!updateLocked_) {
168 std::cerr <<
"Display update locked\n";
173 std::cerr <<
"Display update un-locked\n";
double focalDist_
Set eye distance for stereo.
Namespace providing different geometric functions concerning angles.
virtual void glKeyPressEvent(QKeyEvent *)
Get keyPress events from the glArea.
virtual void unlockAndUpdate()
void disableKeyHandling(bool _state)
Enable or disable internal Key handling.
virtual void glKeyReleaseEvent(QKeyEvent *_event)
Get keyRelease events from the glArea.
void signalKeyPressEvent(QKeyEvent *)
Key Event received.
double eyeDist_
Set eye distance for stereo.
bool disableKeyHandling_
Enable or disable internal Key handling.
virtual void lockUpdate()
bool keyHandlingState()
get the current key handling state.
virtual bool viewKeyPressEvent(QKeyEvent *_event)=0
Handle key events in view mode.
virtual void updateGL()
Redraw scene. Triggers paint event for updating the view (cf. drawNow()).
ActionMode actionMode() const
get action mode