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";
virtual bool viewKeyPressEvent(QKeyEvent *_event)=0
Handle key events in view mode.
double eyeDist_
Set eye distance for stereo.
void signalKeyPressEvent(QKeyEvent *)
Key Event received.
virtual void lockUpdate()
virtual void glKeyPressEvent(QKeyEvent *)
Get keyPress events from the glArea.
virtual void unlockAndUpdate()
virtual void updateGL()
Redraw scene. Triggers paint event for updating the view (cf. drawNow()).
bool disableKeyHandling_
Enable or disable internal Key handling.
virtual void glKeyReleaseEvent(QKeyEvent *_event)
Get keyRelease events from the glArea.
void disableKeyHandling(bool _state)
Enable or disable internal Key handling.
Namespace providing different geometric functions concerning angles.
ActionMode actionMode() const
get action mode
bool keyHandlingState()
get the current key handling state.
double focalDist_
Set eye distance for stereo.