Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkOpenCVVideoControls Class Reference

Offers widgets to play/pause/stop a video on a certain render window with the use of an !initialized! QmitkVideoBackground. The QmitkVideoBackground should contain an OpenCVVideoSource is then owned by this widget (and deleted) More...

#include <QmitkOpenCVVideoControls.h>

Inheritance diagram for QmitkOpenCVVideoControls:
Collaboration diagram for QmitkOpenCVVideoControls:

Signals

void NewOpenCVFrameAvailable (const IplImage *)
 

Public Member Functions

 QmitkOpenCVVideoControls (QmitkVideoBackground *_VideoBackground, QmitkRenderWindow *_RenderWindow, QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkOpenCVVideoControls () override
 
void SetRenderWindow (QmitkRenderWindow *_RenderWindow)
 
QmitkRenderWindowGetRenderWindow () const
 
void SetVideoBackground (QmitkVideoBackground *_VideoBackground)
 
QmitkVideoBackgroundGetVideoBackground () const
 
void AfterPropertyListReplaced (const std::string &id, mitk::PropertyList *propertyList) override
 
- Public Member Functions inherited from mitk::PropertyListReplacedObserver
virtual void BeforePropertyListReplaced (const std::string &id, mitk::PropertyList *propertyList)
 

Protected Slots

void on_UseGrabbingDeviceButton_clicked (bool checked=false)
 
void on_UseVideoFileButton_clicked (bool checked=false)
 
void on_VideoProgressSlider_sliderPressed ()
 
void on_VideoProgressSlider_sliderReleased ()
 
void on_VideoProgressSlider_valueChanged (int value)
 
void on_RepeatVideoButton_clicked (bool checked=false)
 
void on_PlayButton_clicked (bool checked=false)
 
void on_StopButton_clicked (bool checked=false)
 
void Play ()
 
void Stop ()
 
void Reset ()
 
void IsPlaying (bool paused)
 
void QObjectDestroyed (QObject *obj=nullptr)
 
void NewFrameAvailable (mitk::VideoSource *videoSource)
 
void EndOfVideoSourceReached (mitk::VideoSource *videoSource)
 

Protected Attributes

QmitkVideoBackgroundm_VideoBackground
 
QmitkRenderWindowm_RenderWindow
 
mitk::OpenCVVideoSourcem_VideoSource
 
Ui::QmitkOpenCVVideoControls * m_Controls
 
bool m_SliderCurrentlyMoved
 

Detailed Description

Offers widgets to play/pause/stop a video on a certain render window with the use of an !initialized! QmitkVideoBackground. The QmitkVideoBackground should contain an OpenCVVideoSource is then owned by this widget (and deleted)

Definition at line 38 of file QmitkOpenCVVideoControls.h.

Constructor & Destructor Documentation

◆ QmitkOpenCVVideoControls()

QmitkOpenCVVideoControls::QmitkOpenCVVideoControls ( QmitkVideoBackground _VideoBackground,
QmitkRenderWindow _RenderWindow,
QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

Construct the widget with the given render window and the given preset values

◆ ~QmitkOpenCVVideoControls()

QmitkOpenCVVideoControls::~QmitkOpenCVVideoControls ( )
override

call reset if video playback is enabled here

Member Function Documentation

◆ AfterPropertyListReplaced()

void QmitkOpenCVVideoControls::AfterPropertyListReplaced ( const std::string &  id,
mitk::PropertyList propertyList 
)
overridevirtual

calls FromPropertyList

Reimplemented from mitk::PropertyListReplacedObserver.

◆ EndOfVideoSourceReached

void QmitkOpenCVVideoControls::EndOfVideoSourceReached ( mitk::VideoSource videoSource)
protectedslot

◆ GetRenderWindow()

QmitkRenderWindow* QmitkOpenCVVideoControls::GetRenderWindow ( ) const

returns the current render window

◆ GetVideoBackground()

QmitkVideoBackground* QmitkOpenCVVideoControls::GetVideoBackground ( ) const

returns the current QmitkVideoBackground

◆ IsPlaying

void QmitkOpenCVVideoControls::IsPlaying ( bool  paused)
protectedslot

◆ NewFrameAvailable

void QmitkOpenCVVideoControls::NewFrameAvailable ( mitk::VideoSource videoSource)
protectedslot

◆ NewOpenCVFrameAvailable

void QmitkOpenCVVideoControls::NewOpenCVFrameAvailable ( const IplImage *  )
signal

When playback is started this informs when a new frame was grabbed

◆ on_PlayButton_clicked

void QmitkOpenCVVideoControls::on_PlayButton_clicked ( bool  checked = false)
protectedslot

◆ on_RepeatVideoButton_clicked

void QmitkOpenCVVideoControls::on_RepeatVideoButton_clicked ( bool  checked = false)
protectedslot

◆ on_StopButton_clicked

void QmitkOpenCVVideoControls::on_StopButton_clicked ( bool  checked = false)
protectedslot

◆ on_UseGrabbingDeviceButton_clicked

void QmitkOpenCVVideoControls::on_UseGrabbingDeviceButton_clicked ( bool  checked = false)
protectedslot

◆ on_UseVideoFileButton_clicked

void QmitkOpenCVVideoControls::on_UseVideoFileButton_clicked ( bool  checked = false)
protectedslot

◆ on_VideoProgressSlider_sliderPressed

void QmitkOpenCVVideoControls::on_VideoProgressSlider_sliderPressed ( )
protectedslot

◆ on_VideoProgressSlider_sliderReleased

void QmitkOpenCVVideoControls::on_VideoProgressSlider_sliderReleased ( )
protectedslot

◆ on_VideoProgressSlider_valueChanged

void QmitkOpenCVVideoControls::on_VideoProgressSlider_valueChanged ( int  value)
protectedslot

◆ Play

void QmitkOpenCVVideoControls::Play ( )
protectedslot

◆ QObjectDestroyed

void QmitkOpenCVVideoControls::QObjectDestroyed ( QObject *  obj = nullptr)
protectedslot

◆ Reset

void QmitkOpenCVVideoControls::Reset ( )
protectedslot

◆ SetRenderWindow()

void QmitkOpenCVVideoControls::SetRenderWindow ( QmitkRenderWindow _RenderWindow)

sets the render window for this video player

◆ SetVideoBackground()

void QmitkOpenCVVideoControls::SetVideoBackground ( QmitkVideoBackground _VideoBackground)

sets the qmitkvideobackground for this

◆ Stop

void QmitkOpenCVVideoControls::Stop ( )
protectedslot

Member Data Documentation

◆ m_Controls

Ui::QmitkOpenCVVideoControls* QmitkOpenCVVideoControls::m_Controls
protected

Definition at line 107 of file QmitkOpenCVVideoControls.h.

◆ m_RenderWindow

QmitkRenderWindow* QmitkOpenCVVideoControls::m_RenderWindow
protected

Definition at line 105 of file QmitkOpenCVVideoControls.h.

◆ m_SliderCurrentlyMoved

bool QmitkOpenCVVideoControls::m_SliderCurrentlyMoved
protected

Definition at line 108 of file QmitkOpenCVVideoControls.h.

◆ m_VideoBackground

QmitkVideoBackground* QmitkOpenCVVideoControls::m_VideoBackground
protected

Definition at line 104 of file QmitkOpenCVVideoControls.h.

◆ m_VideoSource

mitk::OpenCVVideoSource* QmitkOpenCVVideoControls::m_VideoSource
protected

Definition at line 106 of file QmitkOpenCVVideoControls.h.


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