![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Generic overlay dialog interface. More...
#include <ecvOverlayDialog.h>
Signals | |
| 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... | |
Public Member Functions | |
| ccOverlayDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::FramelessWindowHint|Qt::Tool) | |
| Default constructor. More... | |
| ~ccOverlayDialog () override | |
| Destructor. More... | |
| virtual bool | linkWith (QWidget *win) |
| Links the overlay dialog with a MDI window. More... | |
| virtual bool | start () |
| Starts process. More... | |
| virtual void | stop (bool accepted) |
| Stops process/dialog. More... | |
| void | reject () override |
| void | addOverridenShortcut (Qt::Key key) |
| bool | started () const |
| Returns whether the tool is currently started or not. More... | |
Protected Slots | |
| virtual void | onLinkedWindowDeletion (QObject *object=nullptr) |
| Slot called when the linked window is deleted (calls 'onClose') More... | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *e) override |
Protected Attributes | |
| QWidget * | m_associatedWin |
| Associated (MDI) window. More... | |
| bool | m_processing |
| Running/processing state. More... | |
| QList< int > | m_overriddenKeys |
| Overridden keys. More... | |
Generic overlay dialog interface.
|
explicit |
Default constructor.
|
override |
Destructor.
References onLinkedWindowDeletion().
| void ccOverlayDialog::addOverridenShortcut | ( | Qt::Key | key | ) |
Adds a keyboard shortcut (single key) that will be overridden from the associated window When an overridden key is pressed, the shortcutTriggered(int) signal is emitted.
References m_overriddenKeys.
Referenced by ccCompassDlg::ccCompassDlg(), ccGraphicalSegmentationTool::ccGraphicalSegmentationTool(), ccGraphicalTransformationTool::ccGraphicalTransformationTool(), ccTracePolylineTool::ccTracePolylineTool(), ecvAnnotationsTool::ecvAnnotationsTool(), and ecvMeasurementTool::ecvMeasurementTool().
|
overrideprotected |
References e, m_overriddenKeys, shortcutTriggered(), and shown().
|
virtual |
Links the overlay dialog with a MDI window.
Warning: link can't be modified while dialog is displayed/process is running!
Reimplemented in ccGraphicalSegmentationTool, ecvAnimationParamDlg, ccPointPairRegistrationDlg, ecvCameraParamEditDlg, ecvMeasurementTool, ecvAnnotationsTool, ccPointPickingGenericInterface, ccTracePolylineTool, ecvFilterTool, ecvFilterByLabelDlg, ccPointPropertiesDlg, and ccGraphicalTransformationTool.
References m_associatedWin, m_processing, onLinkedWindowDeletion(), and CVLog::Warning().
Referenced by ccMPlaneDlgController::ccMPlaneDlgController(), qCloudLayers::doAction(), ccCompass::doAction(), ccGraphicalTransformationTool::linkWith(), ecvFilterByLabelDlg::linkWith(), ecvFilterTool::linkWith(), ccPointPickingGenericInterface::linkWith(), ccTracePolylineTool::linkWith(), ecvAnnotationsTool::linkWith(), ecvMeasurementTool::linkWith(), ccPointPairRegistrationDlg::linkWith(), ecvCameraParamEditDlg::linkWith(), ecvAnimationParamDlg::linkWith(), ccGraphicalSegmentationTool::linkWith(), onLinkedWindowDeletion(), and stop().
|
protectedvirtualslot |
Slot called when the linked window is deleted (calls 'onClose')
References linkWith(), m_processing, and stop().
Referenced by linkWith(), and ~ccOverlayDialog().
|
signal |
Signal emitted when process is finished.
| accepted | specifies how the process finished (accepted or not) |
Referenced by stop().
|
override |
References stop().
|
signal |
Signal emitted when an overridden key shortcut is pressed.
See ccOverlayDialog::addOverridenShortcut
Referenced by ccCompassDlg::ccCompassDlg(), ccGraphicalSegmentationTool::ccGraphicalSegmentationTool(), ccGraphicalTransformationTool::ccGraphicalTransformationTool(), ccTracePolylineTool::ccTracePolylineTool(), ecvAnnotationsTool::ecvAnnotationsTool(), ecvMeasurementTool::ecvMeasurementTool(), and eventFilter().
|
signal |
Signal emitted when a 'show' event is detected.
Referenced by eventFilter(), and MainWindow::registerOverlayDialog().
|
virtual |
Starts process.
Reimplemented in ccGraphicalSegmentationTool, ccCloudLayersDlg, ecvAnimationParamDlg, ccPointPairRegistrationDlg, ecvMeasurementTool, ccPointPickingGenericInterface, ccTracePolylineTool, ecvCameraParamEditDlg, ecvFilterTool, ecvAnnotationsTool, ccGraphicalTransformationTool, ecvFilterByLabelDlg, and ccPointPropertiesDlg.
References m_processing.
Referenced by ccCompass::enableMapMode(), ecvFilterByLabelDlg::start(), ccGraphicalTransformationTool::start(), ecvAnnotationsTool::start(), ecvFilterTool::start(), ecvCameraParamEditDlg::start(), ccPointPickingGenericInterface::start(), ccTracePolylineTool::start(), ecvMeasurementTool::start(), ccPointPairRegistrationDlg::start(), ecvAnimationParamDlg::start(), ccCloudLayersDlg::start(), ccGraphicalSegmentationTool::start(), and ccCompass::startMeasuring().
|
inline |
Returns whether the tool is currently started or not.
Referenced by MainWindow::onItemPicked().
|
virtual |
Stops process/dialog.
Automatically emits the 'processFinished' signal (with input state as argument).
| accepted | process/dialog result |
Reimplemented in ccPointPairRegistrationDlg, ecvMeasurementTool, ccPointPickingGenericInterface, ecvFilterTool, ecvAnnotationsTool, ccGraphicalTransformationTool, ecvFilterByLabelDlg, ccPointPropertiesDlg, ccGraphicalSegmentationTool, ccCloudLayersDlg, and ccTracePolylineTool.
References linkWith(), m_processing, and processFinished().
Referenced by ccCompass::enableMeasureMode(), ccMPlaneDlgController::onCloseButtonPressed(), onLinkedWindowDeletion(), reject(), ecvFilterByLabelDlg::stop(), ccGraphicalTransformationTool::stop(), ecvAnnotationsTool::stop(), ecvFilterTool::stop(), ccPointPickingGenericInterface::stop(), ccTracePolylineTool::stop(), ecvMeasurementTool::stop(), ccPointPairRegistrationDlg::stop(), ccCloudLayersDlg::stop(), ccGraphicalSegmentationTool::stop(), and ccCompass::stopMeasuring().
|
protected |
Associated (MDI) window.
Referenced by ecvAnimationParamDlg::enableListener(), ccPointPairRegistrationDlg::init(), linkWith(), ecvCameraParamEditDlg::linkWith(), ecvAnimationParamDlg::linkWith(), ecvCameraParamEditDlg::onItemPicked(), ecvAnimationParamDlg::onItemPicked(), ecvCameraParamEditDlg::pickPointAsPivot(), ecvCameraParamEditDlg::pivotChanged(), ecvAnimationParamDlg::processPickedItem(), ecvCameraParamEditDlg::processPickedItem(), and ecvCameraParamEditDlg::updateViewMode().
|
protected |
Overridden keys.
Referenced by addOverridenShortcut(), and eventFilter().
|
protected |
Running/processing state.
Referenced by linkWith(), ccPointPickingGenericInterface::onItemPicked(), ecvMeasurementTool::onItemPicked(), onLinkedWindowDeletion(), ccGraphicalTransformationTool::start(), ecvAnnotationsTool::start(), start(), ecvFilterTool::start(), ecvCameraParamEditDlg::start(), ecvMeasurementTool::start(), ecvAnimationParamDlg::start(), and stop().