Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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
38class qMRMLCaptureToolBarPrivate;
39class vtkMRMLNode;
40class vtkMRMLScene;
41class vtkMRMLViewNode;
42
43class QMRML_WIDGETS_EXPORT qMRMLCaptureToolBar : public QToolBar
44{
45 Q_OBJECT
46 QVTK_OBJECT
47
48 Q_PROPERTY(bool popupsTimeOut READ popupsTimeOut WRITE setPopupsTimeOut)
49
50public:
51 typedef QToolBar Superclass;
52
55 qMRMLCaptureToolBar(const QString& title, QWidget* parent = nullptr);
56 qMRMLCaptureToolBar(QWidget* parent = nullptr);
58
59 // Get popupsTimeOut setting
60 bool popupsTimeOut() const;
61
62public slots:
63 virtual void setMRMLScene(vtkMRMLScene* newScene);
64 void setActiveMRMLThreeDViewNode(vtkMRMLViewNode * newActiveMRMLThreeDViewNode);
65
68 void setPopupsTimeOut(bool flag);
69
70signals:
74
75protected:
76 QScopedPointer<qMRMLCaptureToolBarPrivate> d_ptr;
77
78private:
79 Q_DECLARE_PRIVATE(qMRMLCaptureToolBar);
80 Q_DISABLE_COPY(qMRMLCaptureToolBar);
81};
82
83#endif
qMRMLCaptureToolBar(const QString &title, QWidget *parent=nullptr)
bool popupsTimeOut() const
void mrmlSceneChanged(vtkMRMLScene *)
~qMRMLCaptureToolBar() override
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()
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.