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
qSlicerSubjectHierarchyOpacityPlugin.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 CANARIE's Research Software Program, and Cancer
19 Care Ontario.
20
21==============================================================================*/
22
23#ifndef __qSlicerSubjectHierarchyOpacityPlugin_h
24#define __qSlicerSubjectHierarchyOpacityPlugin_h
25
26// SubjectHierarchy Plugins includes
28
29#include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
30
31class qSlicerSubjectHierarchyOpacityPluginPrivate;
32
33class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyOpacityPlugin : public qSlicerSubjectHierarchyAbstractPlugin
34{
35public:
36 Q_OBJECT
37
38public:
40 qSlicerSubjectHierarchyOpacityPlugin(QObject* parent = nullptr);
42
43public:
47
50 void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override;
51
52protected slots:
54 void setOpacityForCurrentItem(double opacity);
55
56protected:
57 QScopedPointer<qSlicerSubjectHierarchyOpacityPluginPrivate> d_ptr;
58
59private:
60 Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyOpacityPlugin);
62};
63
64#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
QList< QAction * > visibilityContextMenuActions() const override
void setOpacityForCurrentItem(double opacity)
Set opacity for current subject hierarchy item.
qSlicerSubjectHierarchyOpacityPlugin(QObject *parent=nullptr)
void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override
QScopedPointer< qSlicerSubjectHierarchyOpacityPluginPrivate > d_ptr