Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLChartViewControllerWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2005 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 ==============================================================================*/
17 
18 #ifndef __qMRMLChartViewControllerWidget_h
19 #define __qMRMLChartViewControllerWidget_h
20 
21 // CTK includes
22 #include <ctkVTKObject.h>
23 
24 // qMRMLWidget includes
25 #include "qMRMLViewControllerBar.h"
26 class qMRMLChartViewControllerWidgetPrivate;
27 class qMRMLChartView;
28 
29 // MRML includes
31 
37 class QMRML_WIDGETS_EXPORT qMRMLChartViewControllerWidget
38  : public qMRMLViewControllerBar
39 {
40  Q_OBJECT
41  QVTK_OBJECT
42 
43 public:
46 
48  explicit qMRMLChartViewControllerWidget(QWidget* parent = 0);
50 
53  void setViewLabel(const QString& newViewLabel);
54 
56  QString viewLabel()const;
57 
58 public slots:
60  virtual void setMRMLScene(vtkMRMLScene* newScene);
61 
63  void setChartView(qMRMLChartView* ChartView);
64 
67  void setMRMLChartViewNode(vtkMRMLChartViewNode* chartViewNode);
68 
70  void showLines(bool show);
71 
73  void showMarkers(bool show);
74 
76  void showGrid(bool show);
77 
79  void showLegend(bool show);
80 
83  void showTitle(bool show);
84 
87  void showXAxisLabel(bool show);
88 
91  void showYAxisLabel(bool show);
92 
95  void setTitle(const QString&);
96 
99  void setXAxisLabel(const QString&);
100 
103  void setYAxisLabel(const QString&);
104 
106  void editTitle();
107 
109  void editXAxisLabel();
110 
112  void editYAxisLabel();
113 
114 protected slots:
115  void updateWidgetFromMRML();
116 
117 private:
118  Q_DECLARE_PRIVATE(qMRMLChartViewControllerWidget);
119  Q_DISABLE_COPY(qMRMLChartViewControllerWidget);
120 };
121 
122 #endif
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
MRML node to represent chart view parameters.
qMRMLChartView is the display canvas for a Chart.
virtual void setMRMLScene(vtkMRMLScene *newScene)
Set the MRML scene associated with the widget.
qMRMLViewControllerBar Superclass
Superclass typedef.