CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::CenterlinePointsWidget Class Reference

Widget for creating a centerline.vtk file from image landmarks. More...

#include <cxCenterlinePointsWidget.h>

Inheritance diagram for cx::CenterlinePointsWidget:
cx::LandmarkRegistrationWidget cx::RegistrationBaseWidget cx::BaseWidget cx::OptimizedUpdateWidget

Public Member Functions

 CenterlinePointsWidget (RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle, bool useRegistrationFixedPropertyInsteadOfActiveImage=false)
 sets up layout and connects signals and slots More...
 
virtual ~CenterlinePointsWidget ()
 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 addLandmarkButtonClickedSlot ()
 reacts when the Add Landmark button is clicked More...
 
virtual void editLandmarkButtonClickedSlot ()
 reacts when the Edit Landmark button is clicked More...
 
void removeLandmarkButtonClickedSlot ()
 reacts when the Remove Landmark button is clicked More...
 
void createCenterlineButtonClickedSlot ()
 reacts when the Create centerline button is clicked More...
 
virtual void cellClickedSlot (int row, int column)
 when a landmark is selected from the table More...
 
void enableButtons ()
 
void onCurrentImageChanged ()
 
- 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 QString getTargetName () const
 
virtual LandmarkMap getTargetLandmarks () const
 
virtual void setTargetLandmark (QString uid, Vector3D p_target)
 
virtual void performRegistration ()
 
virtual void prePaintEvent ()
 populates the table widget More...
 
QString getLandmarkName (QString uid)
 
virtual Transform3D getTargetTransform () const
 
PickerRepPtr getPickerRep ()
 
- 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

SelectDataStringPropertyBasePtr mCurrentProperty
 
ActiveToolProxyPtr mActiveToolProxy
 
QPushButton * mAddLandmarkButton
 the Add Landmark button More...
 
QPushButton * mEditLandmarkButton
 the Edit Landmark button More...
 
QPushButton * mRemoveLandmarkButton
 the Remove Landmark button More...
 
QPushButton * mCreateCenterlineButton
 the Create centerline button More...
 
- 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 for creating a centerline.vtk file from image landmarks.

Date
2017-MAR-14 \author Erlend F Hofstad, SINTEF

Definition at line 46 of file cxCenterlinePointsWidget.h.

Constructor & Destructor Documentation

cx::CenterlinePointsWidget::CenterlinePointsWidget ( RegServicesPtr  services,
QWidget *  parent,
QString  objectName,
QString  windowTitle,
bool  useRegistrationFixedPropertyInsteadOfActiveImage = false 
)

sets up layout and connects signals and slots

Definition at line 44 of file cxCenterlinePointsWidget.cpp.

cx::CenterlinePointsWidget::~CenterlinePointsWidget ( )
virtual

empty

Definition at line 95 of file cxCenterlinePointsWidget.cpp.

Member Function Documentation

void cx::CenterlinePointsWidget::addLandmarkButtonClickedSlot ( )
protectedslot

reacts when the Add Landmark button is clicked

Definition at line 122 of file cxCenterlinePointsWidget.cpp.

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

when a landmark is selected from the table

Definition at line 220 of file cxCenterlinePointsWidget.cpp.

void cx::CenterlinePointsWidget::createCenterlineButtonClickedSlot ( )
protectedslot

reacts when the Create centerline button is clicked

Definition at line 176 of file cxCenterlinePointsWidget.cpp.

void cx::CenterlinePointsWidget::editLandmarkButtonClickedSlot ( )
protectedvirtualslot

reacts when the Edit Landmark button is clicked

Definition at line 144 of file cxCenterlinePointsWidget.cpp.

void cx::CenterlinePointsWidget::enableButtons ( )
protectedslot

Definition at line 226 of file cxCenterlinePointsWidget.cpp.

QString cx::CenterlinePointsWidget::getLandmarkName ( QString  uid)
protected
PickerRepPtr cx::CenterlinePointsWidget::getPickerRep ( )
protected

Definition at line 112 of file cxCenterlinePointsWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 277 of file cxCenterlinePointsWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 305 of file cxCenterlinePointsWidget.cpp.

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

Return transform from target space to reference space

Implements cx::LandmarkRegistrationWidget.

Definition at line 289 of file cxCenterlinePointsWidget.cpp.

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

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 259 of file cxCenterlinePointsWidget.cpp.

void cx::CenterlinePointsWidget::onCurrentImageChanged ( )
protectedslot

Definition at line 99 of file cxCenterlinePointsWidget.cpp.

virtual void cx::CenterlinePointsWidget::performRegistration ( )
inlineprotectedvirtual

Implements cx::LandmarkRegistrationWidget.

Definition at line 72 of file cxCenterlinePointsWidget.h.

void cx::CenterlinePointsWidget::prePaintEvent ( )
protectedvirtual

populates the table widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 266 of file cxCenterlinePointsWidget.cpp.

void cx::CenterlinePointsWidget::removeLandmarkButtonClickedSlot ( )
protectedslot

reacts when the Remove Landmark button is clicked

Definition at line 165 of file cxCenterlinePointsWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 297 of file cxCenterlinePointsWidget.cpp.

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

updates internal info before showing the widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 245 of file cxCenterlinePointsWidget.cpp.

Member Data Documentation

ActiveToolProxyPtr cx::CenterlinePointsWidget::mActiveToolProxy
protected

Definition at line 82 of file cxCenterlinePointsWidget.h.

QPushButton* cx::CenterlinePointsWidget::mAddLandmarkButton
protected

the Add Landmark button

Definition at line 84 of file cxCenterlinePointsWidget.h.

QPushButton* cx::CenterlinePointsWidget::mCreateCenterlineButton
protected

the Create centerline button

Definition at line 87 of file cxCenterlinePointsWidget.h.

SelectDataStringPropertyBasePtr cx::CenterlinePointsWidget::mCurrentProperty
protected

Definition at line 81 of file cxCenterlinePointsWidget.h.

QPushButton* cx::CenterlinePointsWidget::mEditLandmarkButton
protected

the Edit Landmark button

Definition at line 85 of file cxCenterlinePointsWidget.h.

QPushButton* cx::CenterlinePointsWidget::mRemoveLandmarkButton
protected

the Remove Landmark button

Definition at line 86 of file cxCenterlinePointsWidget.h.


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