NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ICPRegistrationBaseWidget Class Referenceabstract

#include <cxICPRegistrationBaseWidget.h>

Inheritance diagram for cx::ICPRegistrationBaseWidget:
cx::RegistrationBaseWidget cx::BaseWidget cx::OptimizedUpdateWidget cx::RMPCFromPointerWidget cx::RMPCWidget cx::SeansVesselRegistrationWidget

Public Member Functions

 ICPRegistrationBaseWidget (RegServicesPtr services, QWidget *parent, QString uid, QString name)
 
virtual ~ICPRegistrationBaseWidget ()
 
- Public Member Functions inherited from cx::RegistrationBaseWidget
 RegistrationBaseWidget (RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~RegistrationBaseWidget ()
 
- Public Member Functions inherited from cx::BaseWidget
 BaseWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~BaseWidget ()
 
QWidget * createMethodWidget (QWidget *inputWidget, QWidget *outputWidget, QString methodname, bool inputChecked=false, bool outputVisible=true)
 Create a specialized widget for filters, with input/ouput, enable and options. More...
 
QGroupBox * createGroupbox (QWidget *widget, QString boxname)
 Create a group box with a given name. More...
 
QGroupBox * wrapInGroupBox (QWidget *base, QString name)
 
CXFramewrapInFrame (QWidget *base)
 
QAction * createAction2 (QObject *parent, QIcon iconName, QString text, QString tip, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
template<class T >
QAction * createAction (QObject *parent, QIcon iconName, QString text, QString tip, T slot, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
- Public Member Functions inherited from cx::OptimizedUpdateWidget
 OptimizedUpdateWidget (QWidget *parent=NULL)
 
virtual ~OptimizedUpdateWidget ()
 
void forcePrePaint ()
 

Protected Slots

void registerSlot ()
 

Protected Member Functions

virtual void initializeRegistrator ()=0
 
virtual void onShown ()=0
 
virtual void applyRegistration (Transform3D delta)=0
 
virtual void setup ()=0
 
virtual double getDefaultAutoLTS () const
 
virtual void prePaintEvent ()
 
void onSpacesChanged ()
 
void onSettingsChanged ()
 
- Protected Member Functions inherited from cx::BaseWidget
virtual void showEvent (QShowEvent *event)
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

DoublePropertyPtr mLTSRatio
 
DoublePropertyPtr mMargin
 
BoolPropertyPtr mLinear
 
BoolPropertyPtr mAutoLTS
 
BoolPropertyPtr mDisplayProgress
 
BoolPropertyPtr mOneStep
 
DoublePropertyPtr mNumberOfIterations
 
DoublePropertyPtr mStopThreshold
 
DoublePropertyPtr mMaxTime
 
ICPWidgetmICPWidget
 
XmlOptionFile mOptions
 
SeansVesselRegPtr mRegistrator
 
boost::shared_ptr< class
WidgetObscuredListener
mObscuredListener
 
- Protected Attributes inherited from cx::RegistrationBaseWidget
RegServicesPtr mServices
 

Additional Inherited Members

- Public Slots inherited from cx::BaseWidget
void adjustSizeSlot ()
 
- Public Slots inherited from cx::OptimizedUpdateWidget
virtual void setModified ()
 
- Static Public Member Functions inherited from cx::BaseWidget
static QFrame * createHorizontalLine ()
 Creates a horizontal line which can be inserted into widgets. More...
 

Detailed Description

Base class for Widgets implementing registration using the ICP method. Subclass to perform e.g. I2I or I2P registration.

Note: mICPWidget will be created and initialized, but not added to a widget. Must be done by subclass.

Date
Feb 21, 2011
Author
Janne Beate Bakeng, SINTEF

Definition at line 70 of file cxICPRegistrationBaseWidget.h.

Constructor & Destructor Documentation

cx::ICPRegistrationBaseWidget::ICPRegistrationBaseWidget ( RegServicesPtr  services,
QWidget *  parent,
QString  uid,
QString  name 
)

Definition at line 63 of file cxICPRegistrationBaseWidget.cpp.

cx::ICPRegistrationBaseWidget::~ICPRegistrationBaseWidget ( )
virtual

Definition at line 69 of file cxICPRegistrationBaseWidget.cpp.

Member Function Documentation

virtual void cx::ICPRegistrationBaseWidget::applyRegistration ( Transform3D  delta)
protectedpure virtual

subclass must set the given registration delta into the registration manager.

Implemented in cx::RMPCWidget, cx::RMPCFromPointerWidget, and cx::SeansVesselRegistrationWidget.

virtual double cx::ICPRegistrationBaseWidget::getDefaultAutoLTS ( ) const
inlineprotectedvirtual

Reimplemented in cx::RMPCWidget, and cx::RMPCFromPointerWidget.

Definition at line 96 of file cxICPRegistrationBaseWidget.h.

virtual void cx::ICPRegistrationBaseWidget::initializeRegistrator ( )
protectedpure virtual

subclass must call mRegistrator->initialize() with proper input

Implemented in cx::RMPCWidget, cx::RMPCFromPointerWidget, and cx::SeansVesselRegistrationWidget.

void cx::ICPRegistrationBaseWidget::onSettingsChanged ( )
protected

Definition at line 195 of file cxICPRegistrationBaseWidget.cpp.

virtual void cx::ICPRegistrationBaseWidget::onShown ( )
protectedpure virtual

called when widget is shown. Subclass must update data if needed.

Implemented in cx::RMPCWidget, cx::RMPCFromPointerWidget, and cx::SeansVesselRegistrationWidget.

void cx::ICPRegistrationBaseWidget::onSpacesChanged ( )
protected

Definition at line 182 of file cxICPRegistrationBaseWidget.cpp.

void cx::ICPRegistrationBaseWidget::prePaintEvent ( )
protectedvirtual

Implement to perform expensive operations that need only be called once per paint. Use setModified() to trigger this method.

Reimplemented from cx::OptimizedUpdateWidget.

Definition at line 73 of file cxICPRegistrationBaseWidget.cpp.

void cx::ICPRegistrationBaseWidget::registerSlot ( )
protectedslot

Definition at line 208 of file cxICPRegistrationBaseWidget.cpp.

virtual void cx::ICPRegistrationBaseWidget::setup ( )
protectedpure virtual

subclass must implement to setup widget

Implemented in cx::RMPCWidget, cx::RMPCFromPointerWidget, and cx::SeansVesselRegistrationWidget.

Member Data Documentation

BoolPropertyPtr cx::ICPRegistrationBaseWidget::mAutoLTS
protected

Definition at line 110 of file cxICPRegistrationBaseWidget.h.

BoolPropertyPtr cx::ICPRegistrationBaseWidget::mDisplayProgress
protected

Definition at line 111 of file cxICPRegistrationBaseWidget.h.

ICPWidget* cx::ICPRegistrationBaseWidget::mICPWidget
protected

Definition at line 118 of file cxICPRegistrationBaseWidget.h.

BoolPropertyPtr cx::ICPRegistrationBaseWidget::mLinear
protected

Definition at line 109 of file cxICPRegistrationBaseWidget.h.

DoublePropertyPtr cx::ICPRegistrationBaseWidget::mLTSRatio
protected

Definition at line 107 of file cxICPRegistrationBaseWidget.h.

DoublePropertyPtr cx::ICPRegistrationBaseWidget::mMargin
protected

Definition at line 108 of file cxICPRegistrationBaseWidget.h.

DoublePropertyPtr cx::ICPRegistrationBaseWidget::mMaxTime
protected

Definition at line 116 of file cxICPRegistrationBaseWidget.h.

DoublePropertyPtr cx::ICPRegistrationBaseWidget::mNumberOfIterations
protected

Definition at line 114 of file cxICPRegistrationBaseWidget.h.

boost::shared_ptr<class WidgetObscuredListener> cx::ICPRegistrationBaseWidget::mObscuredListener
protected

Definition at line 121 of file cxICPRegistrationBaseWidget.h.

BoolPropertyPtr cx::ICPRegistrationBaseWidget::mOneStep
protected

Definition at line 112 of file cxICPRegistrationBaseWidget.h.

XmlOptionFile cx::ICPRegistrationBaseWidget::mOptions
protected

Definition at line 119 of file cxICPRegistrationBaseWidget.h.

SeansVesselRegPtr cx::ICPRegistrationBaseWidget::mRegistrator
protected

Definition at line 120 of file cxICPRegistrationBaseWidget.h.

DoublePropertyPtr cx::ICPRegistrationBaseWidget::mStopThreshold
protected

Definition at line 115 of file cxICPRegistrationBaseWidget.h.


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