The user input filter of OCC viewports. The class can be used to introduce custom interactive operations in OCC viewer, e.g. manipulating IO. The filter receives events in priority to the viewport itself and can bypass some events if it provides custom handling. More...
#include <OCCViewer_ViewportInputFilter.h>

Public Member Functions | |
| OCCViewer_ViewportInputFilter (OCCViewer_ViewManager *, QObject *) | |
| Constructor. More... | |
| ~OCCViewer_ViewportInputFilter () | |
| Destructor. More... | |
| virtual void | setEnabled (const bool) |
| Enables or disables event processing within the viewer. More... | |
Protected Slots | |
| void | onViewCreated (SUIT_ViewWindow *) |
| Connects newly created within viewer to event processing. More... | |
| void | onViewRemoved (SUIT_ViewWindow *) |
| Disconnects view being removed from viewer. More... | |
Protected Member Functions | |
| virtual bool | mouseMove (QMouseEvent *, OCCViewer_ViewPort3d *)=0 |
| virtual bool | mousePress (QMouseEvent *, OCCViewer_ViewPort3d *)=0 |
| virtual bool | mouseRelease (QMouseEvent *, OCCViewer_ViewPort3d *)=0 |
| virtual bool | mouseDoubleClick (QMouseEvent *, OCCViewer_ViewPort3d *)=0 |
| virtual bool | keyPress (QKeyEvent *, OCCViewer_ViewPort3d *)=0 |
| virtual bool | keyRelease (QKeyEvent *, OCCViewer_ViewPort3d *)=0 |
| void | connectView (SUIT_ViewWindow *) |
| Connects view to event processing. More... | |
| void | disconnectView (SUIT_ViewWindow *) |
| Disconnects view to event processing. More... | |
| bool | eventFilter (QObject *, QEvent *) |
| Base-level implementation of event filtering. Routes user input events to associated implementation methods. More... | |
Protected Attributes | |
| OCCViewer_ViewManager * | myVM |
| OCCViewer_Viewer * | myViewer |
| bool | myIsEnabled |
The user input filter of OCC viewports. The class can be used to introduce custom interactive operations in OCC viewer, e.g. manipulating IO. The filter receives events in priority to the viewport itself and can bypass some events if it provides custom handling.
This class is abstract and required implementation of custom reaction on hooked viewport events. The role of the code behind this class is to properly embed the event filter into OCC viewer's structure.
| OCCViewer_ViewportInputFilter::OCCViewer_ViewportInputFilter | ( | OCCViewer_ViewManager * | theVM, |
| QObject * | theParent | ||
| ) |
Constructor.
| theVM | [in] the view manager to embed the filter into. |
| theParent | [in] the parent object. |
| OCCViewer_ViewportInputFilter::~OCCViewer_ViewportInputFilter | ( | ) |
Destructor.
References setEnabled().
|
protected |
Connects view to event processing.
| theView | [in] the view to connect. |
|
protected |
Disconnects view to event processing.
| theView | [in] the view to disconnect. |
|
protected |
Base-level implementation of event filtering. Routes user input events to associated implementation methods.
| theObject | [in] the filtered object. |
| theEvent | [in] the incoming event. |
References keyPress(), keyRelease(), mouseDoubleClick(), mouseMove(), mousePress(), and mouseRelease().
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedpure virtual |
Implemented in OCCViewer_ClipPlaneInteractor.
|
protectedslot |
Connects newly created within viewer to event processing.
| theView | [in] the view to connect. |
References connectView().
|
protectedslot |
Disconnects view being removed from viewer.
| theView | [in] the view to disconnect. |
References disconnectView().
|
virtual |
Enables or disables event processing within the viewer.
Reimplemented in OCCViewer_ClipPlaneInteractor.
References connectView(), disconnectView(), SUIT_ViewManager::getViewModel(), SUIT_ViewManager::getViews(), myIsEnabled, myViewer, myVM, onViewCreated(), and onViewRemoved().
|
protected |
|
protected |
|
protected |