|
ParaView
|
Utility to switch interactor styles in 3D views. More...
#include <pqPickHelper.h>
Public Types | |
| enum | Modes { INTERACT, PICK } |
Public Slots | |
| void | setView (pqView *) |
| Set active view. | |
| void | beginPick () |
| Use beginPick()/endPick() when the helper should enter into a picking mode. | |
| void | endPick () |
| void | pick () |
| Instantly picks and fires pickFinished(). | |
| void | DisabledPush () |
| Called to disable picking. | |
| void | DisabledPop () |
| Called to pop disabling of picking. | |
Signals | |
| void | pickFinished (double x, double y, double z) |
| fired after mouse up in pick mode | |
| void | picking (bool) |
| fired by beginPick() and endPick(). | |
| void | startPicking () |
| void | stopPicking () |
| void | enabled (bool enable) |
| void | modeChanged (int mode) |
| Fired with pick mode changes. | |
Public Member Functions | |
| pqPickHelper (QObject *parent=NULL) | |
| virtual | ~pqPickHelper () |
| void | processEvents (unsigned long event) |
| pqRenderView * | getRenderView () const |
| Returns the currently picked render view. | |
Protected Member Functions | |
| int | setPickOn (int mode) |
| int | setPickOff () |
Protected Attributes | |
| int | Mode |
| int | Xe |
| int | Ye |
| int | DisableCount |
Utility to switch interactor styles in 3D views.
pqPickHelper standardizes the mechanism by which 3D views are switched between interaction and world point picking modes. this is used to pick center of camera rotation and will be used in location probe
Definition at line 49 of file pqPickHelper.h.
| enum pqPickHelper::Modes |
Definition at line 64 of file pqPickHelper.h.
| pqPickHelper::pqPickHelper | ( | QObject * | parent = NULL | ) |
| virtual pqPickHelper::~pqPickHelper | ( | ) | [virtual] |
| void pqPickHelper::processEvents | ( | unsigned long | event | ) |
| pqRenderView* pqPickHelper::getRenderView | ( | ) | const |
Returns the currently picked render view.
| void pqPickHelper::setView | ( | pqView * | ) | [slot] |
Set active view.
If a view has been set previously, this method ensures that it is not in pick mode.
| void pqPickHelper::beginPick | ( | ) | [slot] |
Use beginPick()/endPick() when the helper should enter into a picking mode.
For instantaneous picking, simply call pick().
| void pqPickHelper::endPick | ( | ) | [slot] |
| void pqPickHelper::pick | ( | ) | [slot] |
Instantly picks and fires pickFinished().
| void pqPickHelper::DisabledPush | ( | ) | [slot] |
Called to disable picking.
| void pqPickHelper::DisabledPop | ( | ) | [slot] |
Called to pop disabling of picking.
If there are as many DisabledPop() as DisabledPush(), the picking will be enabled.
fired after mouse up in pick mode
| void pqPickHelper::picking | ( | bool | ) | [signal] |
fired by beginPick() and endPick().
| void pqPickHelper::startPicking | ( | ) | [signal] |
| void pqPickHelper::stopPicking | ( | ) | [signal] |
| void pqPickHelper::enabled | ( | bool | enable | ) | [signal] |
| void pqPickHelper::modeChanged | ( | int | mode | ) | [signal] |
Fired with pick mode changes.
mode is enum Modes{...}.
| int pqPickHelper::setPickOff | ( | ) | [protected] |
int pqPickHelper::Mode [protected] |
Definition at line 109 of file pqPickHelper.h.
int pqPickHelper::Xe [protected] |
Definition at line 110 of file pqPickHelper.h.
int pqPickHelper::Ye [protected] |
Definition at line 110 of file pqPickHelper.h.
int pqPickHelper::DisableCount [protected] |
Definition at line 111 of file pqPickHelper.h.
1.7.5.1