![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ecvPointPickingGenericInterface.h>


Public Member Functions | |
| ccPointPickingGenericInterface (ccPickingHub *pickingHub, QWidget *parent=nullptr) | |
| Default constructor. More... | |
| ~ccPointPickingGenericInterface () override=default | |
| Destructor. More... | |
| bool | linkWith (QWidget *win) override |
| Links the overlay dialog with a MDI window. More... | |
| bool | start () override |
| Starts process. More... | |
| void | stop (bool state) override |
| Stops process/dialog. More... | |
| void | onItemPicked (const PickedItem &pi) override |
| Inherited from ccPickingListener. More... | |
Public Member Functions inherited from ccOverlayDialog | |
| ccOverlayDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::FramelessWindowHint|Qt::Tool) | |
| Default constructor. More... | |
| ~ccOverlayDialog () override | |
| Destructor. More... | |
| void | reject () override |
| void | addOverridenShortcut (Qt::Key key) |
| bool | started () const |
| Returns whether the tool is currently started or not. More... | |
Public Member Functions inherited from ccPickingListener | |
| virtual | ~ccPickingListener ()=default |
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) override |
Protected Attributes | |
| ccPickingHub * | m_pickingHub |
| Picking hub. More... | |
Protected Attributes inherited from ccOverlayDialog | |
| QWidget * | m_associatedWin |
| Associated (MDI) window. More... | |
| bool | m_processing |
| Running/processing state. More... | |
| QList< int > | m_overriddenKeys |
| Overridden keys. More... | |
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... | |
| void | shown () |
| Signal emitted when a 'show' event is detected. More... | |
Protected Slots inherited from ccOverlayDialog | |
| virtual void | onLinkedWindowDeletion (QObject *object=nullptr) |
| Slot called when the linked window is deleted (calls 'onClose') More... | |
Generic interface for any dialog/graphical interactor that relies on point picking.
Definition at line 28 of file ecvPointPickingGenericInterface.h.
|
explicit |
Default constructor.
Definition at line 24 of file ecvPointPickingGenericInterface.cpp.
References m_pickingHub.
|
overridedefault |
Destructor.
|
overridevirtual |
Links the overlay dialog with a MDI window.
Warning: link can't be modified while dialog is displayed/process is running!
Reimplemented from ccOverlayDialog.
Reimplemented in ccPointPropertiesDlg.
Definition at line 30 of file ecvPointPickingGenericInterface.cpp.
References ccOverlayDialog::linkWith(), m_pickingHub, and ccPickingHub::removeListener().
Referenced by ccPointPropertiesDlg::linkWith().
|
overridevirtual |
Inherited from ccPickingListener.
Implements ccPickingListener.
Definition at line 73 of file ecvPointPickingGenericInterface.cpp.
References ccPickingListener::PickedItem::clickPoint, ccPickingListener::PickedItem::entity, ccObject::isKindOf(), ccPickingListener::PickedItem::itemIndex, ccOverlayDialog::m_processing, CV_TYPES::MESH, CV_TYPES::POINT_CLOUD, processPickedPoint(), and CVLog::Warning().
|
protectedpure virtual |
Generic method to process picked points.
| cloud | picked point cloud |
| pointIndex | point index in cloud |
| x | picked pixel X position |
| y | picked pixel Y position |
Implemented in ccPointPropertiesDlg, and ccPointListPickingDlg.
Referenced by onItemPicked().
|
overridevirtual |
Starts process.
Reimplemented from ccOverlayDialog.
Reimplemented in ccPointPropertiesDlg.
Definition at line 45 of file ecvPointPickingGenericInterface.cpp.
References ccPickingHub::addListener(), CVLog::Error(), m_pickingHub, ecvDisplayTools::POINT_PICKING, and ccOverlayDialog::start().
Referenced by ccPointPropertiesDlg::start().
|
overridevirtual |
Stops process/dialog.
Automatically emits the 'processFinished' signal (with input state as argument).
| accepted | process/dialog result |
Reimplemented from ccOverlayDialog.
Reimplemented in ccPointPropertiesDlg.
Definition at line 64 of file ecvPointPickingGenericInterface.cpp.
References m_pickingHub, ccPickingHub::removeListener(), and ccOverlayDialog::stop().
Referenced by ccPointListPickingDlg::applyAndExit(), ccPointListPickingDlg::cancelAndExit(), and ccPointPropertiesDlg::stop().
|
protected |
Picking hub.
Definition at line 60 of file ecvPointPickingGenericInterface.h.
Referenced by ccPointPickingGenericInterface(), linkWith(), start(), and stop().