ParaView
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
pqPickHelper Class Reference

Utility to switch interactor styles in 3D views. More...

#include <pqPickHelper.h>

List of all members.

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)
pqRenderViewgetRenderView () 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

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
INTERACT 
PICK 

Definition at line 64 of file pqPickHelper.h.


Constructor & Destructor Documentation

pqPickHelper::pqPickHelper ( QObject *  parent = NULL)
virtual pqPickHelper::~pqPickHelper ( ) [virtual]

Member Function Documentation

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.

void pqPickHelper::pickFinished ( double  x,
double  y,
double  z 
) [signal]

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::setPickOn ( int  mode) [protected]
int pqPickHelper::setPickOff ( ) [protected]

Member Data Documentation

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.

Definition at line 111 of file pqPickHelper.h.


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