qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Classes | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ccPointPairRegistrationDlg Class Reference
Inheritance diagram for ccPointPairRegistrationDlg:
Inheritance graph
[legend]
Collaboration diagram for ccPointPairRegistrationDlg:
Collaboration graph
[legend]

Classes

struct  cloudContext
 Original cloud context. More...
 

Public Member Functions

 ccPointPairRegistrationDlg (QWidget *parent=0)
 Default constructor.
 
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...
 
bool init (ccGLWindow *win, ccGenericPointCloud *aligned, ccGenericPointCloud *reference=0)
 Inits dialog.
 
void clear ()
 Clears dialog.
 
bool addAlignedPoint (CCVector3d &P, ccGenericPointCloud *cloud=0, unsigned pointIndex=0, bool shifted=true)
 Adds a point to the 'align' set.
 
bool addReferencePoint (CCVector3d &P, ccGenericPointCloud *cloud=0, unsigned pointIndex=0, bool shifted=true)
 Adds a point to the 'reference' set.
 
- 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 Slots

void showAlignedCloud (bool)
 Slot called to change aligned cloud visibility.
 
void showReferenceCloud (bool)
 Slot called to change reference cloud visibility.
 
void addManualAlignedPoint ()
 Slot called to add a manual point to the 'align' set.
 
void addManualRefPoint ()
 Slot called to add a manual point to the 'reference' set.
 
void unstackAligned ()
 Slot called to remove the last point on the 'align' stack.
 
void unstackRef ()
 Slot called to remove the last point on the 'reference' stack.
 
void processPickedPoint (int, unsigned, int, int)
 
void apply ()
 
void align ()
 
void reset ()
 
void cancel ()
 
- 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 onPointCountChanged ()
 Enables (or not) buttons depending on the number of points in both lists.
 
bool callHornRegistration (CCLib::PointProjectionTools::Transformation &trans, double &rms)
 Calls Horn registration (CCLib::HornRegistrationTools)
 
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e)
 

Protected Attributes

cloudContext m_aligned
 Aligned entity.
 
ccPointCloud m_alignedPoints
 Aligned points set.
 
cloudContext m_reference
 Reference entity (if any)
 
ccPointCloud m_refPoints
 Reference points set.
 
ccGLWindow * m_win
 Dedicated window.
 
- 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...
 

Member Function Documentation

bool ccPointPairRegistrationDlg::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 ccOverlayDialog.

bool ccPointPairRegistrationDlg::start ( )
virtual

Starts process.

Returns
success

Reimplemented from ccOverlayDialog.

void ccPointPairRegistrationDlg::stop ( bool  accepted)
virtual

Stops process/dialog.

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

Parameters
acceptedprocess/dialog result

Reimplemented from ccOverlayDialog.


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