55 #include "QtBaseViewer.hh" 56 #include <QInputDialog> 96 if ((_event->modifiers() & Qt::ControlModifier) &&
97 (_event->modifiers() & Qt::AltModifier))
100 switch (_event->key())
105 bool save(glareaGrabbed_);
109 if(save) releaseGLArea();
111 double val = QInputDialog::getDouble(
this,
"Eye Dist",
"Eye Dist:",
116 if(save) grabGLArea();
131 bool save(glareaGrabbed_);
135 if(save) releaseGLArea();
137 double val = QInputDialog::getDouble(
this,
"Focal Dist",
"Focal Dist:",
142 if(save) grabGLArea();
154 switch (_event->key())
157 case Qt::Key_ScrollLock:
159 if (!updateLocked_) {
162 std::cerr <<
"Display update locked\n";
167 std::cerr <<
"Display update un-locked\n";
Namespace providing different geometric functions concerning angles.
double eyeDist_
Set eye distance for stereo.
virtual void unlockAndUpdate()
virtual void glKeyReleaseEvent(QKeyEvent *_event)
Get keyRelease events from the glArea.
double focalDist_
Set eye distance for stereo.
virtual void glKeyPressEvent(QKeyEvent *)
Get keyPress events from the glArea.
void disableKeyHandling(bool _state)
Enable or disable internal Key handling.
void signalKeyPressEvent(QKeyEvent *)
Key Event received.
virtual void updateGL()
Redraw scene. Triggers paint event for updating the view (cf. drawNow()).
ActionMode actionMode() const
get action mode
virtual bool viewKeyPressEvent(QKeyEvent *_event)=0
Handle key events in view mode.
bool keyHandlingState()
get the current key handling state.
virtual void lockUpdate()
bool disableKeyHandling_
Enable or disable internal Key handling.