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
qSlicerSubjectHierarchyVisibilityPlugin.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 __qSlicerSubjectHierarchyVisibilityPlugin_h
24#define __qSlicerSubjectHierarchyVisibilityPlugin_h
25
26// SubjectHierarchy Plugins includes
28
29#include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
30
31class qSlicerSubjectHierarchyVisibilityPluginPrivate;
32
33class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyVisibilityPlugin : public qSlicerSubjectHierarchyAbstractPlugin
34{
35public:
36 Q_OBJECT
37
38public:
40 qSlicerSubjectHierarchyVisibilityPlugin(QObject* parent = nullptr);
42
43public:
47
50 void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override;
51
52protected slots:
59
60protected:
61 QScopedPointer<qSlicerSubjectHierarchyVisibilityPluginPrivate> d_ptr;
62
63private:
66};
67
68#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
QScopedPointer< qSlicerSubjectHierarchyVisibilityPluginPrivate > d_ptr
void showInAllViews()
Makes the node visible in all views (otherwise it is just visible in selected views)
void toggleCurrentItemVisibility3D(bool on)
Toggle 3D visibility on currently selected subject hierarchy item.
void toggleCurrentItemVisibility2D(bool on)
Toggle 2D visibility on currently selected subject hierarchy item.
void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override
qSlicerSubjectHierarchyVisibilityPlugin(QObject *parent=nullptr)
QList< QAction * > visibilityContextMenuActions() const override