|
CEDRIC
Revision_backup-2009-02
|
Change ROTATE mouse mode of MyCameraWidget. More...
#include <EventCameraWidget.h>
Public Member Functions | |
| EventCameraWidget (QWidget *parent=0) | |
| virtual | ~EventCameraWidget () |
| virtual void | setSceneData (osg::Node *node) |
| Override to append rotation node. More... | |
Public Member Functions inherited from MyCameraWidget | |
| MyCameraWidget (QWidget *parent=0) | |
| virtual | ~MyCameraWidget () |
| int | getProjection () const |
| Get projection setting of MyCamera member (see MyCamera::Projection for supported projections) More... | |
| int | getMouseMode () const |
| Get current mouse action mode. More... | |
| MyCamera * | getMyCamera () |
| Access to MyCamera class (e.g. for switching between orthographic and perspective projection) More... | |
Public Member Functions inherited from OsgViewerWidget | |
| OsgViewerWidget (QWidget *parent=0) | |
| virtual | ~OsgViewerWidget () |
| virtual bool | paintGL2PS (const char *filename, int format) |
| Render scene to postscript using GL2PS library. More... | |
| bool | isContinuousUpdateForced () const |
| Returns true if continous update was forced (i.e. continuous redraw cannot be disable via toggleContinousUpdate(false)) More... | |
| virtual void | frame (double simulationTime=USE_REFERENCE_TIME) |
| virtual void | requestRedraw () |
| virtual void | requestContinuousUpdate (bool needed=true) |
| virtual void | requestWarpPointer (float x, float y) |
Public Member Functions inherited from OsgAdapterWidget | |
| OsgAdapterWidget (QWidget *parent=0) | |
| virtual | ~OsgAdapterWidget () |
| osgViewer::GraphicsWindow * | getGraphicsWindow () |
| const osgViewer::GraphicsWindow * | getGraphicsWindow () const |
Protected Member Functions | |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| Override Qt mouse events (extend MyCameraWidget implementation) More... | |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | wheelEvent (QWheelEvent *event) |
Protected Member Functions inherited from MyCameraWidget | |
| virtual void | paintGL () |
| Override OsgViewerWidget::paintGL() for overpainting via OpenGL. More... | |
| virtual void | resizeGL (int width, int height) |
| Override OsgAdapterWidget::resizeGL() for changing HUD aspect ratio also. More... | |
| osg::Node * | createHUD (osgText::Text *text) |
| Helper function which creates a simple heads-up-display which is later used to show name of highlighted Pickable. More... | |
| osg::Node * | createAxesView () |
| Helper function which creates a little 3d view in the lower left of fixed size showing the 3d coordinate axes. More... | |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
Protected Member Functions inherited from OsgAdapterWidget | |
| void | init () |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| osgGA::GUIEventAdapter * | makeEventAdapter (QMouseEvent *event, osgGA::GUIEventAdapter::EventType type) |
Additional Inherited Members | |
Public Types inherited from MyCameraWidget | |
| enum | MouseMode { ROTATE, RUBBERBAND, SELECT } |
| Different action modes for mouse. More... | |
Public Slots inherited from MyCameraWidget | |
| void | setProjection (int proj) |
| void | setMouseMode (int mode) |
| Set mouse action mode (see enum MouseMode for a list of supported action modes) More... | |
Public Slots inherited from OsgViewerWidget | |
| virtual void | idle (double simulationTime=USE_REFERENCE_TIME) |
| Do event and update traversal. More... | |
| void | triggerRedraw () |
| Trigger a redraw in 1/60 sec. More... | |
| void | toggleContinuousUpdate (bool activate) |
| Toggle continous redraw (usefull for animation) More... | |
| void | forceContinuousUpdate (bool force) |
| Forces continous redraw (i.e. continuous redraw cannot be disabled via toggleContinousUpdate(false)) More... | |
Signals inherited from MyCameraWidget | |
| void | positionChanged (float x, float y, float z) |
| Unprojected mouse position. More... | |
| void | focusChanged (bool) |
| On focusInEvent/focusOutEvent this signal is emitted respectively with true/false as parameter. More... | |
| void | doubleClicked (Selectable *selectable) |
| Emitted when in SELECTION mode currently highlighted Selectable is double-clicked. More... | |
Signals inherited from OsgAdapterWidget | |
| void | processEvents () |
Public Attributes inherited from OsgViewerWidget | |
| unsigned long | idleCount |
Protected Slots inherited from MyCameraWidget | |
| void | mouseOverNode (osg::Node *node) |
| Corresponding signal from PickingHandler is connected here. More... | |
| virtual void | focusInEvent (QFocusEvent *) |
| Override QWidget::focusInEvent() to notice that we received focus. More... | |
| virtual void | focusOutEvent (QFocusEvent *) |
| Override QWidget::focusOutEvent() to notice that we lost focus. More... | |
| void | myCameraChanged () |
Protected Attributes inherited from MyCameraWidget | |
| MyCamera * | m_myCamera |
| int | m_mouseMode |
| bool | m_rubberbandActive |
| ClipRect | m_rubberbandRect |
| osg::ref_ptr< osg::Node > | m_hud |
| osg::ref_ptr< PickingHandler > | m_pickingHandler |
More... | |
| osg::ref_ptr < osg::MatrixTransform > | m_axes |
| osg::ref_ptr< osg::Node > | m_axesView |
Protected Attributes inherited from OsgAdapterWidget | |
| osg::ref_ptr < osgViewer::GraphicsWindowEmbedded > | _gw |
Change ROTATE mouse mode of MyCameraWidget.
| EventCameraWidget::EventCameraWidget | ( | QWidget * | parent = 0 | ) |
|
inlinevirtual |
|
protectedvirtual |
Override Qt mouse events (extend MyCameraWidget implementation)
Reimplemented from MyCameraWidget.
References MyCameraWidget::m_mouseMode, MyCameraWidget::mouseMoveEvent(), OsgViewerWidget::requestRedraw(), and MyCameraWidget::ROTATE.
|
protectedvirtual |
Reimplemented from MyCameraWidget.
References MyCameraWidget::m_mouseMode, MyCameraWidget::mousePressEvent(), and MyCameraWidget::ROTATE.
|
protectedvirtual |
Reimplemented from MyCameraWidget.
References MyCameraWidget::m_mouseMode, MyCameraWidget::mouseReleaseEvent(), and MyCameraWidget::ROTATE.
|
virtual |
Override to append rotation node.
Reimplemented from MyCameraWidget.
References MyCameraWidget::setSceneData().
Referenced by EventViewerWidget::setScenegraph().
|
protectedvirtual |
Reimplemented from MyCameraWidget.
References MyCameraWidget::wheelEvent().
1.8.6