MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkNavigationDataPlayerView.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkNavigationDataPlayerView_h
14#define QmitkNavigationDataPlayerView_h
15
16//Qmitk
17#include <QmitkAbstractView.h>
18
19// ui
20#include "ui_QmitkNavigationDataPlayerViewControls.h"
21
22//mitk
25
32class QmitkNavigationDataPlayerView : public QmitkAbstractView
33{
34 // this is needed for all Qt objects that should have a Qt meta-object
35 // (everything that derives from QObject and wants to have signal/slots)
36 Q_OBJECT
37
38public:
39
40 static const std::string VIEW_ID;
41
44
45 void CreateQtPartControl(QWidget *parent) override;
46 void SetFocus() override;
47
51 void CreateConnections();
52
53protected slots:
54
58 void OnOpenFile();
59
63 void OnSelectPlayer();
64
68 void OnSetRepeat(int);
69
73 void OnSetMicroservice();
74
78 void OnSetDisplay();
79
83 void OnUpdate();
84
85protected:
86
90 void ConfigurePlayer();
91
95 void CreatePipeline();
96
100 void DestroyPipeline();
101
107 void SetInteractionComponentsEnabledState(bool isActive);
108
109 Ui::QmitkNavigationDataPlayerViewControls* m_Controls;
110
111 mitk::NavigationDataObjectVisualizationFilter::Pointer m_VisFilter;
112 std::vector<mitk::DataNode::Pointer> m_RenderingNodes;
113 mitk::NavigationDataPlayerBase::Pointer m_Player;
114 mitk::NavigationDataSet::Pointer m_Data;
115 mitk::NavigationToolStorage::Pointer m_ToolStorage;
116
117private:
118};
119
120#endif
void OnSelectPlayer()
Creates the correct player and displays the according widget.
void ConfigurePlayer()
configures the player according to the checkboxes set in the GUI
void CreateConnections()
This method creates this bundle's SIGNAL and SLOT connections.
void SetInteractionComponentsEnabledState(bool isActive)
Makes player component active or inactive.
Ui::QmitkNavigationDataPlayerViewControls * m_Controls
void OnSetRepeat(int)
Changes the repeat mode of the selected player.
void DestroyPipeline()
Destroys the Rendering Pipeline (but not the player)
void CreatePipeline()
Creates the Rendering Pipeline necessary to Render the images.
void OnSetMicroservice()
Registers or unregisters a virtual tracking device for the player.
void OnUpdate()
Updates the visualization.
mitk::NavigationToolStorage::Pointer m_ToolStorage
void CreateQtPartControl(QWidget *parent) override
mitk::NavigationDataSet::Pointer m_Data
void OnSetDisplay()
Triggers the creation and destruction of the rendering pipeline.
void OnOpenFile()
loads a file and triggers creation of players and the pipeline
mitk::NavigationDataObjectVisualizationFilter::Pointer m_VisFilter
std::vector< mitk::DataNode::Pointer > m_RenderingNodes
mitk::NavigationDataPlayerBase::Pointer m_Player