ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvAnnotationsTool Class Reference

Dialog for managing a clipping box. More...

#include <ecvAnnotationsTool.h>

Inheritance diagram for ecvAnnotationsTool:
Collaboration diagram for ecvAnnotationsTool:

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

ecvGenericAnnotationToolm_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...
 

Detailed Description

Dialog for managing a clipping box.

Definition at line 28 of file ecvAnnotationsTool.h.

Constructor & Destructor Documentation

◆ ecvAnnotationsTool()

◆ ~ecvAnnotationsTool()

ecvAnnotationsTool::~ecvAnnotationsTool ( )
overridevirtual

Default destructor.

Definition at line 124 of file ecvAnnotationsTool.cpp.

References releaseAssociatedEntities().

Member Function Documentation

◆ addAssociatedEntity()

bool ecvAnnotationsTool::addAssociatedEntity ( ccHObject anObject)

◆ closeDialog

void ecvAnnotationsTool::closeDialog ( )
protectedslot

Definition at line 462 of file ecvAnnotationsTool.cpp.

References stop().

Referenced by ecvAnnotationsTool().

◆ exportAnnotationToSF

◆ getNumberOfAssociatedEntity()

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().

◆ getSelectedEntityBbox()

ccBBox ecvAnnotationsTool::getSelectedEntityBbox ( )
protected

◆ importClassesFromFile

◆ linkWith()

bool ecvAnnotationsTool::linkWith ( QWidget *  win)
overridevirtual

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.

Definition at line 357 of file ecvAnnotationsTool.cpp.

References ccOverlayDialog::linkWith().

◆ onIntersectMode

void ecvAnnotationsTool::onIntersectMode ( )
protectedslot

◆ onItemPicked

void ecvAnnotationsTool::onItemPicked ( bool  isPicked)
protectedslot

Definition at line 239 of file ecvAnnotationsTool.cpp.

Referenced by setAnnotationsTool().

◆ onLabelChanged

◆ onLabelSelected

void ecvAnnotationsTool::onLabelSelected ( )
protectedslot

Definition at line 204 of file ecvAnnotationsTool.cpp.

References onLabelChanged().

Referenced by ecvAnnotationsTool().

◆ onNewMode

void ecvAnnotationsTool::onNewMode ( )
protectedslot

Definition at line 180 of file ecvAnnotationsTool.cpp.

References m_annotationTool, and ecvGenericAnnotationTool::resetMode().

Referenced by ecvAnnotationsTool().

◆ onShortcutTriggered

void ecvAnnotationsTool::onShortcutTriggered ( int  key)
protectedslot

To capture overridden shortcuts (pause button, etc.)

Definition at line 137 of file ecvAnnotationsTool.cpp.

Referenced by ecvAnnotationsTool().

◆ onTrimMode

void ecvAnnotationsTool::onTrimMode ( )
protectedslot

Definition at line 192 of file ecvAnnotationsTool.cpp.

References m_annotationTool, and ecvGenericAnnotationTool::trimMode().

Referenced by ecvAnnotationsTool().

◆ onUnionMode

void ecvAnnotationsTool::onUnionMode ( )
protectedslot

Definition at line 186 of file ecvAnnotationsTool.cpp.

References m_annotationTool, and ecvGenericAnnotationTool::unionMode().

Referenced by ecvAnnotationsTool().

◆ releaseAssociatedEntities()

void ecvAnnotationsTool::releaseAssociatedEntities ( )

Definition at line 319 of file ecvAnnotationsTool.cpp.

References m_entityContainer, and ccHObject::removeAllChildren().

Referenced by stop(), and ~ecvAnnotationsTool().

◆ reset

◆ saveAnnotations

void ecvAnnotationsTool::saveAnnotations ( )
protectedslot

◆ setAnnotationsTool()

bool ecvAnnotationsTool::setAnnotationsTool ( ecvGenericAnnotationTool annotationTool)

◆ setBackView

void ecvAnnotationsTool::setBackView ( )
protectedslot

Definition at line 507 of file ecvAnnotationsTool.cpp.

