Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchyVolumeRenderingPlugin.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 __qSlicerSubjectHierarchyVolumeRenderingPlugin_h
24 #define __qSlicerSubjectHierarchyVolumeRenderingPlugin_h
25 
26 // SubjectHierarchy Plugins includes
28 
29 #include "qSlicerVolumeRenderingSubjectHierarchyPluginsExport.h"
30 
31 class qSlicerSubjectHierarchyVolumeRenderingPluginPrivate;
33 
34 // Due to some reason the Python wrapping of this class fails, therefore
35 // put everything between BTX/ETX to exclude from wrapping.
36 // TODO investigate why the wrapping fails:
37 // https://www.assembla.com/spaces/slicerrt/tickets/210-python-wrapping-error-when-starting-up-slicer-with-slicerrt
38 //BTX
39 
41 class Q_SLICER_VOLUMERENDERING_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchyVolumeRenderingPlugin : public qSlicerSubjectHierarchyAbstractPlugin
42 {
43 public:
44  Q_OBJECT
45 
46 public:
48  qSlicerSubjectHierarchyVolumeRenderingPlugin(QObject* parent = NULL);
50 
51 public:
53  void setVolumeRenderingLogic(vtkSlicerVolumeRenderingLogic* volumeRenderingLogic);
54 
58 
61  virtual void showVisibilityContextMenuActionsForItem(vtkIdType itemID);
62 
63 protected slots:
65  void toggleVolumeRenderingForCurrentItem(bool);
67  void showVolumeRenderingOptionsForCurrentItem();
68 
69 protected:
70  QScopedPointer<qSlicerSubjectHierarchyVolumeRenderingPluginPrivate> d_ptr;
71 
72 private:
75 };
76 
77 //ETX
78 
79 #endif
Abstract plugin for handling Subject Hierarchy items.
virtual Q_INVOKABLE QList< QAction * > visibilityContextMenuActions() const
QScopedPointer< qSlicerSubjectHierarchyVolumeRenderingPluginPrivate > d_ptr
virtual Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)