Developer Documentation
PickingInterface Class Reference

Allow access to picking functions. More...

#include <OpenFlipper/BasePlugin/PickingInterface.hh>

Inheritance diagram for PickingInterface:
ComponentsPlugin HoleFillerPlugin MaterialPicker MouseAndKeyPlugin MovePlugin PolyLinePlugin PropertyVisPlugin RulerPlugin SelectionBasePlugin SkeletonEditingPlugin TopologyPlugin TypeLightPlugin ViewControlPlugin

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...
 

Detailed Description

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 81 of file PickingInterface.hh.

Member Function Documentation

virtual void PickingInterface::addHiddenPickMode ( const std::string &  _mode)
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.

Parameters
_modeIdentifier of Picking mode or "Separator" to add a Separator

Definition at line 97 of file PickingInterface.hh.

virtual void PickingInterface::addPickMode ( const std::string &  _mode)
inlinevirtualsignal

Add a new picking mode to the examiner.

Parameters
_modeIdentifier of Picking mode or "Separator" to add a Separator

Definition at line 87 of file PickingInterface.hh.

virtual void PickingInterface::removePickModeToolbar ( const std::string &  _mode)
inlinevirtual

Removes the additional toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters
_modeIdentifier of Picking mode

Definition at line 133 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeCursor ( const std::string &  _mode,
QCursor  _cursor 
)
inlinevirtual

Set the cursor of the given PickMode.

Set the cursor that should be used inside the pickMode

Parameters
_modeIdentifier of Picking mode
_cursorthe new cursor

Definition at line 106 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeMouseTracking ( const std::string &  _mode,
bool  _mouseTracking 
)
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)

Parameters
_modeIdentifier of Picking mode
_mouseTrackingnew state of mouseTracking

Definition at line 116 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeToolbar ( const std::string &  _mode,
QToolBar *  _toolbar 
)
inlinevirtual

Set the additional toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters
_modeIdentifier of Picking mode
_toolbarthe toolbar

Definition at line 125 of file PickingInterface.hh.

virtual void PickingInterface::slotPickModeChanged ( const std::string &  _mode)
inlineprivatevirtualslot

The pickingMode has changed.

This slot is called if the user changes the current picking mode

Parameters
_modeIdentifier of Picking mode

Reimplemented in ComponentsPlugin, and TypeLightPlugin.

Definition at line 142 of file PickingInterface.hh.


The documentation for this class was generated from the following file: