![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for debugging contour extraction. More...
#include <ecvContourExtractorDlg.h>


Public Member Functions | |
| ccContourExtractorDlg (QWidget *parent=0) | |
| Default constructor. More... | |
| void | init () |
| Initializes the display. More... | |
| void | displayMessage (QString message, bool waitForUserConfirmation=false) |
| Display a new message. More... | |
| void | waitForUser (unsigned defaultDelay_ms=100) |
| Waits for user action. More... | |
| QMainWindow * | win () |
| Returns associated GL window. More... | |
| void | zoomOn (const ccBBox &bbox) |
| Zooms on a given 2D region (3D bouding-box considered in 2D only) More... | |
| void | refresh () |
| Forces refresh. More... | |
| void | addToDisplay (ccHObject *obj, bool noDependency=true) |
| Adds an entity to the (2D/3D) display. More... | |
| void | removFromDisplay (ccHObject *obj) |
| Removes an entity from the (2D/3D) display. More... | |
| bool | isSkipped () const |
| Returns whether the dialog has been 'skipped' or not. More... | |
Protected Slots | |
| void | onSkipButtonClicked () |
| When the skip button is clicked. More... | |
Protected Attributes | |
| bool | m_skipped |
| Skip flag. More... | |
| QEventLoop | m_loop |
| Local event loop. More... | |
Dialog for debugging contour extraction.
Definition at line 25 of file ecvContourExtractorDlg.h.
|
explicit |
Default constructor.
Definition at line 25 of file ecvContourExtractorDlg.cpp.
| void ccContourExtractorDlg::addToDisplay | ( | ccHObject * | obj, |
| bool | noDependency = true |
||
| ) |
Adds an entity to the (2D/3D) display.
Definition at line 83 of file ecvContourExtractorDlg.cpp.
References ecvDisplayTools::AddToOwnDB().
Referenced by ccContourExtractor::ExtractConcaveHull2D().
| void ccContourExtractorDlg::displayMessage | ( | QString | message, |
| bool | waitForUserConfirmation = false |
||
| ) |
Display a new message.
Definition at line 102 of file ecvContourExtractorDlg.cpp.
References m_skipped, and waitForUser().
Referenced by ccContourExtractor::ExtractConcaveHull2D().
| void ccContourExtractorDlg::init | ( | ) |
Initializes the display.
Definition at line 32 of file ecvContourExtractorDlg.cpp.
References ecvColor::black(), ecvDisplayTools::DisplayOverlayEntities(), ecvDisplayTools::GetDisplayParameters(), ecvDisplayTools::GetMainWindow(), ecvDisplayTools::INTERACT_CLICKABLE_ITEMS, ecvDisplayTools::INTERACT_PAN, ecvDisplayTools::INTERACT_ZOOM_CAMERA, m_loop, ecvDisplayTools::NO_PICKING, onSkipButtonClicked(), params, ecvDisplayTools::SetDisplayParameters(), ecvDisplayTools::SetInteractionMode(), ecvDisplayTools::SetPerspectiveState(), ecvDisplayTools::SetPickingMode(), and ecvColor::white().
Referenced by ccContourExtractor::ExtractConcaveHull2D().
| bool ccContourExtractorDlg::isSkipped | ( | ) | const |
Returns whether the dialog has been 'skipped' or not.
Definition at line 79 of file ecvContourExtractorDlg.cpp.
Referenced by ccContourExtractor::ExtractConcaveHull2D().
|
protectedslot |
When the skip button is clicked.
Definition at line 109 of file ecvContourExtractorDlg.cpp.
References m_skipped.
Referenced by init().
| void ccContourExtractorDlg::refresh | ( | ) |
Forces refresh.
Definition at line 96 of file ecvContourExtractorDlg.cpp.
References m_skipped, and ecvDisplayTools::RedrawDisplay().
Referenced by ccContourExtractor::ExtractConcaveHull2D().
| void ccContourExtractorDlg::removFromDisplay | ( | ccHObject * | obj | ) |
Removes an entity from the (2D/3D) display.
Definition at line 90 of file ecvContourExtractorDlg.cpp.
References ecvDisplayTools::RemoveFromOwnDB().
Referenced by ccContourExtractor::ExtractConcaveHull2D().
| void ccContourExtractorDlg::waitForUser | ( | unsigned | defaultDelay_ms = 100 | ) |
Waits for user action.
Definition at line 115 of file ecvContourExtractorDlg.cpp.
References m_loop, m_skipped, and cloudViewer::utility::Sleep().
Referenced by displayMessage().
|
inline |
Returns associated GL window.
Definition at line 42 of file ecvContourExtractorDlg.h.
References ecvDisplayTools::GetMainWindow().
| void ccContourExtractorDlg::zoomOn | ( | const ccBBox & | bbox | ) |
Zooms on a given 2D region (3D bouding-box considered in 2D only)
Definition at line 68 of file ecvContourExtractorDlg.cpp.
References Vector3Tpl< double >::fromArray(), cloudViewer::BoundingBoxTpl< T >::getCenter(), cloudViewer::BoundingBoxTpl< T >::getDiagVec(), ecvDisplayTools::GetScreenRect(), max(), ecvDisplayTools::SetCameraPos(), ecvDisplayTools::SetPixelSize(), Tuple3Tpl< Type >::u, Tuple3Tpl< Type >::x, and Tuple3Tpl< Type >::y.
Referenced by ccContourExtractor::ExtractConcaveHull2D().
|
protected |
Local event loop.
Definition at line 67 of file ecvContourExtractorDlg.h.
Referenced by init(), and waitForUser().
|
protected |
Skip flag.
Definition at line 65 of file ecvContourExtractorDlg.h.
Referenced by displayMessage(), onSkipButtonClicked(), refresh(), and waitForUser().