qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Types | Protected Slots | 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
Collaboration diagram for ccPointListPickingDlg:
Collaboration graph

Public Member Functions

 ccPointListPickingDlg (QWidget *parent)
 Default constructor.
void linkWithCloud (ccPointCloud *cloud)
 Associates dialog with cloud.
- Public Member Functions inherited from ccPointPickingGenericInterface
 ccPointPickingGenericInterface (QWidget *parent=0)
 Default constructor.
virtual ~ccPointPickingGenericInterface ()
virtual bool linkWith (ccGLWindow *win)
 Links the overlay dialog with a MDI window. More...
virtual bool start ()
 Starts process. More...
virtual void stop (bool state)
 Stops process/dialog. More...
- Public Member Functions inherited from ccOverlayDialog
 ccOverlayDialog (QWidget *parent=0)
 Default constructor.
virtual ~ccOverlayDialog ()
virtual void reject ()
void addOverridenShortcut (Qt::Key key)
 Adds a keyboard shortcut (single key) that will be overridden from the associated window. More...

Protected Types

 Export format. More...

Protected Slots

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 markerSizeChanged (int)
 Redraw window when marker size changes.
void startIndexChanged (int)
 Redraw window when starting index changes.
- Protected Slots inherited from ccPointPickingGenericInterface
virtual void handlePickedPoint (int cloudID, unsigned pointIdx, int x, int y)
 Slot to handle directly a picked point (OpenGL based picking)
- Protected Slots inherited from ccOverlayDialog
virtual void onLinkedWindowDeletion (QObject *object=0)
 Slot called when the linked window is deleted (calls 'onClose')

Protected Member Functions

void processPickedPoint (ccPointCloud *cloud, unsigned pointIndex, int x, int y)
 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.
void updateList ()
 Updates point list widget.
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e)

Protected Attributes

ccPointCloud * m_associatedCloud
 Associated cloud.
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 ccOverlayDialog
ccGLWindow * m_associatedWin
 Associated (MDI) window.
bool m_processing
 Running/processing state.
QList< int > m_overriddenKeys
 Overridden keys.

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

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

Export format.

See exportToASCII.

Member Function Documentation

void ccPointListPickingDlg::processPickedPoint ( ccPointCloud *  cloud,
unsigned  pointIndex,
int  x,
int  y 

Generic method to process picked points.

cloudpicked point cloud
pointIndexpoint index in cloud
xpicked pixel X position
ypicked pixel Y position

Implements ccPointPickingGenericInterface.

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