NorMIT-nav  22.09
An IGT application
cx::LandmarkRegistrationWidget Class Referenceabstract

#include <cxLandmarkRegistrationWidget.h>

Inheritance diagram for cx::LandmarkRegistrationWidget:
cx::RegistrationBaseWidget cx::BaseWidget cx::OptimizedUpdateWidget cx::CenterlinePointsWidget cx::ImageLandmarksWidget cx::LandmarkImage2ImageRegistrationWidget cx::LandmarkPatientRegistrationWidget cx::PatientLandMarksWidget cx::FastImageRegistrationWidget cx::FastLandmarkPatientRegistrationWidget cx::FastPatientRegistrationWidget cx::PlateImageRegistrationWidget

Public Member Functions

 LandmarkRegistrationWidget (RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle, bool showAccuracy=true)
 
virtual ~LandmarkRegistrationWidget ()
 
- 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

virtual void cellClickedSlot (int row, int column)
 when a landmark is 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 ()
 
void mouseClickSampleStateChanged ()
 
virtual void pointSampled (Vector3D p_r)
 

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 =0
 
virtual void performRegistration ()=0
 
virtual Transform3D getTargetTransform () const =0
 Return transform from target space to reference space. More...
 
virtual void setTargetLandmark (QString uid, Vector3D p_target)=0
 
virtual QString getTargetName () const =0
 
void setManualToolPosition (Vector3D p_r)
 
QString getNextLandmark ()
 
void activateLandmark (QString uid)
 
void selectFirstLandmarkIfUnselected ()
 
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 ()
 
QTableWidgetItem * getLandmarkTableItem ()
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QVBoxLayout * mVerticalLayout
 vertical layout is used More...
 
QTableWidget * mLandmarkTableWidget
 the table widget presenting the landmarks More...
 
QLabel * mAvarageAccuracyLabel
 label showing the average accuracy More...
 
QCheckBox * mMouseClickSample
 
QString mActiveLandmark
 uid of currently selected landmark. More...
 
LandmarkListenerPtr mLandmarkListener
 
bool mShowAccuracy
 
- 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

Superclass for Image Registration and Patient Registration

Definition at line 45 of file cxLandmarkRegistrationWidget.h.

Constructor & Destructor Documentation

◆ LandmarkRegistrationWidget()

cx::LandmarkRegistrationWidget::LandmarkRegistrationWidget ( RegServicesPtr  services,
QWidget *  parent,
QString  objectName,
QString  windowTitle,
bool  showAccuracy = true 
)

Definition at line 39 of file cxLandmarkRegistrationWidget.cpp.

◆ ~LandmarkRegistrationWidget()

cx::LandmarkRegistrationWidget::~LandmarkRegistrationWidget ( )
virtual

Definition at line 57 of file cxLandmarkRegistrationWidget.cpp.

Member Function Documentation

◆ activateLandmark()

void cx::LandmarkRegistrationWidget::activateLandmark ( QString  uid)
protected

Definition at line 224 of file cxLandmarkRegistrationWidget.cpp.

◆ cellChangedSlot

void cx::LandmarkRegistrationWidget::cellChangedSlot ( int  row,
int  column 
)
protectedslot

reacts when the user types in a (landmark) name

Definition at line 270 of file cxLandmarkRegistrationWidget.cpp.

◆ cellClickedSlot

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

when a landmark is selected from the table

Definition at line 61 of file cxLandmarkRegistrationWidget.cpp.

◆ getAccuracy()

double cx::LandmarkRegistrationWidget::getAccuracy ( QString  uid)
protected

Definition at line 370 of file cxLandmarkRegistrationWidget.cpp.

◆ getAllLandmarks()

std::vector< Landmark > cx::LandmarkRegistrationWidget::getAllLandmarks ( ) const
protected

get all the landmarks from the image and the datamanager

Definition at line 250 of file cxLandmarkRegistrationWidget.cpp.

◆ getAverageAccuracy()

double cx::LandmarkRegistrationWidget::getAverageAccuracy ( )
protected

Definition at line 340 of file cxLandmarkRegistrationWidget.cpp.

◆ getLandmarkName()

QString cx::LandmarkRegistrationWidget::getLandmarkName ( QString  uid)
protected

◆ getLandmarkTableItem()

