UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)
usImageDisplayWidgetQmlOverlayServoing Class Reference

#include <visp3/ustk_gui/usImageDisplayWidgetQmlOverlayServoing.h>

+ Inheritance diagram for usImageDisplayWidgetQmlOverlayServoing:

Public Slots

void enableFeaturesDisplay ()
 
void disableFeaturesDisplay ()
 
void updateRectPosition (vpRectOriented newRectangle)
 
void updateConfidenceAngle (double scanline)
 
void updateConfidenceMap (usImagePreScan2D< unsigned char > confidence)
 
void updateFrame (const usImagePreScan2D< unsigned char > img)
 
void updateXError (double error)
 
void startTrackingSlot ()
 
void updateFrame (const vpImage< unsigned char > img)
 
void updateFrame (const usImagePostScan2D< unsigned char > img)
 

Signals

void startTrackingRect (vpRectOriented)
 
void stopTrackingRect ()
 
void startServoingRect ()
 
void stopServoingRect ()
 

Public Member Functions

 usImageDisplayWidgetQmlOverlayServoing ()
 
 ~usImageDisplayWidgetQmlOverlayServoing ()
 
void resizeEvent (QResizeEvent *event)
 
void useScanConversion (bool enable)
 

Protected Attributes

QLabel * m_label
 
QImage m_QImage
 
QPixmap m_pixmap
 
bool m_useScanConversion
 
usPreScanToPostScan2DConverter m_scanConverter
 
usImagePostScan2D< unsigned char > m_postScan
 
vpImage< unsigned char > m_image
 

Detailed Description

Qt widget class for 2D ultrasound image display, containing robot control tools for visual servoing on a rectangular ROI.

Examples
tutorial-image-display-qtquickoverlayServoing.cpp.

Definition at line 65 of file usImageDisplayWidgetQmlOverlayServoing.h.

Constructor & Destructor Documentation

◆ usImageDisplayWidgetQmlOverlayServoing()

usImageDisplayWidgetQmlOverlayServoing::usImageDisplayWidgetQmlOverlayServoing ( )

◆ ~usImageDisplayWidgetQmlOverlayServoing()

usImageDisplayWidgetQmlOverlayServoing::~usImageDisplayWidgetQmlOverlayServoing ( )

Destructor.

Definition at line 79 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

Member Function Documentation

◆ disableFeaturesDisplay

void usImageDisplayWidgetQmlOverlayServoing::disableFeaturesDisplay ( )
slot

Definition at line 276 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

◆ enableFeaturesDisplay

void usImageDisplayWidgetQmlOverlayServoing::enableFeaturesDisplay ( )
slot

◆ resizeEvent()

void usImageDisplayWidgetQmlOverlayServoing::resizeEvent ( QResizeEvent *  event)

◆ startServoingRect

void usImageDisplayWidgetQmlOverlayServoing::startServoingRect ( )
signal

◆ startTrackingRect

void usImageDisplayWidgetQmlOverlayServoing::startTrackingRect ( vpRectOriented  )
signal

Referenced by startTrackingSlot().

◆ startTrackingSlot

void usImageDisplayWidgetQmlOverlayServoing::startTrackingSlot ( )
slot

Start tacking slot. Gets the actual position of the displayed rectangle, and transmits it unsing startTracking signal (expressed in real image dimentions).

Definition at line 244 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

References startTrackingRect().

Referenced by usImageDisplayWidgetQmlOverlayServoing().

◆ stopServoingRect

void usImageDisplayWidgetQmlOverlayServoing::stopServoingRect ( )
signal

◆ stopTrackingRect

void usImageDisplayWidgetQmlOverlayServoing::stopTrackingRect ( )
signal

◆ updateConfidenceAngle

void usImageDisplayWidgetQmlOverlayServoing::updateConfidenceAngle ( double  scanline)
slot

◆ updateConfidenceMap

void usImageDisplayWidgetQmlOverlayServoing::updateConfidenceMap ( usImagePreScan2D< unsigned char >  confidence)
slot

Definition at line 297 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

◆ updateFrame [1/3]

void usImageDisplayWidget::updateFrame ( const usImagePostScan2D< unsigned char >  img)
slotinherited

Slot called to update the ultrasound image to display in case of post-scan image sent.

Parameters
imgNew ultrasound image to display.

Definition at line 83 of file usImageDisplayWidget.cpp.

References usImageDisplayWidget::m_image, usImageDisplayWidget::m_label, usImageDisplayWidget::m_pixmap, usImageDisplayWidget::m_QImage, and usImageDisplayWidget::m_useScanConversion.

◆ updateFrame [2/3]

void usImageDisplayWidgetQmlOverlayServoing::updateFrame ( const usImagePreScan2D< unsigned char >  img)
slot

◆ updateFrame [3/3]

void usImageDisplayWidget::updateFrame ( const vpImage< unsigned char >  img)
slotinherited

Slot called to update the ultrasound image to display.

Parameters
imgNew ultrasound image to display.
Examples
tutorial-image-display-qwidget.cpp.

Definition at line 67 of file usImageDisplayWidget.cpp.

References usImageDisplayWidget::m_image, usImageDisplayWidget::m_label, usImageDisplayWidget::m_pixmap, usImageDisplayWidget::m_QImage, and usImageDisplayWidget::m_useScanConversion.

◆ updateRectPosition

void usImageDisplayWidgetQmlOverlayServoing::updateRectPosition ( vpRectOriented  newRectangle)
slot

Update rectangle position slot.

Parameters
newRectangleNew rectangle, expressed in real image dimensions.

Definition at line 226 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

◆ updateXError

void usImageDisplayWidgetQmlOverlayServoing::updateXError ( double  error)
slot

Definition at line 302 of file usImageDisplayWidgetQmlOverlayServoing.cpp.

◆ useScanConversion()

void usImageDisplayWidget::useScanConversion ( bool  enable)
inherited

Member Data Documentation

◆ m_image

vpImage<unsigned char> usImageDisplayWidget::m_image
protectedinherited

Definition at line 87 of file usImageDisplayWidget.h.

Referenced by usImageDisplayWidget::updateFrame().

◆ m_label

◆ m_pixmap

◆ m_postScan

usImagePostScan2D<unsigned char> usImageDisplayWidget::m_postScan
protectedinherited

◆ m_QImage

◆ m_scanConverter

usPreScanToPostScan2DConverter usImageDisplayWidget::m_scanConverter
protectedinherited

◆ m_useScanConversion

bool usImageDisplayWidget::m_useScanConversion
protectedinherited