![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for managing a clipping box. More...
#include <ecvAnnotationsTool.h>


Public Slots | |
| void | toggleInteractors (bool state) |
| void | toggleEditMode (bool state) |
Public Member Functions | |
| ecvAnnotationsTool (QWidget *parent) | |
| Default constructor. More... | |
| virtual | ~ecvAnnotationsTool () override |
| Default destructor. More... | |
| virtual bool | start () override |
| Starts process. More... | |
| virtual void | stop (bool state) override |
| Stops process/dialog. More... | |
| virtual bool | linkWith (QWidget *win) override |
| Links the overlay dialog with a MDI window. More... | |
| bool | setAnnotationsTool (ecvGenericAnnotationTool *annotationTool) |
| bool | addAssociatedEntity (ccHObject *anObject) |
| Adds an entity. More... | |
| void | releaseAssociatedEntities () |
| unsigned | getNumberOfAssociatedEntity () const |
| Returns the current number of associated entities. 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... | |
Protected Slots | |
| void | onShortcutTriggered (int) |
| To capture overridden shortcuts (pause button, etc.) More... | |
| void | importClassesFromFile () |
| void | toggleBox (bool) |
| void | toggleOrigin (bool dummy) |
| void | onNewMode () |
| void | onUnionMode () |
| void | onTrimMode () |
| void | onIntersectMode () |
| void | onLabelSelected () |
| void | onLabelChanged (int index) |
| void | onItemPicked (bool isPicked) |
| void | saveAnnotations () |
| void | reset () |
| void | closeDialog () |
| void | exportAnnotationToSF () |
| void | updateLabelsCombox (const std::vector< std::string > &labels) |
| void | shiftXMinus () |
| void | shiftXPlus () |
| void | shiftYMinus () |
| void | shiftYPlus () |
| void | shiftZMinus () |
| void | shiftZPlus () |
| void | setFrontView () |
| void | setBottomView () |
| void | setTopView () |
| void | setBackView () |
| void | setLeftView () |
| void | setRightView () |
Protected Slots inherited from ccOverlayDialog | |
| virtual void | onLinkedWindowDeletion (QObject *object=nullptr) |
| Slot called when the linked window is deleted (calls 'onClose') More... | |
Protected Member Functions | |
| void | shiftBox (unsigned char dim, bool minus) |
| Shift box. More... | |
| void | setView (CC_VIEW_ORIENTATION orientation) |
| Sets predefined view. More... | |
| ccBBox | getSelectedEntityBbox () |
Protected Member Functions inherited from ccOverlayDialog | |
| bool | eventFilter (QObject *obj, QEvent *e) override |
Protected Attributes | |
| ecvGenericAnnotationTool * | m_annotationTool |
| Annotation tool. More... | |
| ccBBox | m_box |
| bounding box More... | |
| ccHObject | m_entityContainer |
| Associated entities container. More... | |
| bool | m_disabledCombEvent |
| for solving dummy event trigger More... | |
| bool | m_editMode |
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... | |
Dialog for managing a clipping box.
Definition at line 28 of file ecvAnnotationsTool.h.
|
explicit |
Default constructor.
Definition at line 31 of file ecvAnnotationsTool.cpp.
References ccOverlayDialog::addOverridenShortcut(), closeDialog(), exportAnnotationToSF(), importClassesFromFile(), m_disabledCombEvent, onIntersectMode(), onLabelChanged(), onLabelSelected(), onNewMode(), onShortcutTriggered(), onTrimMode(), onUnionMode(), reset(), saveAnnotations(), setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), setTopView(), shiftXMinus(), shiftXPlus(), shiftYMinus(), shiftYPlus(), shiftZMinus(), shiftZPlus(), ccOverlayDialog::shortcutTriggered(), toggleBox(), toggleEditMode(), toggleInteractors(), and toggleOrigin().
|
overridevirtual |
Default destructor.
Definition at line 124 of file ecvAnnotationsTool.cpp.
References releaseAssociatedEntities().
| bool ecvAnnotationsTool::addAssociatedEntity | ( | ccHObject * | anObject | ) |
Adds an entity.
Definition at line 323 of file ecvAnnotationsTool.cpp.
References ccHObject::addChild(), ccHObject::DP_NONE, CVLog::Error(), ccHObject::getBB_recursive(), ccObject::isKindOf(), cloudViewer::BoundingBoxTpl< T >::isValid(), m_annotationTool, m_entityContainer, CV_TYPES::POINT_CLOUD, reset(), ccObject::setEnabled(), and ccDrawableObject::setVisible().
|
protectedslot |
Definition at line 462 of file ecvAnnotationsTool.cpp.
References stop().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 471 of file ecvAnnotationsTool.cpp.
References CVLog::Error(), ecvGenericAnnotationTool::getCurrentAnnotations(), ccHObject::getFirstChild(), ccEntityAction::importToSF(), m_annotationTool, m_entityContainer, CVLog::Print(), ccDrawableObject::showSF(), and CVLog::Warning().
Referenced by ecvAnnotationsTool().
| unsigned ecvAnnotationsTool::getNumberOfAssociatedEntity | ( | ) | const |
Returns the current number of associated entities.
Definition at line 351 of file ecvAnnotationsTool.cpp.
References ccHObject::getChildrenNumber(), and m_entityContainer.
Referenced by getSelectedEntityBbox().
|
protected |
Definition at line 513 of file ecvAnnotationsTool.cpp.
References ccHObject::getDisplayBB_recursive(), getNumberOfAssociatedEntity(), and m_entityContainer.
|
protectedslot |
Definition at line 254 of file ecvAnnotationsTool.cpp.
References ecvPS::CurrentPath(), ecvFileUtils::defaultDocPath(), CVTools::FromQString(), ecvGenericAnnotationTool::getAnnotationLabels(), ecvSettingManager::getValue(), ecvGenericAnnotationTool::loadClassesFromFile(), ecvPS::LoadFile(), m_annotationTool, ecvSettingManager::setValue(), and updateLabelsCombox().
Referenced by ecvAnnotationsTool().
|
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.
Definition at line 357 of file ecvAnnotationsTool.cpp.
References ccOverlayDialog::linkWith().
|
protectedslot |
Definition at line 198 of file ecvAnnotationsTool.cpp.
References ecvGenericAnnotationTool::intersectMode(), and m_annotationTool.
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 239 of file ecvAnnotationsTool.cpp.
Referenced by setAnnotationsTool().
|
protectedslot |
Definition at line 206 of file ecvAnnotationsTool.cpp.
References ecvColor::LookUpTable::at(), ecvColor::RgbTpl< Type >::b, ecvGenericAnnotationTool::changeAnnotationType(), ecvColor::RgbTpl< Type >::g, m_annotationTool, m_disabledCombEvent, m_editMode, ecvColor::RgbTpl< Type >::r, ecvGenericAnnotationTool::selectExistedAnnotation(), and ecvColor::white().
Referenced by ecvAnnotationsTool(), and onLabelSelected().
|
protectedslot |
Definition at line 204 of file ecvAnnotationsTool.cpp.
References onLabelChanged().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 180 of file ecvAnnotationsTool.cpp.
References m_annotationTool, and ecvGenericAnnotationTool::resetMode().
Referenced by ecvAnnotationsTool().
|
protectedslot |
To capture overridden shortcuts (pause button, etc.)
Definition at line 137 of file ecvAnnotationsTool.cpp.
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 192 of file ecvAnnotationsTool.cpp.
References m_annotationTool, and ecvGenericAnnotationTool::trimMode().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 186 of file ecvAnnotationsTool.cpp.
References m_annotationTool, and ecvGenericAnnotationTool::unionMode().
Referenced by ecvAnnotationsTool().
| void ecvAnnotationsTool::releaseAssociatedEntities | ( | ) |
Definition at line 319 of file ecvAnnotationsTool.cpp.
References m_entityContainer, and ccHObject::removeAllChildren().
Referenced by stop(), and ~ecvAnnotationsTool().
|
protectedslot |
Definition at line 452 of file ecvAnnotationsTool.cpp.
References cloudViewer::BoundingBoxTpl< T >::clear(), ccHObject::getBB_recursive(), ccHObject::getChildrenNumber(), m_annotationTool, m_box, m_entityContainer, and ecvGenericAnnotationTool::reset().
Referenced by addAssociatedEntity(), and ecvAnnotationsTool().
|
protectedslot |
Definition at line 248 of file ecvAnnotationsTool.cpp.
References ecvGenericAnnotationTool::exportAnnotations(), and m_annotationTool.
Referenced by ecvAnnotationsTool().
| bool ecvAnnotationsTool::setAnnotationsTool | ( | ecvGenericAnnotationTool * | annotationTool | ) |
Definition at line 126 of file ecvAnnotationsTool.cpp.
References m_annotationTool, ecvGenericAnnotationTool::objectPicked(), and onItemPicked().
|
protectedslot |
Definition at line 507 of file ecvAnnotationsTool.cpp.
References CC_BACK_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 503 of file ecvAnnotationsTool.cpp.
References CC_BOTTOM_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 505 of file ecvAnnotationsTool.cpp.
References CC_FRONT_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 509 of file ecvAnnotationsTool.cpp.
References CC_LEFT_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 511 of file ecvAnnotationsTool.cpp.
References CC_RIGHT_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 501 of file ecvAnnotationsTool.cpp.
References CC_TOP_VIEW, and setView().
Referenced by ecvAnnotationsTool().
|
protected |
Sets predefined view.
Definition at line 521 of file ecvAnnotationsTool.cpp.
References ecvDisplayTools::SetView().
Referenced by setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), and setTopView().
|
protected |
Shift box.
Definition at line 447 of file ecvAnnotationsTool.cpp.
Referenced by shiftXMinus(), shiftXPlus(), shiftYMinus(), shiftYPlus(), shiftZMinus(), and shiftZPlus().
|
inlineprotectedslot |
Definition at line 80 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
inlineprotectedslot |
Definition at line 81 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
inlineprotectedslot |
Definition at line 82 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
inlineprotectedslot |
Definition at line 83 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
inlineprotectedslot |
Definition at line 84 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
inlineprotectedslot |
Definition at line 85 of file ecvAnnotationsTool.h.
References shiftBox().
Referenced by ecvAnnotationsTool().
|
overridevirtual |
Starts process.
Reimplemented from ccOverlayDialog.
Definition at line 365 of file ecvAnnotationsTool.cpp.
References ecvGenericAnnotationTool::BOUNDINGBOX, CVLog::Error(), ecvGenericAnnotationTool::getAnnotationLabels(), ecvGenericAnnotationTool::getAnnotationMode(), ccHObject::getFirstChild(), m_annotationTool, m_entityContainer, ccOverlayDialog::m_processing, ecvGenericAnnotationTool::SEMANTICS, ecvGenericAnnotationTool::setInputCloud(), ccOverlayDialog::start(), ecvGenericAnnotationTool::start(), ccHObjectCaster::ToPointCloud(), and updateLabelsCombox().
|
overridevirtual |
Stops process/dialog.
Automatically emits the 'processFinished' signal (with input state as argument).
| accepted | process/dialog result |
Reimplemented from ccOverlayDialog.
Definition at line 404 of file ecvAnnotationsTool.cpp.
References m_annotationTool, releaseAssociatedEntities(), ecvGenericAnnotationTool::stop(), and ccOverlayDialog::stop().
Referenced by closeDialog().
|
protectedslot |
Definition at line 287 of file ecvAnnotationsTool.cpp.
References ecvGenericAnnotationTool::hideAnnotation(), m_annotationTool, ecvGenericAnnotationTool::showAnnotation(), ecvDisplayTools::UpdateScreen(), and CVLog::Warning().
Referenced by ecvAnnotationsTool().
|
slot |
Definition at line 355 of file ecvAnnotationsTool.cpp.
References m_editMode.
Referenced by ecvAnnotationsTool().
|
slot |
Definition at line 241 of file ecvAnnotationsTool.cpp.
References m_annotationTool, and ecvGenericAnnotationTool::toggleInteractor().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 303 of file ecvAnnotationsTool.cpp.
References ecvGenericAnnotationTool::hideOrigin(), m_annotationTool, ecvGenericAnnotationTool::showOrigin(), ecvDisplayTools::UpdateScreen(), and CVLog::Warning().
Referenced by ecvAnnotationsTool().
|
protectedslot |
Definition at line 422 of file ecvAnnotationsTool.cpp.
References ecvColor::LookUpTable::at(), ecvColor::RgbTpl< Type >::b, ecvColor::RgbTpl< Type >::g, m_disabledCombEvent, name, ecvColor::RgbTpl< Type >::r, CVTools::ToQString(), and ecvColor::white().
Referenced by importClassesFromFile(), and start().
|
protected |
Annotation tool.
Definition at line 102 of file ecvAnnotationsTool.h.
Referenced by addAssociatedEntity(), exportAnnotationToSF(), importClassesFromFile(), onIntersectMode(), onLabelChanged(), onNewMode(), onTrimMode(), onUnionMode(), reset(), saveAnnotations(), setAnnotationsTool(), start(), stop(), toggleBox(), toggleInteractors(), and toggleOrigin().
|
protected |
|
protected |
for solving dummy event trigger
Definition at line 113 of file ecvAnnotationsTool.h.
Referenced by ecvAnnotationsTool(), onLabelChanged(), and updateLabelsCombox().
|
protected |
Definition at line 115 of file ecvAnnotationsTool.h.
Referenced by onLabelChanged(), and toggleEditMode().
|
protected |
Associated entities container.
Definition at line 110 of file ecvAnnotationsTool.h.
Referenced by addAssociatedEntity(), exportAnnotationToSF(), getNumberOfAssociatedEntity(), getSelectedEntityBbox(), releaseAssociatedEntities(), reset(), and start().