CustusX  15.3.4-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::LandmarkPatientRegistrationWidget Class Reference

Widget used as a tab in the ContexDockWidget for patient registration. More...

#include <cxLandmarkPatientRegistrationWidget.h>

Inheritance diagram for cx::LandmarkPatientRegistrationWidget:
cx::LandmarkRegistrationWidget cx::RegistrationBaseWidget cx::BaseWidget cx::OptimizedUpdateWidget cx::FastPatientRegistrationWidget

Public Member Functions

 LandmarkPatientRegistrationWidget (RegServices services, QWidget *parent, QString objectName, QString windowTitle)
 sets up layout and connects signals and slots More...
 
virtual ~LandmarkPatientRegistrationWidget ()
 empty More...
 
virtual QString defaultWhatsThis () const
 Returns a short description of what this widget will do for you. More...
 
- Public Member Functions inherited from cx::LandmarkRegistrationWidget
 LandmarkRegistrationWidget (RegServices services, QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~LandmarkRegistrationWidget ()
 
- Public Member Functions inherited from cx::RegistrationBaseWidget
 RegistrationBaseWidget (RegServices 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)
 
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 ()
 

Protected Slots

void registerSlot ()
 
virtual void fixedDataChanged ()
 listens to the datamanager for when the active image is changed More...
 
void toolSampleButtonClickedSlot ()
 reacts when the Sample Tool button is clicked More...
 
virtual void cellClickedSlot (int row, int column)
 when a landmark i selected from the table More...
 
void removeLandmarkButtonClickedSlot ()
 
void updateToolSampleButton ()
 
- Protected Slots inherited from cx::LandmarkRegistrationWidget
virtual void cellClickedSlot (int row, int column)
 when a landmark i selected from the table More...
 
void cellChangedSlot (int row, int column)
 reacts when the user types in a (landmark) name More...
 
void landmarkUpdatedSlot ()
 
void updateAverageAccuracyLabel ()
 

Protected Member Functions

virtual void showEvent (QShowEvent *event)
 updates internal info before showing the widget More...
 
virtual void hideEvent (QHideEvent *event)
 
virtual void prePaintEvent ()
 populates the table widget More...
 
virtual LandmarkMap getTargetLandmarks () const
 
virtual Transform3D getTargetTransform () const
 
virtual void setTargetLandmark (QString uid, Vector3D p_target)
 
virtual QString getTargetName () const
 
virtual void performRegistration ()
 
- Protected Member Functions inherited from cx::LandmarkRegistrationWidget
void setManualToolPosition (Vector3D p_r)
 
QString getNextLandmark ()
 
void activateLandmark (QString uid)
 
std::vector< LandmarkgetAllLandmarks () const
 get all the landmarks from the image and the datamanager More...
 
QString getLandmarkName (QString uid)
 
double getAccuracy (QString uid)
 
double getAverageAccuracy ()
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QPushButton * mToolSampleButton
 the Sample Tool button More...
 
QPushButton * mRemoveLandmarkButton
 
QPushButton * mRegisterButton
 
ImageLandmarksSourcePtr mImageLandmarkSource
 
StringPropertyRegistrationFixedImagePtr mFixedProperty
 
ActiveToolProxyPtr mActiveToolProxy
 
- Protected Attributes inherited from cx::LandmarkRegistrationWidget
QVBoxLayout * mVerticalLayout
 vertical layout is used More...
 
QTableWidget * mLandmarkTableWidget
 the table widget presenting the landmarks More...
 
QLabel * mAvarageAccuracyLabel
 label showing the average accuracy More...
 
QString mActiveLandmark
 uid of surrently selected landmark. More...
 
- Protected Attributes inherited from cx::RegistrationBaseWidget
RegServices 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

Widget used as a tab in the ContexDockWidget for patient registration.

Date
Feb 3, 2009 \author Janne Beate Bakeng, SINTEF

Definition at line 71 of file cxLandmarkPatientRegistrationWidget.h.

Constructor & Destructor Documentation

cx::LandmarkPatientRegistrationWidget::LandmarkPatientRegistrationWidget ( RegServices  services,
QWidget *  parent,
QString  objectName,
QString  windowTitle 
)

sets up layout and connects signals and slots

Definition at line 62 of file cxLandmarkPatientRegistrationWidget.cpp.

cx::LandmarkPatientRegistrationWidget::~LandmarkPatientRegistrationWidget ( )
virtual

empty

Definition at line 107 of file cxLandmarkPatientRegistrationWidget.cpp.

Member Function Documentation

void cx::LandmarkPatientRegistrationWidget::cellClickedSlot ( int  row,
int  column 
)
protectedvirtualslot

when a landmark i selected from the table

Definition at line 220 of file cxLandmarkPatientRegistrationWidget.cpp.

QString cx::LandmarkPatientRegistrationWidget::defaultWhatsThis ( ) const
virtual

Returns a short description of what this widget will do for you.

Reimplemented from cx::LandmarkRegistrationWidget.

Reimplemented in cx::FastPatientRegistrationWidget.

Definition at line 111 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::fixedDataChanged ( )
protectedvirtualslot

listens to the datamanager for when the active image is changed

Definition at line 132 of file cxLandmarkPatientRegistrationWidget.cpp.

LandmarkMap cx::LandmarkPatientRegistrationWidget::getTargetLandmarks ( ) const
protectedvirtual

Return the landmarks associated with the current widget.

Implements cx::LandmarkRegistrationWidget.

Definition at line 237 of file cxLandmarkPatientRegistrationWidget.cpp.

QString cx::LandmarkPatientRegistrationWidget::getTargetName ( ) const
protectedvirtual
Transform3D cx::LandmarkPatientRegistrationWidget::getTargetTransform ( ) const
protectedvirtual

Return transform from target space to reference space

Implements cx::LandmarkRegistrationWidget.

Definition at line 245 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::hideEvent ( QHideEvent *  event)
protectedvirtual

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 194 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::performRegistration ( )
protectedvirtual
void cx::LandmarkPatientRegistrationWidget::prePaintEvent ( )
protectedvirtual

populates the table widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 227 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::registerSlot ( )
protectedslot

Definition at line 127 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::removeLandmarkButtonClickedSlot ( )
protectedslot

Definition at line 213 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::setTargetLandmark ( QString  uid,
Vector3D  p_target 
)
protectedvirtual
void cx::LandmarkPatientRegistrationWidget::showEvent ( QShowEvent *  event)
protectedvirtual

updates internal info before showing the widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 176 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::toolSampleButtonClickedSlot ( )
protectedslot

reacts when the Sample Tool button is clicked

Definition at line 151 of file cxLandmarkPatientRegistrationWidget.cpp.

void cx::LandmarkPatientRegistrationWidget::updateToolSampleButton ( )
protectedslot

Definition at line 137 of file cxLandmarkPatientRegistrationWidget.cpp.

Member Data Documentation

ActiveToolProxyPtr cx::LandmarkPatientRegistrationWidget::mActiveToolProxy
protected

Definition at line 108 of file cxLandmarkPatientRegistrationWidget.h.

StringPropertyRegistrationFixedImagePtr cx::LandmarkPatientRegistrationWidget::mFixedProperty
protected

Definition at line 107 of file cxLandmarkPatientRegistrationWidget.h.

ImageLandmarksSourcePtr cx::LandmarkPatientRegistrationWidget::mImageLandmarkSource
protected

Definition at line 106 of file cxLandmarkPatientRegistrationWidget.h.

QPushButton* cx::LandmarkPatientRegistrationWidget::mRegisterButton
protected

Definition at line 103 of file cxLandmarkPatientRegistrationWidget.h.

QPushButton* cx::LandmarkPatientRegistrationWidget::mRemoveLandmarkButton
protected

Definition at line 102 of file cxLandmarkPatientRegistrationWidget.h.

QPushButton* cx::LandmarkPatientRegistrationWidget::mToolSampleButton
protected

the Sample Tool button

Definition at line 101 of file cxLandmarkPatientRegistrationWidget.h.


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