ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::widget::osborn::cVideoWidget Class Reference

#include <video_widget.h>

Inherits QWidget.

Public Member Functions

 cVideoWidget (QWidget *pParent)
 
virtual ~cVideoWidget ()
 
void UpdateSample (adtf::streaming::tStreamImageFormat &sFormat, const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample)
 
void Clear ()
 
void SetFitToScreen (bool bEnabled)
 
void SetKeepRatio (bool bEnabled)
 

Protected Member Functions

void paintEvent (QPaintEvent *pPaintEvent)
 

Detailed Description

Video display widget

Constructor & Destructor Documentation

◆ cVideoWidget()

adtf::ui::widget::osborn::cVideoWidget::cVideoWidget ( QWidget * pParent)

CTOR

◆ ~cVideoWidget()

virtual adtf::ui::widget::osborn::cVideoWidget::~cVideoWidget ( )
virtual

DTOR

Member Function Documentation

◆ Clear()

void adtf::ui::widget::osborn::cVideoWidget::Clear ( )

Clear the displayed image

◆ paintEvent()

void adtf::ui::widget::osborn::cVideoWidget::paintEvent ( QPaintEvent * pPaintEvent)
protected

Paint event

◆ SetFitToScreen()

void adtf::ui::widget::osborn::cVideoWidget::SetFitToScreen ( bool bEnabled)

Enable or disable fit to screen

◆ SetKeepRatio()

void adtf::ui::widget::osborn::cVideoWidget::SetKeepRatio ( bool bEnabled)

Enable or disable keep ratio

◆ UpdateSample()

void adtf::ui::widget::osborn::cVideoWidget::UpdateSample ( adtf::streaming::tStreamImageFormat & sFormat,
const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > & pSample )

Update the displayed image with the given sample

Parameters
sFormatThe image format of the sample
pSampleThe sample containing the image data

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