Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
31 class qSlicerSubjectHierarchyOpacityPluginPrivate;
32 
33 // Due to some reason the Python wrapping of this class fails, therefore
34 // put everything between BTX/ETX to exclude from wrapping.
35 // TODO investigate why the wrapping fails:
36 // https://www.assembla.com/spaces/slicerrt/tickets/210-python-wrapping-error-when-starting-up-slicer-with-slicerrt
37 //BTX
38 
40 class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyOpacityPlugin : public qSlicerSubjectHierarchyAbstractPlugin
41 {
42 public:
43  Q_OBJECT
44 
45 public:
47  qSlicerSubjectHierarchyOpacityPlugin(QObject* parent = NULL);
49 
50 public:
54 
57  virtual void showVisibilityContextMenuActionsForItem(vtkIdType itemID);
58 
59 protected slots:
61  void setOpacityForCurrentItem(double opacity);
62 
63 protected:
64  QScopedPointer<qSlicerSubjectHierarchyOpacityPluginPrivate> d_ptr;
65 
66 private:
67  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyOpacityPlugin);
69 };
70 
71 //ETX
72 
73 #endif
Abstract plugin for handling Subject Hierarchy items.
QScopedPointer< qSlicerSubjectHierarchyOpacityPluginPrivate > d_ptr
qSlicerSubjectHierarchyAbstractPlugin Superclass
virtual Q_INVOKABLE QList< QAction * > visibilityContextMenuActions() const
virtual Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)