UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-12-17)
usImageDisplayWidgetQmlOverlay Class Reference

#include <visp3/ustk_gui/usImageDisplayWidgetQmlOverlay.h>

+ Inheritance diagram for usImageDisplayWidgetQmlOverlay:

Public Slots

void updateRectPosition (vpRectOriented newRectangle)
 
void startTrackingSlot ()
 
void updateFrame (const vpImage< unsigned char > img)
 
void updateFrame (const usImagePreScan2D< unsigned char > img)
 
void updateFrame (const usImagePostScan2D< unsigned char > img)
 

Signals

void startTracking (vpRectOriented)
 
void stopTracking ()
 

Public Member Functions

 usImageDisplayWidgetQmlOverlay ()
 
 ~usImageDisplayWidgetQmlOverlay ()
 
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.

Examples
tutorial-image-display-qtquickoverlay.cpp.

Definition at line 58 of file usImageDisplayWidgetQmlOverlay.h.

Constructor & Destructor Documentation

◆ usImageDisplayWidgetQmlOverlay()

usImageDisplayWidgetQmlOverlay::usImageDisplayWidgetQmlOverlay ( )

◆ ~usImageDisplayWidgetQmlOverlay()

usImageDisplayWidgetQmlOverlay::~usImageDisplayWidgetQmlOverlay ( )

Destructor.

Definition at line 70 of file usImageDisplayWidgetQmlOverlay.cpp.

Member Function Documentation

◆ resizeEvent()

void usImageDisplayWidgetQmlOverlay::resizeEvent ( QResizeEvent *  event)

◆ startTracking

void usImageDisplayWidgetQmlOverlay::startTracking ( vpRectOriented  )
signal

◆ startTrackingSlot

void usImageDisplayWidgetQmlOverlay::startTrackingSlot ( )
slot

Start tacking slot. Gets the actual position of the displayed rectangle, and transmits it unsing startTracking signal.

Definition at line 192 of file usImageDisplayWidgetQmlOverlay.cpp.

References startTracking().

Referenced by usImageDisplayWidgetQmlOverlay().

◆ stopTracking

void usImageDisplayWidgetQmlOverlay::stopTracking ( )
signal

◆ 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 usImageDisplayWidget::updateFrame ( const usImagePreScan2D< unsigned char >  img)
slotinherited

◆ 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 usImageDisplayWidgetQmlOverlay::updateRectPosition ( vpRectOriented  newRectangle)
slot

Update rectangle position slot.

Parameters
newRectangleNew rectangle, expressed in real image dimensions.

Definition at line 175 of file usImageDisplayWidgetQmlOverlay.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

◆ m_useScanConversion