QTableWidgetItem * cx::LandmarkRegistrationWidget::getLandmarkTableItem ( )
protected

Definition at line 400 of file cxLandmarkRegistrationWidget.cpp.

◆ getNextLandmark()

QString cx::LandmarkRegistrationWidget::getNextLandmark ( )
protected

Return the next landmark in the series of available landmarks, beginning with the active landmark.

Definition at line 234 of file cxLandmarkRegistrationWidget.cpp.

◆ getTargetLandmarks()

virtual LandmarkMap cx::LandmarkRegistrationWidget::getTargetLandmarks ( ) const
protectedpure virtual

◆ getTargetName()

virtual QString cx::LandmarkRegistrationWidget::getTargetName ( ) const
protectedpure virtual

◆ getTargetTransform()

virtual Transform3D cx::LandmarkRegistrationWidget::getTargetTransform ( ) const
protectedpure virtual

◆ hideEvent()

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

◆ landmarkUpdatedSlot

void cx::LandmarkRegistrationWidget::landmarkUpdatedSlot ( )
protectedslot

Definition at line 302 of file cxLandmarkRegistrationWidget.cpp.

◆ mouseClickSampleStateChanged

void cx::LandmarkRegistrationWidget::mouseClickSampleStateChanged ( )
protectedslot

Definition at line 392 of file cxLandmarkRegistrationWidget.cpp.

◆ performRegistration()

◆ pointSampled

virtual void cx::LandmarkRegistrationWidget::pointSampled ( Vector3D  p_r)
inlineprotectedvirtualslot

Definition at line 61 of file cxLandmarkRegistrationWidget.h.

◆ prePaintEvent()

void cx::LandmarkRegistrationWidget::prePaintEvent ( )
protectedvirtual

◆ selectFirstLandmarkIfUnselected()

void cx::LandmarkRegistrationWidget::selectFirstLandmarkIfUnselected ( )
protected

Definition at line 118 of file cxLandmarkRegistrationWidget.cpp.

◆ setManualToolPosition()

void cx::LandmarkRegistrationWidget::setManualToolPosition ( Vector3D  p_r)
protected

Definition at line 83 of file cxLandmarkRegistrationWidget.cpp.

◆ setTargetLandmark()

virtual void cx::LandmarkRegistrationWidget::setTargetLandmark ( QString  uid,
Vector3D  p_target 
)
protectedpure virtual

◆ showEvent()

void cx::LandmarkRegistrationWidget::showEvent ( QShowEvent *  event)
protectedvirtual

◆ updateAverageAccuracyLabel

void cx::LandmarkRegistrationWidget::updateAverageAccuracyLabel ( )
protectedslot

Definition at line 312 of file cxLandmarkRegistrationWidget.cpp.

Member Data Documentation

◆ mActiveLandmark

QString cx::LandmarkRegistrationWidget::mActiveLandmark
protected

uid of currently selected landmark.

Definition at line 91 of file cxLandmarkRegistrationWidget.h.

◆ mAvarageAccuracyLabel

QLabel* cx::LandmarkRegistrationWidget::mAvarageAccuracyLabel
protected

label showing the average accuracy

Definition at line 87 of file cxLandmarkRegistrationWidget.h.

◆ mLandmarkListener

LandmarkListenerPtr cx::LandmarkRegistrationWidget::mLandmarkListener
protected

Definition at line 92 of file cxLandmarkRegistrationWidget.h.

◆ mLandmarkTableWidget

QTableWidget* cx::LandmarkRegistrationWidget::mLandmarkTableWidget
protected

the table widget presenting the landmarks

Definition at line 86 of file cxLandmarkRegistrationWidget.h.

◆ mMouseClickSample

QCheckBox* cx::LandmarkRegistrationWidget::mMouseClickSample
protected

Definition at line 88 of file cxLandmarkRegistrationWidget.h.

◆ mShowAccuracy

bool cx::LandmarkRegistrationWidget::mShowAccuracy
protected

Definition at line 93 of file cxLandmarkRegistrationWidget.h.

◆ mVerticalLayout

QVBoxLayout* cx::LandmarkRegistrationWidget::mVerticalLayout
protected

vertical layout is used

Definition at line 85 of file cxLandmarkRegistrationWidget.h.


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