qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
ccPointPickingGenericInterface Class Referenceabstract

#include <ccPointPickingGenericInterface.h>

Inheritance diagram for ccPointPickingGenericInterface:
Inheritance graph
[legend]
Collaboration diagram for ccPointPickingGenericInterface:
Collaboration graph
[legend]

Public Member Functions

 ccPointPickingGenericInterface (QWidget *parent=0)
 Default constructor.
 
virtual ~ccPointPickingGenericInterface ()
 Destructor.
 
virtual bool linkWith (ccGLWindow *win)
 Links the overlay dialog with a MDI window. More...
 
virtual bool start ()
 Starts process. More...
 
virtual void stop (bool state)
 Stops process/dialog. More...
 
- Public Member Functions inherited from ccOverlayDialog
 ccOverlayDialog (QWidget *parent=0)
 Default constructor.
 
virtual ~ccOverlayDialog ()
 Destructor.
 
virtual void reject ()
 
void addOverridenShortcut (Qt::Key key)
 Adds a keyboard shortcut (single key) that will be overridden from the associated window. More...
 

Protected Slots

virtual void handlePickedPoint (int cloudID, unsigned pointIdx, int x, int y)
 Slot to handle directly a picked point (OpenGL based picking)
 
- Protected Slots inherited from ccOverlayDialog
virtual void onLinkedWindowDeletion (QObject *object=0)
 Slot called when the linked window is deleted (calls 'onClose')
 

Protected Member Functions

virtual void processPickedPoint (ccPointCloud *cloud, unsigned pointIndex, int x, int y)=0
 Generic method to process picked points. More...
 
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e)
 

Additional Inherited Members

- Signals inherited from ccOverlayDialog
void processFinished (bool accepted)
 Signal emitted when process is finished. More...
 
void shortcutTriggered (int key)
 Signal emitted when an overridden key shortcut is pressed. More...
 
- Protected Attributes inherited from ccOverlayDialog
ccGLWindow * m_associatedWin
 Associated (MDI) window.
 
bool m_processing
 Running/processing state.
 
QList< int > m_overriddenKeys
 Overridden keys.
 

Detailed Description

Generic interface for any dialog/graphical interactor that relies on point picking.

Member Function Documentation

bool ccPointPickingGenericInterface::linkWith ( ccGLWindow *  win)
virtual

Links the overlay dialog with a MDI window.

Warning: link can't be modified while dialog is displayed/process is running!

Returns
success

Reimplemented from ccOverlayDialog.

Reimplemented in ccPointPropertiesDlg.

virtual void ccPointPickingGenericInterface::processPickedPoint ( ccPointCloud *  cloud,
unsigned  pointIndex,
int  x,
int  y 
)
protectedpure virtual

Generic method to process picked points.

Parameters
cloudpicked point cloud
pointIndexpoint index in cloud
xpicked pixel X position
ypicked pixel Y position

Implemented in ccPointPropertiesDlg, and ccPointListPickingDlg.

bool ccPointPickingGenericInterface::start ( )
virtual

Starts process.

Returns
success

Reimplemented from ccOverlayDialog.

Reimplemented in ccPointPropertiesDlg.

void ccPointPickingGenericInterface::stop ( bool  accepted)
virtual

Stops process/dialog.

Automatically emits the 'processFinished' signal (with input state as argument).

Parameters
acceptedprocess/dialog result

Reimplemented from ccOverlayDialog.

Reimplemented in ccPointPropertiesDlg.


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