Public Member Functions | Protected Member Functions | Protected Attributes

QmitkVideoPlayer Class Reference

Allows to play videos with OpenCV. More...

#include <QmitkVideoPlayer.h>

Inheritance diagram for QmitkVideoPlayer:
Inheritance graph
[legend]
Collaboration diagram for QmitkVideoPlayer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QmitkVideoPlayer ()
virtual ~QmitkVideoPlayer ()
virtual bool IsExclusiveFunctionality () const
virtual void StdMultiWidgetAvailable (QmitkStdMultiWidget &stdMultiWidget)

Protected Member Functions

void CreateQtPartControl (QWidget *parent)

Protected Attributes

mitk::OpenCVVideoSource::Pointer m_VideoSource
QmitkVideoBackgroundm_VideoBackground
QmitkOpenCVVideoControlsm_OpenCVVideoControls

Detailed Description

Allows to play videos with OpenCV.

Definition at line 29 of file QmitkVideoPlayer.h.


Constructor & Destructor Documentation

QmitkVideoPlayer::QmitkVideoPlayer (  )
QmitkVideoPlayer::~QmitkVideoPlayer (  ) [virtual]

Definition at line 31 of file QmitkVideoPlayer.cpp.

{
  // save video preferences
}

Member Function Documentation

void QmitkVideoPlayer::CreateQtPartControl ( QWidget *  parent ) [protected, virtual]
bool QmitkVideoPlayer::IsExclusiveFunctionality (  ) const [virtual]

Some functionalities need to add special interactors, removes the crosshair from the stdmultiwidget, etc. In this case the functionality has to tidy up when changing to another functionality which also wants to change the "default configuration". In the old Qt3-based version of MITK, two functionalities could never be opened at the same time so that the methods Activated() and Deactivated() were the right place for the functionalitites to add/remove their interactors, etc. This is still true for the new MITK Workbench, but as there can be several functionalities visible at the same time, the behaviour concerning when Activated() and Deactivated() are called has changed:

1. Activated() and Deactivated() are only called if IsExclusiveFunctionality() returns true

2. If only one standalone functionality is or becomes visible, Activated() will be called on that functionality

3. If two or more standalone functionalities are visible, Activated() will be called on the functionality that receives focus, Deactivated() will be called on the one that looses focus, gets hidden or closed

As a consequence of 1. if you overwrite IsExclusiveFunctionality() and let it return false, you signalize the MITK Workbench that this functionality does nothing to the "default configuration" and can easily be visible while other functionalities are also visible.

By default the method returns true.

Returns:
true if this functionality is meant to work as a standalone view, false otherwise

Reimplemented from QmitkFunctionality.

Definition at line 36 of file QmitkVideoPlayer.cpp.

{
  return false;
}
void QmitkVideoPlayer::StdMultiWidgetAvailable ( QmitkStdMultiWidget stdMultiWidget ) [virtual]

Called when a StdMultiWidget is available. Should not be used anymore, see GetActiveStdMultiWidget()

See also:
GetActiveStdMultiWidget()

Reimplemented from QmitkFunctionality.

Definition at line 56 of file QmitkVideoPlayer.cpp.

References m_OpenCVVideoControls, and QmitkOpenCVVideoControls::SetStdMultiWidget().

{
  m_OpenCVVideoControls->SetStdMultiWidget( &stdMultiWidget );
}

Member Data Documentation

Definition at line 42 of file QmitkVideoPlayer.h.

Referenced by CreateQtPartControl(), and StdMultiWidgetAvailable().

Definition at line 41 of file QmitkVideoPlayer.h.

Referenced by CreateQtPartControl().

Definition at line 40 of file QmitkVideoPlayer.h.

Referenced by CreateQtPartControl().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines