Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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// Slicer includes
25#include "qSlicerSceneViewsModuleExport.h"
26
27// Qt includes
28//#include <QSignalMapper>
29#include <QToolBar>
30
31// CTK includes
32#include <ctkPimpl.h>
33// no ui begin
34#include <ctkVTKObject.h>
35// no ui end
36
37// qMRMLWidget includes
38#include "qMRMLWidget.h"
39#include "qMRMLWidgetsExport.h"
40
41class qMRMLCaptureToolBarPrivate;
42class vtkMRMLNode;
43class vtkMRMLScene;
44class vtkMRMLViewNode;
45
46class Q_SLICER_QTMODULES_SCENEVIEWS_EXPORT qMRMLCaptureToolBar : public QToolBar
47{
48 Q_OBJECT
49 QVTK_OBJECT
50
51 Q_PROPERTY(bool popupsTimeOut READ popupsTimeOut WRITE setPopupsTimeOut)
52
53public:
54 typedef QToolBar Superclass;
55
58 qMRMLCaptureToolBar(const QString& title, QWidget* parent = nullptr);
59 qMRMLCaptureToolBar(QWidget* parent = nullptr);
61
62 // Get popupsTimeOut setting
63 bool popupsTimeOut() const;
64
65public slots:
66 virtual void setMRMLScene(vtkMRMLScene* newScene);
67 void setActiveMRMLThreeDViewNode(vtkMRMLViewNode * newActiveMRMLThreeDViewNode);
68
71 void setPopupsTimeOut(bool flag);
72
75
76signals:
80
81protected:
82 QScopedPointer<qMRMLCaptureToolBarPrivate> d_ptr;
83
84private:
85 Q_DECLARE_PRIVATE(qMRMLCaptureToolBar);
86 Q_DISABLE_COPY(qMRMLCaptureToolBar);
87};
88
89#endif
qMRMLCaptureToolBar(const QString &title, QWidget *parent=nullptr)
bool popupsTimeOut() const
void mrmlSceneChanged(vtkMRMLScene *)
QVTK_OBJECTbool popupsTimeOut
~qMRMLCaptureToolBar() override
void OnMRMLSceneEndBatchProcessing()
void sceneViewButtonClicked()
void setActiveMRMLThreeDViewNode(vtkMRMLViewNode *newActiveMRMLThreeDViewNode)
virtual void setMRMLScene(vtkMRMLScene *newScene)
QScopedPointer< qMRMLCaptureToolBarPrivate > d_ptr
void setPopupsTimeOut(bool flag)
qMRMLCaptureToolBar(QWidget *parent=nullptr)
void screenshotButtonClicked()
void OnMRMLSceneStartBatchProcessing()
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent a 3D view.