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
qSlicerSubjectHierarchyPlotsPlugin.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Kapteyn Astronomical Institute
4 University of Groningen, Groningen, Netherlands. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Davide Punzo, Kapteyn Astronomical Institute,
16 and was supported through the European Research Council grant nr. 291531.
17
18==============================================================================*/
19
20#ifndef __qSlicerSubjectHierarchyPlotsPlugin_h
21#define __qSlicerSubjectHierarchyPlotsPlugin_h
22
23// SubjectHierarchy Plugins includes
25
26#include "qSlicerPlotsSubjectHierarchyPluginsExport.h"
27
28class qSlicerSubjectHierarchyPlotsPluginPrivate;
31
32
33class Q_SLICER_PLOTS_SUBJECT_HIERARCHY_PLUGINS_EXPORT qSlicerSubjectHierarchyPlotsPlugin : public qSlicerSubjectHierarchyAbstractPlugin
34{
35public:
36 Q_OBJECT
37
38public:
40 qSlicerSubjectHierarchyPlotsPlugin(QObject* parent = nullptr);
42
43public:
44
47
56 vtkMRMLNode* node,
57 vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID )const override;
58
65 double canOwnSubjectHierarchyItem(vtkIdType itemID)const override;
66
69 Q_INVOKABLE const QString roleForPlugin()const override;
70
73 QIcon icon(vtkIdType itemID) override;
74
76 QIcon visibilityIcon(int visible) override;
77
79 void setDisplayVisibility(vtkIdType itemID, int visible) override;
80
83 int getDisplayVisibility(vtkIdType itemID)const override;
84
85protected:
88
89protected:
90 QScopedPointer<qSlicerSubjectHierarchyPlotsPluginPrivate> d_ptr;
91
92private:
93 Q_DECLARE_PRIVATE(qSlicerSubjectHierarchyPlotsPlugin);
95};
96
97#endif
qSlicerSubjectHierarchyAbstractPlugin(QObject *parent=nullptr)
Q_INVOKABLE const QString roleForPlugin() const override
void setPlotsLogic(vtkSlicerPlotsLogic *plotsLogic)
Set plots module logic. Required for switching layouts and showing plot in layout.
qSlicerSubjectHierarchyPlotsPlugin(QObject *parent=nullptr)
QIcon visibilityIcon(int visible) override
Get visibility icon for a visibility state.
qSlicerSubjectHierarchyAbstractPlugin Superclass
int getDisplayVisibility(vtkIdType itemID) const override
QScopedPointer< qSlicerSubjectHierarchyPlotsPluginPrivate > d_ptr
QIcon icon(vtkIdType itemID) override
double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const override
void setDisplayVisibility(vtkIdType itemID, int visible) override
Set display visibility of a owned subject hierarchy item.
vtkMRMLPlotViewNode * getPlotViewNode() const
Return the chart view node object from the layout.
double canOwnSubjectHierarchyItem(vtkIdType itemID) const override
Abstract Superclass for all specific types of MRML nodes.
MRML node to represent Plot view parameters.
Slicer logic class for double array manipulation This class manages the logic associated with reading...