Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchyExportPlugin.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6  Queen's University, Kingston, ON, Canada. All Rights Reserved.
7 
8  See COPYRIGHT.txt
9  or http://www.slicer.org/copyright/copyright.txt for details.
10 
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16 
17  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18  and was supported through the Applied Cancer Research Unit program of Cancer Care
19  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20 
21 ==============================================================================*/
22 
23 #ifndef __qSlicerSubjectHierarchyExportPlugin_h
24 #define __qSlicerSubjectHierarchyExportPlugin_h
25 
26 // SubjectHierarchy Plugins includes
28 
29 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
30 
31 class qSlicerSubjectHierarchyExportPluginPrivate;
32 
34 class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyExportPlugin : public qSlicerSubjectHierarchyAbstractPlugin
35 {
36 public:
37  Q_OBJECT
38 
39 public:
41  qSlicerSubjectHierarchyExportPlugin(QObject* parent = nullptr);
43 
44 
45 public:
47  QList<QAction*> itemContextMenuActions() const override;
48 
51 
53  void showContextMenuActionsForItem(vtkIdType itemID) override;
54 
55 protected slots:
57  void exportItems();
58 
59 protected:
60  QScopedPointer<qSlicerSubjectHierarchyExportPluginPrivate> d_ptr;
61 
62 private:
63  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyExportPlugin);
65 };
66 
67 #endif
QScopedPointer< qSlicerSubjectHierarchyExportPluginPrivate > d_ptr
qSlicerSubjectHierarchyAbstractPlugin Superclass
Abstract plugin for handling Subject Hierarchy items.
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE QList< QAction * > sceneContextMenuActions() const
virtual Q_INVOKABLE QList< QAction * > itemContextMenuActions() const