Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLSequenceBrowserPlayWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Brigham and Women's Hospital
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Laurent Chauvin, Brigham and Women's
17  Hospital. The project was supported by grants 5P01CA067165,
18  5R01CA124377, 5R01CA138586, 2R44DE019322, 7R01CA124377,
19  5R42CA137886, 5R42CA137886
20  It was then updated for the Markups module by Nicole Aucoin, BWH.
21 
22 ==============================================================================*/
23 
24 #ifndef __qMRMLSequenceBrowserPlayWidget_h
25 #define __qMRMLSequenceBrowserPlayWidget_h
26 
27 // CTK includes
28 #include <ctkPimpl.h>
29 #include <ctkVTKObject.h>
30 
31 // Slicer includes
32 #include "qMRMLWidget.h"
33 
34 #include "qSlicerSequencesModuleWidgetsExport.h"
35 
36 class qMRMLSequenceBrowserPlayWidgetPrivate;
37 class vtkMRMLNode;
39 
41 class Q_SLICER_MODULE_SEQUENCES_WIDGETS_EXPORT qMRMLSequenceBrowserPlayWidget
42 : public qMRMLWidget
43 {
44  Q_OBJECT
45  QVTK_OBJECT
46 
47 public:
49  qMRMLSequenceBrowserPlayWidget(QWidget *newParent = 0);
51 
53  void setPlayPauseShortcut(QString keySequence);
54 
56  void setPreviousFrameShortcut(QString keySequence);
57 
59  void setNextFrameShortcut(QString keySequence);
60 
61 public slots:
62  void setMRMLSequenceBrowserNode(vtkMRMLSequenceBrowserNode* browserNode);
63  void setMRMLSequenceBrowserNode(vtkMRMLNode* browserNode);
64  void setPlaybackEnabled(bool play);
65  void setRecordingEnabled(bool play);
66  void setPlaybackRateFps(double playbackRateFps);
67  void setPlaybackLoopEnabled(bool loopEnabled);
68  void onVcrFirst();
69  void onVcrPrevious();
70  void onVcrNext();
71  void onVcrLast();
72  void onVcrPlayPause();
73  void onRecordSnapshot();
74 
75 protected slots:
76  void updateWidgetFromMRML();
77 
78 protected:
79  QScopedPointer<qMRMLSequenceBrowserPlayWidgetPrivate> d_ptr;
80 
81 private:
82  Q_DECLARE_PRIVATE(qMRMLSequenceBrowserPlayWidget);
83  Q_DISABLE_COPY(qMRMLSequenceBrowserPlayWidget);
84 
85 };
86 
87 #endif
QScopedPointer< qMRMLSequenceBrowserPlayWidgetPrivate > d_ptr
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167