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

Dialog/interactor to graphically pick a list of points. More...

#include <ecvPointListPickingDlg.h>

Inheritance diagram for ccPointListPickingDlg:
Collaboration diagram for ccPointListPickingDlg:

Public Member Functions

 ccPointListPickingDlg (ccPickingHub *pickingHub, QWidget *parent)
 Default constructor. More...
 
void linkWithCloud (ccPointCloud *cloud)
 Associates dialog with cloud. More...
 
- Public Member Functions inherited from ccPointPickingGenericInterface
 ccPointPickingGenericInterface (ccPickingHub *pickingHub, QWidget *parent=nullptr)
 Default constructor. More...
 
 ~ccPointPickingGenericInterface () override=default
 Destructor. More...
 
bool linkWith (QWidget *win) override
 Links the overlay dialog with a MDI window. More...
 
bool start () override
 Starts process. More...
 
void stop (bool state) override
 Stops process/dialog. More...
 
void onItemPicked (const PickedItem &pi) override
 Inherited from ccPickingListener. 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...
 
- Public Member Functions inherited from ccPickingListener
virtual ~ccPickingListener ()=default
 

Protected Types

enum  ExportFormat { PLP_ASCII_EXPORT_XYZ , PLP_ASCII_EXPORT_IXYZ , PLP_ASCII_EXPORT_GXYZ , PLP_ASCII_EXPORT_LXYZ }
 Export format. More...
 

Protected Slots

void applyAndExit ()
 Applies changes and exit. More...
 
void cancelAndExit ()
 Cancels process and exit. More...
 
void exportToNewCloud ()
 Exports list to a new cloud. More...
 
void exportToNewPolyline ()
 Exports list to a polyline. More...
 
void removeLastEntry ()
 Removes last inserted point from list. More...
 
void exportToASCII_xyz ()
 Exports list to an 'xyz' ASCII file. More...
 
void exportToASCII_ixyz ()
 Exports list to an 'ixyz' ASCII file. More...
 
void exportToASCII_gxyz ()
 Exports list to an 'gxyz' ASCII file. More...
 
void exportToASCII_lxyz ()
 Exports list to an 'lxyz' ASCII file. More...
 
void markerSizeChanged (int)
 Redraw window when marker size changes. More...
 
void startIndexChanged (int)
 Redraw window when starting index changes. More...
 
void updateList ()
 Updates point list widget. More...
 
- 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

virtual void processPickedPoint (ccPointCloud *cloud, unsigned pointIndex, int x, int y) override
 Generic method to process picked points. More...
 
unsigned getPickedPoints (std::vector< cc2DLabel * > &pickedPoints)
 Gets current (visible) picked points from the associated cloud. More...
 
void clearLastLabel (ccHObject *lastVisibleLabel)
 
void removeEntity (ccHObject *lastVisibleLabel)
 
void exportToASCII (ExportFormat format)
 Exports list to an ASCII file. More...
 
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e) override
 

Protected Attributes

ccPointCloudm_associatedCloud
 Associated cloud. More...
 
unsigned m_lastPreviousID
 Last existing label unique ID on load. More...
 
ccHObjectm_orderedLabelsContainer
 Ordered labels container. More...
 
ccHObject::Container m_toBeDeleted
 
ccHObject::Container m_toBeAdded
 
- Protected Attributes inherited from ccPointPickingGenericInterface
ccPickingHubm_pickingHub
 Picking hub. More...
 
- 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/interactor to graphically pick a list of points.

Options let the user export the list to an ASCII file, a new cloud, a polyline, etc.

Definition at line 25 of file ecvPointListPickingDlg.h.

Member Enumeration Documentation

◆ ExportFormat

Export format.

See exportToASCII.

Enumerator
PLP_ASCII_EXPORT_XYZ 
PLP_ASCII_EXPORT_IXYZ 
PLP_ASCII_EXPORT_GXYZ 
PLP_ASCII_EXPORT_LXYZ 

Definition at line 89 of file ecvPointListPickingDlg.h.

Constructor & Destructor Documentation

◆ ccPointListPickingDlg()

Member Function Documentation

◆ applyAndExit

void ccPointListPickingDlg::applyAndExit ( )
protectedslot

◆ cancelAndExit

◆ clearLastLabel()

void ccPointListPickingDlg::clearLastLabel ( ccHObject lastVisibleLabel)
protected

◆ exportToASCII()

◆ exportToASCII_gxyz

void ccPointListPickingDlg::exportToASCII_gxyz ( )
inlineprotectedslot

Exports list to an 'gxyz' ASCII file.

Definition at line 58 of file ecvPointListPickingDlg.h.

References exportToASCII(), and PLP_ASCII_EXPORT_GXYZ.

Referenced by ccPointListPickingDlg().

◆ exportToASCII_ixyz

void ccPointListPickingDlg::exportToASCII_ixyz ( )
inlineprotectedslot

Exports list to an 'ixyz' ASCII file.

Definition at line 54 of file ecvPointListPickingDlg.h.

References exportToASCII(), and PLP_ASCII_EXPORT_IXYZ.

Referenced by ccPointListPickingDlg().

◆ exportToASCII_lxyz

void ccPointListPickingDlg::exportToASCII_lxyz ( )
inlineprotectedslot

Exports list to an 'lxyz' ASCII file.

Definition at line 62 of file ecvPointListPickingDlg.h.

References exportToASCII(), and PLP_ASCII_EXPORT_LXYZ.

Referenced by ccPointListPickingDlg().

◆ exportToASCII_xyz

void ccPointListPickingDlg::exportToASCII_xyz ( )
inlineprotectedslot

Exports list to an 'xyz' ASCII file.

Definition at line 50 of file ecvPointListPickingDlg.h.

References exportToASCII(), and PLP_ASCII_EXPORT_XYZ.

Referenced by ccPointListPickingDlg().

◆ exportToNewCloud

◆ exportToNewPolyline

◆ getPickedPoints()

unsigned ccPointListPickingDlg::getPickedPoints ( std::vector< cc2DLabel * > &  pickedPoints)
protected

◆ linkWithCloud()

◆ markerSizeChanged

void ccPointListPickingDlg::markerSizeChanged ( int  size)
protectedslot

◆ processPickedPoint()

◆ removeEntity()

void ccPointListPickingDlg::removeEntity ( ccHObject lastVisibleLabel)
protected

◆ removeLastEntry

void ccPointListPickingDlg::removeLastEntry ( )
protectedslot

◆ startIndexChanged

void ccPointListPickingDlg::startIndexChanged ( int  value)
protectedslot

Redraw window when starting index changes.

Definition at line 347 of file ecvPointListPickingDlg.cpp.

References s_pickedPointsStartIndex, and updateList().

Referenced by ccPointListPickingDlg().

◆ updateList

Member Data Documentation

◆ m_associatedCloud

ccPointCloud* ccPointListPickingDlg::m_associatedCloud
protected

◆ m_lastPreviousID

unsigned ccPointListPickingDlg::m_lastPreviousID
protected

Last existing label unique ID on load.

Definition at line 103 of file ecvPointListPickingDlg.h.

Referenced by linkWithCloud(), removeLastEntry(), and updateList().

◆ m_orderedLabelsContainer

ccHObject* ccPointListPickingDlg::m_orderedLabelsContainer
protected

Ordered labels container.

Definition at line 105 of file ecvPointListPickingDlg.h.

Referenced by applyAndExit(), cancelAndExit(), getPickedPoints(), linkWithCloud(), processPickedPoint(), and removeLastEntry().

◆ m_toBeAdded

ccHObject::Container ccPointListPickingDlg::m_toBeAdded
protected

New picked points that the user has selected (for proper "cancel" mechanism)

Definition at line 111 of file ecvPointListPickingDlg.h.

Referenced by applyAndExit(), cancelAndExit(), processPickedPoint(), and removeLastEntry().

◆ m_toBeDeleted

ccHObject::Container ccPointListPickingDlg::m_toBeDeleted
protected

Existing picked points that the user wants to delete (for proper "cancel" mechanism)

Definition at line 108 of file ecvPointListPickingDlg.h.

Referenced by applyAndExit(), cancelAndExit(), and removeLastEntry().


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