qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ccPointPropertiesDlg Class Reference

Dialog for simple point picking (information, distance, etc.) More...

#include <ccPointPropertiesDlg.h>

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

Signals

void newLabel (ccHObject *)
 Signal emitted when a new label is created.
 
- 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...
 

Public Member Functions

 ccPointPropertiesDlg (QWidget *parent)
 Default constructor.
 
virtual ~ccPointPropertiesDlg ()
 Default destructor.
 
virtual bool start ()
 Starts process. More...
 
virtual void stop (bool state)
 Stops process/dialog. More...
 
virtual bool linkWith (ccGLWindow *win)
 Links the overlay dialog with a MDI window. More...
 
- Public Member Functions inherited from ccPointPickingGenericInterface
 ccPointPickingGenericInterface (QWidget *parent=0)
 Default constructor.
 
virtual ~ccPointPickingGenericInterface ()
 Destructor.
 
- Public Member Functions inherited from ccOverlayDialog
 ccOverlayDialog (QWidget *parent=0)
 Default constructor.
 
virtual ~ccOverlayDialog ()
 Destructor.
 
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

enum  Mode { POINT_INFO, POINT_POINT_DISTANCE, POINTS_ANGLE, RECT_ZONE }
 Picking mode.
 

Protected Slots

void onClose ()
 
void activatePointPropertiesDisplay ()
 
void activateDistanceDisplay ()
 
void activateAngleDisplay ()
 
void activate2DZonePicking ()
 
void initializeState ()
 
void exportCurrentLabel ()
 
void update2DZone (int x, int y, Qt::MouseButtons buttons)
 
void processClickedPoint (int x, int y)
 
void close2DZone ()
 
- 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...
 
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e)
 

Protected Attributes

Mode m_pickingMode
 Current picking mode.
 
cc2DLabel * m_label
 Associated 3D label.
 
cc2DViewportLabel * m_rect2DLabel
 Associated 2D label.
 
- Protected Attributes inherited from ccOverlayDialog
ccGLWindow * m_associatedWin
 Associated (MDI) window.
 
bool m_processing
 Running/processing state.
 
QList< int > m_overriddenKeys
 Overridden keys.
 

Detailed Description

Dialog for simple point picking (information, distance, etc.)

Member Function Documentation

bool ccPointPropertiesDlg::linkWith ( ccGLWindow *  win)
virtual

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

void ccPointPropertiesDlg::processPickedPoint ( ccPointCloud *  cloud,
unsigned  pointIndex,
int  x,
int  y 
)
protectedvirtual

Generic method to process picked points.

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

Implements ccPointPickingGenericInterface.

bool ccPointPropertiesDlg::start ( )
virtual

Starts process.

Returns
success

Reimplemented from ccPointPickingGenericInterface.

void ccPointPropertiesDlg::stop ( bool  accepted)
virtual

Stops process/dialog.

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

Parameters
acceptedprocess/dialog result

Reimplemented from ccPointPickingGenericInterface.


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