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
qSlicerSubjectHierarchyColorLegendPlugin.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==============================================================================*/
18
19#ifndef __qSlicerSubjectHierarchyColorLegendPlugin_h
20#define __qSlicerSubjectHierarchyColorLegendPlugin_h
21
22// SubjectHierarchy Plugins includes
24
25#include "qSlicerColorsSubjectHierarchyPluginsExport.h"
26
27class qSlicerSubjectHierarchyColorLegendPluginPrivate;
29class vtkMRMLViewNode;
32
33class Q_SLICER_COLORS_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchyColorLegendPlugin : public qSlicerSubjectHierarchyAbstractPlugin
34{
35public:
36 Q_OBJECT
37
38public:
40 qSlicerSubjectHierarchyColorLegendPlugin(QObject* parent = nullptr);
42
43public:
44
48
51 void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override;
52
56 bool showItemInView(vtkIdType itemID, vtkMRMLAbstractViewNode* viewNode, vtkIdList* allItemsToShow) override;
57
60 bool showColorLegendInView( bool show, vtkIdType itemID, vtkMRMLViewNode* viewNode=nullptr);
61 bool showColorLegendInSlice( bool show, vtkIdType itemID, vtkMRMLSliceNode* sliceNode=nullptr);
62
63protected slots:
66
67protected:
68 QScopedPointer<qSlicerSubjectHierarchyColorLegendPluginPrivate> d_ptr;
69
70private:
73};
74
75#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
void toggleVisibilityForCurrentItem(bool)
Toggle color legend option for current volume item.
bool showItemInView(vtkIdType itemID, vtkMRMLAbstractViewNode *viewNode, vtkIdList *allItemsToShow) override
QScopedPointer< qSlicerSubjectHierarchyColorLegendPluginPrivate > d_ptr
qSlicerSubjectHierarchyColorLegendPlugin(QObject *parent=nullptr)
bool showColorLegendInView(bool show, vtkIdType itemID, vtkMRMLViewNode *viewNode=nullptr)
void showVisibilityContextMenuActionsForItem(vtkIdType itemID) override
QList< QAction * > visibilityContextMenuActions() const override
bool showColorLegendInSlice(bool show, vtkIdType itemID, vtkMRMLSliceNode *sliceNode=nullptr)
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D,...
Abstract class that contains graphical display properties for displayable nodes.
MRML node for storing a slice through RAS space.
MRML node to represent a 3D view.