Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerPlotsModuleWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2015 Brigham and Women's Hospital (BWH) All Rights Reserved.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Andras Lasso (PerkLab, Queen's
17  University) and Kevin Wang (Princess Margaret Hospital, Toronto) and was
18  supported through OCAIRO and the Applied Cancer Research Unit program of
19  Cancer Care Ontario.
20 
21 ==============================================================================*/
22 
23 #ifndef __qSlicerTransformsModuleWidget_h
24 #define __qSlicerTransformsModuleWidget_h
25 
26 // Slicer includes
28 
29 // Transforms includes
30 #include "qSlicerPlotsModuleExport.h"
31 
32 class vtkMatrix4x4;
33 class vtkMRMLNode;
34 class qSlicerPlotsModuleWidgetPrivate;
35 
36 class Q_SLICER_QTMODULES_PLOTS_EXPORT qSlicerPlotsModuleWidget :
38 {
39  Q_OBJECT
40 
41 public:
42 
44  qSlicerPlotsModuleWidget(QWidget *parent=nullptr);
45  ~qSlicerPlotsModuleWidget() override;
46 
47  bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString()) override;
48 
49 public slots:
51  void setCurrentPlotNode(vtkMRMLNode*);
52 
53 protected:
54 
55  void setup() override;
56 
57 protected slots:
58 
59  void onMRMLPlotChartNodeModified(vtkObject* caller);
60  void onNodeSelected(vtkMRMLNode* node);
61  void onLockPlotButtonClicked();
62  void onCopyPlotSeriesNodeClicked();
63  void onShowChartButtonClicked();
64  void onSeriesNodeAddedByUser(vtkMRMLNode*);
65 
66 protected:
69  //int coordinateReference()const;
70 
71 protected:
72  QScopedPointer<qSlicerPlotsModuleWidgetPrivate> d_ptr;
73 
74 private:
75  Q_DECLARE_PRIVATE(qSlicerPlotsModuleWidget);
76  Q_DISABLE_COPY(qSlicerPlotsModuleWidget);
77 };
78 
79 #endif
Q_INVOKABLE bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
Node editing.
QScopedPointer< qSlicerPlotsModuleWidgetPrivate > d_ptr
Convenient method to return the coordinate system currently selected
qSlicerAbstractModuleWidget Superclass
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167