References CC_BACK_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setBottomView

void ecvAnnotationsTool::setBottomView ( )
protectedslot

Definition at line 503 of file ecvAnnotationsTool.cpp.

References CC_BOTTOM_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setFrontView

void ecvAnnotationsTool::setFrontView ( )
protectedslot

Definition at line 505 of file ecvAnnotationsTool.cpp.

References CC_FRONT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setLeftView

void ecvAnnotationsTool::setLeftView ( )
protectedslot

Definition at line 509 of file ecvAnnotationsTool.cpp.

References CC_LEFT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setRightView

void ecvAnnotationsTool::setRightView ( )
protectedslot

Definition at line 511 of file ecvAnnotationsTool.cpp.

References CC_RIGHT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setTopView

void ecvAnnotationsTool::setTopView ( )
protectedslot

Definition at line 501 of file ecvAnnotationsTool.cpp.

References CC_TOP_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setView()

void ecvAnnotationsTool::setView ( CC_VIEW_ORIENTATION  orientation)
protected

Sets predefined view.

Definition at line 521 of file ecvAnnotationsTool.cpp.

References ecvDisplayTools::SetView().

Referenced by setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), and setTopView().

◆ shiftBox()

void ecvAnnotationsTool::shiftBox ( unsigned char  dim,
bool  minus 
)
protected

Shift box.

Definition at line 447 of file ecvAnnotationsTool.cpp.

Referenced by shiftXMinus(), shiftXPlus(), shiftYMinus(), shiftYPlus(), shiftZMinus(), and shiftZPlus().

◆ shiftXMinus

void ecvAnnotationsTool::shiftXMinus ( )
inlineprotectedslot

Definition at line 80 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftXPlus

void ecvAnnotationsTool::shiftXPlus ( )
inlineprotectedslot

Definition at line 81 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftYMinus

void ecvAnnotationsTool::shiftYMinus ( )
inlineprotectedslot

Definition at line 82 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftYPlus

void ecvAnnotationsTool::shiftYPlus ( )
inlineprotectedslot

Definition at line 83 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftZMinus

void ecvAnnotationsTool::shiftZMinus ( )
inlineprotectedslot

Definition at line 84 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftZPlus

void ecvAnnotationsTool::shiftZPlus ( )
inlineprotectedslot

Definition at line 85 of file ecvAnnotationsTool.h.

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ start()

◆ stop()

void ecvAnnotationsTool::stop ( bool  accepted)
overridevirtual

Stops process/dialog.

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

Parameters
acceptedprocess/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().

◆ toggleBox

void ecvAnnotationsTool::toggleBox ( bool  state)
protectedslot

◆ toggleEditMode

void ecvAnnotationsTool::toggleEditMode ( bool  state)
slot

Definition at line 355 of file ecvAnnotationsTool.cpp.

References m_editMode.

Referenced by ecvAnnotationsTool().

◆ toggleInteractors

void ecvAnnotationsTool::toggleInteractors ( bool  state)
slot

◆ toggleOrigin

void ecvAnnotationsTool::toggleOrigin ( bool  dummy)
protectedslot

◆ updateLabelsCombox

void ecvAnnotationsTool::updateLabelsCombox ( const std::vector< std::string > &  labels)
protectedslot

Member Data Documentation

◆ m_annotationTool

◆ m_box

ccBBox ecvAnnotationsTool::m_box
protected

bounding box

Definition at line 107 of file ecvAnnotationsTool.h.

Referenced by reset().

◆ m_disabledCombEvent

bool ecvAnnotationsTool::m_disabledCombEvent
protected

for solving dummy event trigger

Definition at line 113 of file ecvAnnotationsTool.h.

Referenced by ecvAnnotationsTool(), onLabelChanged(), and updateLabelsCombox().

◆ m_editMode

bool ecvAnnotationsTool::m_editMode
protected

Definition at line 115 of file ecvAnnotationsTool.h.

Referenced by onLabelChanged(), and toggleEditMode().

◆ m_entityContainer

ccHObject ecvAnnotationsTool::m_entityContainer
protected

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