Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLCaptureToolBar.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
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 Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qMRMLCaptureToolBar_h
22 #define __qMRMLCaptureToolBar_h
23 
24 // Qt includes
25 //#include <QSignalMapper>
26 #include <QToolBar>
27 
28 // CTK includes
29 #include <ctkPimpl.h>
30 // no ui begin
31 #include <ctkVTKObject.h>
32 // no ui end
33 
34 // qMRMLWidget includes
35 #include "qMRMLWidget.h"
36 #include "qMRMLWidgetsExport.h"
37 
38 class qMRMLCaptureToolBarPrivate;
39 class vtkMRMLNode;
40 class vtkMRMLScene;
41 class vtkMRMLViewNode;
42 
43 class QMRML_WIDGETS_EXPORT qMRMLCaptureToolBar : public QToolBar
44 {
45  Q_OBJECT
46  QVTK_OBJECT
47 
48  Q_PROPERTY(bool popupsTimeOut READ popupsTimeOut WRITE setPopupsTimeOut)
49 
50 public:
51  typedef QToolBar Superclass;
52 
55  qMRMLCaptureToolBar(const QString& title, QWidget* parent = nullptr);
56  qMRMLCaptureToolBar(QWidget* parent = nullptr);
57  ~qMRMLCaptureToolBar() override;
58 
59  // Get popupsTimeOut setting
60  bool popupsTimeOut() const;
61 
62 public slots:
63  virtual void setMRMLScene(vtkMRMLScene* newScene);
64  void setActiveMRMLThreeDViewNode(vtkMRMLViewNode * newActiveMRMLThreeDViewNode);
65 
68  void setPopupsTimeOut(bool flag);
69 
70 signals:
71  void screenshotButtonClicked();
72  void sceneViewButtonClicked();
73  void mrmlSceneChanged(vtkMRMLScene*);
74 
75 protected:
76  QScopedPointer<qMRMLCaptureToolBarPrivate> d_ptr;
77 
78 private:
79  Q_DECLARE_PRIVATE(qMRMLCaptureToolBar);
80  Q_DISABLE_COPY(qMRMLCaptureToolBar);
81 };
82 
83 #endif
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:61
QScopedPointer< qMRMLCaptureToolBarPrivate > d_ptr
MRML node to represent a 3D view.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167