Fraxinus  17.12-rc3
An IGT application
cx::ImageLandmarksWidget Class Reference

#include <cxImageLandmarksWidget.h>

Inheritance diagram for cx::ImageLandmarksWidget:
cx::LandmarkRegistrationWidget cx::RegistrationBaseWidget cx::BaseWidget cx::OptimizedUpdateWidget cx::FastImageRegistrationWidget cx::PlateImageRegistrationWidget

Public Member Functions

 ImageLandmarksWidget (RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle, bool useRegistrationFixedPropertyInsteadOfActiveImage=false)
 sets up layout and connects signals and slots More...
 
virtual ~ImageLandmarksWidget ()
 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 deleteLandmarksButtonClickedSlot ()
 reacts when the Delete Landmarks button is clicked More...
 
void importPointMetricsToLandmarkButtonClickedSlot ()
 
virtual void cellClickedSlot (int row, int column)
 when a landmark is selected from the table More...
 
void enableButtons ()
 
void onCurrentImageChanged ()
 
void toggleDetailsSlot ()
 
- 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 ()
 

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)
 
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

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 * mDeleteLandmarksButton
 the Delete Landmarks button More...
 
QPushButton * mImportLandmarksFromPointMetricsButton
 the Import Landmarks button More...
 
QAction * mDetailsAction
 
- 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...
 
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

Definition at line 66 of file cxImageLandmarksWidget.h.

Constructor & Destructor Documentation

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

sets up layout and connects signals and slots

Definition at line 65 of file cxImageLandmarksWidget.cpp.

cx::ImageLandmarksWidget::~ImageLandmarksWidget ( )
virtual

empty

Definition at line 132 of file cxImageLandmarksWidget.cpp.

Member Function Documentation

void cx::ImageLandmarksWidget::addLandmarkButtonClickedSlot ( )
protectedslot

reacts when the Add Landmark button is clicked

Definition at line 172 of file cxImageLandmarksWidget.cpp.

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

when a landmark is selected from the table

Definition at line 269 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::deleteLandmarksButtonClickedSlot ( )
protectedslot

reacts when the Delete Landmarks button is clicked

Definition at line 226 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::editLandmarkButtonClickedSlot ( )
protectedvirtualslot

reacts when the Edit Landmark button is clicked

Definition at line 194 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::enableButtons ( )
protectedslot

Definition at line 275 of file cxImageLandmarksWidget.cpp.

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

Definition at line 162 of file cxImageLandmarksWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 327 of file cxImageLandmarksWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 355 of file cxImageLandmarksWidget.cpp.

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

Return transform from target space to reference space

Implements cx::LandmarkRegistrationWidget.

Definition at line 339 of file cxImageLandmarksWidget.cpp.

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

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 308 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::importPointMetricsToLandmarkButtonClickedSlot ( )
protectedslot

Definition at line 237 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::onCurrentImageChanged ( )
protectedslot

Definition at line 136 of file cxImageLandmarksWidget.cpp.

virtual void cx::ImageLandmarksWidget::performRegistration ( )
inlineprotectedvirtual
void cx::ImageLandmarksWidget::prePaintEvent ( )
protectedvirtual

populates the table widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 315 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::removeLandmarkButtonClickedSlot ( )
protectedslot

reacts when the Remove Landmark button is clicked

Definition at line 215 of file cxImageLandmarksWidget.cpp.

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

Implements cx::LandmarkRegistrationWidget.

Definition at line 347 of file cxImageLandmarksWidget.cpp.

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

updates internal info before showing the widget

Reimplemented from cx::LandmarkRegistrationWidget.

Definition at line 294 of file cxImageLandmarksWidget.cpp.

void cx::ImageLandmarksWidget::toggleDetailsSlot ( )
protectedslot

Definition at line 149 of file cxImageLandmarksWidget.cpp.

Member Data Documentation

ActiveToolProxyPtr cx::ImageLandmarksWidget::mActiveToolProxy
protected

Definition at line 103 of file cxImageLandmarksWidget.h.

QPushButton* cx::ImageLandmarksWidget::mAddLandmarkButton
protected

the Add Landmark button

Definition at line 105 of file cxImageLandmarksWidget.h.

SelectDataStringPropertyBasePtr cx::ImageLandmarksWidget::mCurrentProperty
protected

Definition at line 102 of file cxImageLandmarksWidget.h.

QPushButton* cx::ImageLandmarksWidget::mDeleteLandmarksButton
protected

the Delete Landmarks button

Definition at line 108 of file cxImageLandmarksWidget.h.

QAction* cx::ImageLandmarksWidget::mDetailsAction
protected

Definition at line 110 of file cxImageLandmarksWidget.h.

QPushButton* cx::ImageLandmarksWidget::mEditLandmarkButton
protected

the Edit Landmark button

Definition at line 106 of file cxImageLandmarksWidget.h.

QPushButton* cx::ImageLandmarksWidget::mImportLandmarksFromPointMetricsButton
protected

the Import Landmarks button

Definition at line 109 of file cxImageLandmarksWidget.h.

QPushButton* cx::ImageLandmarksWidget::mRemoveLandmarkButton
protected

the Remove Landmark button

Definition at line 107 of file cxImageLandmarksWidget.h.


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