CustusX  22.04-rc5
An IGT application
cx::PatientLandMarksWidget Class Reference

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

#include <cxPatientLandMarksWidget.h>

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

Public Member Functions

 PatientLandMarksWidget (RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle)
 sets up layout and connects signals and slots More...
 
virtual ~PatientLandMarksWidget ()
 empty More...
 
- Public Member Functions inherited from cx::LandmarkRegistrationWidget
 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

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 ()
 
virtual void pointSampled (Vector3D p_r)
 
- Protected Slots inherited from cx::LandmarkRegistrationWidget
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
 
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)
 
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

QPushButton * mToolSampleButton
 the Sample Tool button More...
 
QPushButton * mRemoveLandmarkButton
 
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...
 
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

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

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

Definition at line 31 of file cxPatientLandMarksWidget.h.

Constructor & Destructor Documentation

cx::PatientLandMarksWidget::PatientLandMarksWidget ( RegServicesPtr  services,
QWidget *  parent,
QString  objectName,
QString  windowTitle 
)

sets up layout and connects signals and slots

Definition at line 35 of file cxPatientLandMarksWidget.cpp.

cx::PatientLandMarksWidget::~PatientLandMarksWidget ( )
virtual

empty

Definition at line 74 of file cxPatientLandMarksWidget.cpp.

Member Function Documentation

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

when a landmark i selected from the table

Definition at line 142 of file cxPatientLandMarksWidget.cpp.

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

Return the landmarks associated with the current widget.

Implements cx::LandmarkRegistrationWidget.

Definition at line 159 of file cxPatientLandMarksWidget.cpp.

QString cx::PatientLandMarksWidget::getTargetName ( ) const
protectedvirtual

Implements cx::LandmarkRegistrationWidget.

Definition at line 193 of file cxPatientLandMarksWidget.cpp.

Transform3D cx::PatientLandMarksWidget::getTargetTransform ( ) const
protectedvirtual

Return transform from target space to reference space

Implements cx::LandmarkRegistrationWidget.

Definition at line 167 of file cxPatientLandMarksWidget.cpp.

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

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 129 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::performRegistration ( )
protectedvirtual

Implements cx::LandmarkRegistrationWidget.

Definition at line 179 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::pointSampled ( Vector3D  p_r)
protectedvirtualslot

Definition at line 198 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::prePaintEvent ( )
protectedvirtual

populates the table widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 149 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::removeLandmarkButtonClickedSlot ( )
protectedslot

Definition at line 135 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::setTargetLandmark ( QString  uid,
Vector3D  p_target 
)
protectedvirtual

Implements cx::LandmarkRegistrationWidget.

Definition at line 173 of file cxPatientLandMarksWidget.cpp.

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

updates internal info before showing the widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 122 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::toolSampleButtonClickedSlot ( )
protectedslot

reacts when the Sample Tool button is clicked

Definition at line 97 of file cxPatientLandMarksWidget.cpp.

void cx::PatientLandMarksWidget::updateToolSampleButton ( )
protectedslot

Definition at line 84 of file cxPatientLandMarksWidget.cpp.

Member Data Documentation

ActiveToolProxyPtr cx::PatientLandMarksWidget::mActiveToolProxy
protected

Definition at line 64 of file cxPatientLandMarksWidget.h.

QPushButton* cx::PatientLandMarksWidget::mRemoveLandmarkButton
protected

Definition at line 61 of file cxPatientLandMarksWidget.h.

QPushButton* cx::PatientLandMarksWidget::mToolSampleButton
protected

the Sample Tool button

Definition at line 60 of file cxPatientLandMarksWidget.h.


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