Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSubjectHierarchyChartsPlugin.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 __qSlicerSubjectHierarchyChartsPlugin_h
24 #define __qSlicerSubjectHierarchyChartsPlugin_h
25 
26 // SubjectHierarchy Plugins includes
28 
29 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h"
30 
31 class qSlicerSubjectHierarchyChartsPluginPrivate;
33 
35 class Q_SLICER_MODULE_SUBJECTHIERARCHY_WIDGETS_EXPORT qSlicerSubjectHierarchyChartsPlugin : public qSlicerSubjectHierarchyAbstractPlugin
36 {
37 public:
38  Q_OBJECT
39 
40 public:
42  qSlicerSubjectHierarchyChartsPlugin(QObject* parent = nullptr);
44 
45 public:
54  vtkMRMLNode* node,
55  vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID )const override;
56 
63  double canOwnSubjectHierarchyItem(vtkIdType itemID)const override;
64 
67  Q_INVOKABLE const QString roleForPlugin()const override;
68 
71  QIcon icon(vtkIdType itemID) override;
72 
74  QIcon visibilityIcon(int visible) override;
75 
77  void editProperties(vtkIdType itemID) override;
78 
80  void setDisplayVisibility(vtkIdType itemID, int visible) override;
81 
84  int getDisplayVisibility(vtkIdType itemID)const override;
85 
86 protected:
88  vtkMRMLChartViewNode* getChartViewNode()const;
89 
90 protected:
91  QScopedPointer<qSlicerSubjectHierarchyChartsPluginPrivate> d_ptr;
92 
93 private:
94  Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyChartsPlugin);
96 };
97 
98 #endif
virtual Q_INVOKABLE void setDisplayVisibility(vtkIdType itemID, int visible)
Set display visibility of an owned subject hierarchy item.
virtual QIcon icon(vtkIdType itemID)
virtual Q_INVOKABLE const QString roleForPlugin() const
virtual double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const
qSlicerSubjectHierarchyAbstractPlugin Superclass
Abstract plugin for handling Subject Hierarchy items.
virtual Q_INVOKABLE void editProperties(vtkIdType itemID)
Open module belonging to item and set inputs in opened module.
QScopedPointer< qSlicerSubjectHierarchyChartsPluginPrivate > d_ptr
virtual Q_INVOKABLE int getDisplayVisibility(vtkIdType itemID) const
MRML node to represent chart view parameters.
virtual Q_INVOKABLE QIcon visibilityIcon(int visible)
Get visibility icon for a visibility state.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const