<commit_before>/*=========================================================================

Program:   Medical Imaging & Interaction Toolkit
Language:  C++
Date:      $Date$
Version:   $Revision$

Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.

This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#include "QmitkVideoBackground.h"

// MITK includes
#include "mitkVtkLayerController.h"
#include "mitkRenderingManager.h"

// QT includes
#include <QTimer>

// itk includes
#include <itkCommand.h>

// VTK includes
#include <vtkSystemIncludes.h>
#include <vtkRenderer.h>
#include <vtkMapper.h>
#include <vtkObjectFactory.h>
#include <vtkImageActor.h>
#include <vtkRenderWindow.h>
#include <vtkImageImport.h>
#include <vtkCommand.h>
#include <vtkCamera.h>
#include <vtkCommand.h>
#include <vtkSmartPointer.h>
#include <vtkCallbackCommand.h>

QmitkVideoBackground::QmitkVideoBackground( QObject *parent )
: QObject(parent)
, m_VideoSource(0)
, m_QTimer(new QTimer(this))
, m_VideoSourceObserverTag(0)
{
  this->ResetVideoBackground();
}

QmitkVideoBackground::QmitkVideoBackground(mitk::VideoSource* v, int TimerDelay)
: QObject(0)
, m_VideoSource(0)
, m_QTimer(new QTimer(this))
, m_VideoSourceObserverTag(0)
{
  this->SetVideoSource( v );
  this->ResetVideoBackground();
}

void QmitkVideoBackground::ResetVideoBackground()
{
  m_QTimer->setInterval(25);
  connect( m_QTimer, SIGNAL(timeout()), SLOT(UpdateVideo()) );<commit_msg>COMP (#6196): changed member init order to avoid warning<commit_after>/*=========================================================================

Program:   Medical Imaging & Interaction Toolkit
Language:  C++
Date:      $Date$
Version:   $Revision$

Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.

This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#include "QmitkVideoBackground.h"

// MITK includes
#include "mitkVtkLayerController.h"
#include "mitkRenderingManager.h"

// QT includes
#include <QTimer>

// itk includes
#include <itkCommand.h>

// VTK includes
#include <vtkSystemIncludes.h>
#include <vtkRenderer.h>
#include <vtkMapper.h>
#include <vtkObjectFactory.h>
#include <vtkImageActor.h>
#include <vtkRenderWindow.h>
#include <vtkImageImport.h>
#include <vtkCommand.h>
#include <vtkCamera.h>
#include <vtkCommand.h>
#include <vtkSmartPointer.h>
#include <vtkCallbackCommand.h>

QmitkVideoBackground::QmitkVideoBackground( QObject *parent )
: QObject(parent)
, m_QTimer(new QTimer(this))
, m_VideoSource(0)
, m_VideoSourceObserverTag(0)
{
  this->ResetVideoBackground();
}

QmitkVideoBackground::QmitkVideoBackground(mitk::VideoSource* v, int TimerDelay)
: QObject(0)
, m_QTimer(new QTimer(this))
, m_VideoSource(0)
, m_VideoSourceObserverTag(0)
{
  this->SetVideoSource( v );
  this->ResetVideoBackground();
}

void QmitkVideoBackground::ResetVideoBackground()
{
  m_QTimer->setInterval(25);
  connect( m_QTimer, SIGNAL(timeout()), SLOT(UpdateVideo()) );
{'fraction_non_alphanumeric': 0.18855405031794303, 'fraction_numerical': 0.0049764998617638926, 'mean_word_length': 6.814254859611231, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4999205', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1103, 'n_words': 270}