qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ccPointListPickingDlg Class Reference

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

#include <ccPointListPickingDlg.h>

Inheritance diagram for ccPointListPickingDlg:
Inheritance graph
[legend]
Collaboration diagram for ccPointListPickingDlg:
Collaboration graph
[legend]

Public Member Functions

 ccPointListPickingDlg (ccPickingHub *pickingHub, QWidget *parent)
 Default constructor.
 
void linkWithEntity (ccHObject *entity)
 Associates dialog with a cloud or a mesh.
 
- Public Member Functions inherited from ccPointPickingGenericInterface
 ccPointPickingGenericInterface (ccPickingHub *pickingHub, QWidget *parent=nullptr)
 Default constructor.
 
 ~ccPointPickingGenericInterface () override=default
 Destructor.
 
bool linkWith (ccGLWindow *win) override
 
bool start () override
 
void stop (bool state) override
 
void onItemPicked (const PickedItem &pi) override
 Inherited from ccPickingListener.
 

Protected Types

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

Protected Member Functions

void applyAndExit ()
 Applies changes and exit.
 
void cancelAndExit ()
 Cancels process and exit.
 
void exportToNewCloud ()
 Exports list to a new cloud.
 
void exportToNewPolyline ()
 Exports list to a polyline.
 
void removeLastEntry ()
 Removes last inserted point from list.
 
void exportToASCII_xyz ()
 Exports list to an 'xyz' ASCII file.
 
void exportToASCII_ixyz ()
 Exports list to an 'ixyz' ASCII file.
 
void exportToASCII_gxyz ()
 Exports list to an 'gxyz' ASCII file.
 
void exportToASCII_lxyz ()
 Exports list to an 'lxyz' ASCII file.
 
void markerSizeChanged (int)
 Redraw window when marker size changes.
 
void startIndexChanged (int)
 Redraw window when starting index changes.
 
void updateList ()
 Updates point list widget.
 
void processPickedPoint (const PickedItem &picked) override
 Generic method to process picked points. More...
 
unsigned getPickedPoints (std::vector< cc2DLabel * > &pickedPoints)
 Gets current (visible) picked points from the associated cloud.
 
void exportToASCII (ExportFormat format)
 Exports list to an ASCII file.
 
virtual void processPickedPoint (const PickedItem &picked)=0
 Generic method to process picked points. More...
 

Protected Attributes

ccHObject * m_associatedEntity
 Associated cloud or mesh.
 
unsigned m_lastPreviousID
 Last existing label unique ID on load.
 
ccHObject * m_orderedLabelsContainer
 Ordered labels container.
 
ccHObject::Container m_toBeDeleted
 Existing picked points that the user wants to delete (for proper "cancel" mechanism)
 
ccHObject::Container m_toBeAdded
 New picked points that the user has selected (for proper "cancel" mechanism)
 
- Protected Attributes inherited from ccPointPickingGenericInterface
ccPickingHub * m_pickingHub
 Picking hub.
 

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.

Member Enumeration Documentation

◆ ExportFormat

Export format.

See exportToASCII.

Member Function Documentation

◆ processPickedPoint()

void ccPointListPickingDlg::processPickedPoint ( const PickedItem &  picked)
overrideprotectedvirtual

Generic method to process picked points.

Implements ccPointPickingGenericInterface.


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