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:
[legend]
Collaboration diagram for ecvAnnotationsTool:
[legend]

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

Detailed Description

Dialog for managing a clipping box.

Constructor & Destructor Documentation

◆ ecvAnnotationsTool()

◆ ~ecvAnnotationsTool()

ecvAnnotationsTool::~ecvAnnotationsTool ( )
overridevirtual

Default destructor.

References releaseAssociatedEntities().

Member Function Documentation

◆ addAssociatedEntity()

◆ closeDialog

void ecvAnnotationsTool::closeDialog ( )
protectedslot

References stop().

Referenced by ecvAnnotationsTool().

◆ exportAnnotationToSF

◆ getNumberOfAssociatedEntity()

unsigned ecvAnnotationsTool::getNumberOfAssociatedEntity ( ) const

Returns the current number of associated entities.

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.

References ccOverlayDialog::linkWith().

◆ onIntersectMode

void ecvAnnotationsTool::onIntersectMode ( )
protectedslot

◆ onItemPicked

void ecvAnnotationsTool::onItemPicked ( bool  isPicked)
protectedslot

Referenced by setAnnotationsTool().

◆ onLabelChanged

◆ onLabelSelected

void ecvAnnotationsTool::onLabelSelected ( )
protectedslot

References onLabelChanged().

Referenced by ecvAnnotationsTool().

◆ onNewMode

void ecvAnnotationsTool::onNewMode ( )
protectedslot

◆ onShortcutTriggered

void ecvAnnotationsTool::onShortcutTriggered ( int  key)
protectedslot

To capture overridden shortcuts (pause button, etc.)

Referenced by ecvAnnotationsTool().

◆ onTrimMode

void ecvAnnotationsTool::onTrimMode ( )
protectedslot

◆ onUnionMode

void ecvAnnotationsTool::onUnionMode ( )
protectedslot

◆ releaseAssociatedEntities()

void ecvAnnotationsTool::releaseAssociatedEntities ( )

◆ reset

◆ saveAnnotations

void ecvAnnotationsTool::saveAnnotations ( )
protectedslot

◆ setAnnotationsTool()

bool ecvAnnotationsTool::setAnnotationsTool ( ecvGenericAnnotationTool *  annotationTool)

◆ setBackView

void ecvAnnotationsTool::setBackView ( )
protectedslot

References CC_BACK_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setBottomView

void ecvAnnotationsTool::setBottomView ( )
protectedslot

References CC_BOTTOM_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setFrontView

void ecvAnnotationsTool::setFrontView ( )
protectedslot

References CC_FRONT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setLeftView

void ecvAnnotationsTool::setLeftView ( )
protectedslot

References CC_LEFT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setRightView

void ecvAnnotationsTool::setRightView ( )
protectedslot

References CC_RIGHT_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setTopView

void ecvAnnotationsTool::setTopView ( )
protectedslot

References CC_TOP_VIEW, and setView().

Referenced by ecvAnnotationsTool().

◆ setView()

void ecvAnnotationsTool::setView ( CC_VIEW_ORIENTATION  orientation)
protected

◆ shiftBox()

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

◆ shiftXMinus

void ecvAnnotationsTool::shiftXMinus ( )
inlineprotectedslot

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftXPlus

void ecvAnnotationsTool::shiftXPlus ( )
inlineprotectedslot

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftYMinus

void ecvAnnotationsTool::shiftYMinus ( )
inlineprotectedslot

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftYPlus

void ecvAnnotationsTool::shiftYPlus ( )
inlineprotectedslot

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftZMinus

void ecvAnnotationsTool::shiftZMinus ( )
inlineprotectedslot

References shiftBox().

Referenced by ecvAnnotationsTool().

◆ shiftZPlus

void ecvAnnotationsTool::shiftZPlus ( )
inlineprotectedslot

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.

References m_annotationTool, releaseAssociatedEntities(), ccOverlayDialog::stop(), and ecvGenericAnnotationTool::stop().

Referenced by closeDialog().

◆ toggleBox

◆ toggleEditMode

void ecvAnnotationsTool::toggleEditMode ( bool  state)
slot

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

Referenced by reset().

◆ m_disabledCombEvent

bool ecvAnnotationsTool::m_disabledCombEvent
protected

for solving dummy event trigger

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

◆ m_editMode

bool ecvAnnotationsTool::m_editMode
protected

Referenced by onLabelChanged(), and toggleEditMode().

◆ m_entityContainer

ccHObject ecvAnnotationsTool::m_entityContainer
protected

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