Developer Documentation
|
Allow access to picking functions. More...
#include <OpenFlipper/BasePlugin/PickingInterface.hh>
Signals | |
virtual void | addPickMode (const std::string &_mode) |
Add a new picking mode to the examiner. More... | |
Public Member Functions | |
virtual void | addHiddenPickMode (const std::string &_mode) |
Add a new picking mode to the examiner which will be invisible. More... | |
virtual void | setPickModeCursor (const std::string &_mode, QCursor _cursor) |
Set the cursor of the given PickMode. More... | |
virtual void | setPickModeMouseTracking (const std::string &_mode, bool _mouseTracking) |
Set mouse tracking for the given PickMode. More... | |
virtual void | setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar) |
Set the additional toolbar of the given PickMode. More... | |
virtual void | removePickModeToolbar (const std::string &_mode) |
Removes the additional toolbar of the given PickMode. More... | |
virtual | ~PickingInterface () |
Destructor. | |
Private Slots | |
virtual void | slotPickModeChanged (const std::string &_mode) |
The pickingMode has changed. More... | |
Allow access to picking functions.
Detailed description
Using this interface you can add different pick modes to OpenFlipper and separate different mouse Interactions depending on the current mode.
Read tutorial Implementing mouse and keyboard interaction for an example of how to use mouse picking.
Definition at line 62 of file PickingInterface.hh.
|
inlinevirtual |
Add a new picking mode to the examiner which will be invisible.
The added PickMode will not appear in the context menus Picking menu. You have to provide a button or menu entry yourself if you want to switch to the picking mode provided here.
_mode | Identifier of Picking mode or "Separator" to add a Separator |
Definition at line 78 of file PickingInterface.hh.
|
inlinevirtualsignal |
Add a new picking mode to the examiner.
_mode | Identifier of Picking mode or "Separator" to add a Separator |
Definition at line 68 of file PickingInterface.hh.
|
inlinevirtual |
Removes the additional toolbar of the given PickMode.
Set the additional toolbar that should be shown in the pickMode
_mode | Identifier of Picking mode |
Definition at line 114 of file PickingInterface.hh.
|
inlinevirtual |
Set the cursor of the given PickMode.
Set the cursor that should be used inside the pickMode
_mode | Identifier of Picking mode |
_cursor | the new cursor |
Definition at line 87 of file PickingInterface.hh.
|
inlinevirtual |
Set mouse tracking for the given PickMode.
Enable mouseTracking for the given PickMode. When MouseTracking is enabled you receive mouseMove events also when no button is pressed (via MouseInterface)
_mode | Identifier of Picking mode |
_mouseTracking | new state of mouseTracking |
Definition at line 97 of file PickingInterface.hh.
|
inlinevirtual |
Set the additional toolbar of the given PickMode.
Set the additional toolbar that should be shown in the pickMode
_mode | Identifier of Picking mode |
_toolbar | the toolbar |
Definition at line 106 of file PickingInterface.hh.
|
inlineprivatevirtualslot |
The pickingMode has changed.
This slot is called if the user changes the current picking mode
_mode | Identifier of Picking mode |
Reimplemented in ComponentsPlugin, and TypeLightPlugin.
Definition at line 123 of file PickingInterface.hh.