PickingInterface Class Reference

Allow access to picking functions. More...

#include <PickingInterface.hh>

Inheritance diagram for PickingInterface:
Inheritance graph
[legend]

List of all members.

Signals

virtual void addPickMode (const std::string)
 Add a new picking mode to the examiner.
virtual void addHiddenPickMode (const std::string)
 Add a new picking mode to the examiner which will be invisible.
virtual void setPickModeCursor (const std::string, QCursor)
 Set the cursor of the given PickMode.
virtual void setPickModeMouseTracking (const std::string, bool)
 Set mouse tracking for the given PickMode.
virtual void setPickModeToolbar (const std::string, QToolBar *)
 Set the additinal toolbar of the given PickMode.
virtual void removePickModeToolbar (const std::string)
 Removes the additinal toolbar of the given PickMode.

Public Member Functions

virtual ~PickingInterface ()
 Destructor.

Private Slots

virtual void slotPickModeChanged (const std::string &)
 The pickingMode has changed.

Detailed Description

Allow access to picking functions.

Interface Class which allows access to picking functions.

Read tutorial Implementing mouse and keyboard interaction for an example of how to use mouse picking.

Definition at line 69 of file PickingInterface.hh.


Member Function Documentation

virtual void PickingInterface::addHiddenPickMode ( const std::string   )  [inline, virtual, signal]

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 menuentry yourself if you want to switch to the picking mode provided here.

Parameters:
_mode Identifier of Picking mode or "Separator" to add a Separator

Reimplemented in MouseAndKeyPlugin.

Definition at line 85 of file PickingInterface.hh.

virtual void PickingInterface::addPickMode ( const std::string   )  [inline, virtual, signal]

Add a new picking mode to the examiner.

Parameters:
_mode Identifier of Picking mode or "Separator" to add a Separator

Reimplemented in MouseAndKeyPlugin.

Definition at line 75 of file PickingInterface.hh.

virtual void PickingInterface::removePickModeToolbar ( const std::string   )  [inline, virtual, signal]

Removes the additinal toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters:
_mode Identifier of Picking mode

Definition at line 121 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeCursor ( const std::string  ,
QCursor   
) [inline, virtual, signal]

Set the cursor of the given PickMode.

Set the cursor that should be used inside the pickMode

Parameters:
_mode Identifier of Picking mode
_cursor the new cursor

Definition at line 94 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeMouseTracking ( const std::string  ,
bool   
) [inline, virtual, signal]

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:
_mode Identifier of Picking mode
_mouseTracking new state of mouseTracking

Definition at line 104 of file PickingInterface.hh.

virtual void PickingInterface::setPickModeToolbar ( const std::string  ,
QToolBar *   
) [inline, virtual, signal]

Set the additinal toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters:
_mode Identifier of Picking mode
_toolbar the toolbar

Definition at line 113 of file PickingInterface.hh.

virtual void PickingInterface::slotPickModeChanged ( const std::string &   )  [inline, private, virtual, slot]

The pickingMode has changed.

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

Parameters:
_mode Identifier of Picking mode

Reimplemented in MouseAndKeyPlugin.

Definition at line 130 of file PickingInterface.hh.


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .