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
qMRMLPlotChartPropertiesWidget.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 __qMRMLPlotChartPropertiesWidget_h
21#define __qMRMLPlotChartPropertiesWidget_h
22
23// Qt includes
24#include <QWidget>
25
26// CTK includes
27#include <ctkPimpl.h>
28
29// qMRMLWidgets includes
30#include <qMRMLWidget.h>
31
32// Plots Widgets includes
33#include "qSlicerPlotsModuleWidgetsExport.h"
34
35class qMRMLPlotChartPropertiesWidgetPrivate;
36class vtkMRMLNode;
38
39class Q_SLICER_MODULE_PLOTS_WIDGETS_EXPORT qMRMLPlotChartPropertiesWidget : public qMRMLWidget
40{
41 Q_OBJECT
42public:
45
47 explicit qMRMLPlotChartPropertiesWidget(QWidget* parent = nullptr);
49
52
53public slots:
54
56 void setMRMLScene(vtkMRMLScene* newScene) override;
57
60
63
65 void setGridVisibility(bool show);
66
68 void setLegendVisibility(bool show);
69
72 void setTitle(const QString& str);
73
76 void setXAxisLabel(const QString& str);
77
80 void setYAxisLabel(const QString& str);
81
83 void setFontType(const QString& type);
84
86 void setTitleFontSize(double size);
87
89 void setLegendFontSize(double size);
90
92 void setAxisTitleFontSize(double size);
93
95 void setAxisLabelFontSize(double size);
96
98 void setXAxisRangeMin(double);
99 void setXAxisRangeMax(double);
100
102 void setYAxisRangeMin(double);
103 void setYAxisRangeMax(double);
104
107
108signals:
109
113
114protected:
115 QScopedPointer<qMRMLPlotChartPropertiesWidgetPrivate> d_ptr;
116
117private:
118 Q_DECLARE_PRIVATE(qMRMLPlotChartPropertiesWidget);
119 Q_DISABLE_COPY(qMRMLPlotChartPropertiesWidget);
120};
121
122#endif
void setTitleFontSize(double size)
Change the font size of the title of the plot.
void setMRMLScene(vtkMRMLScene *newScene) override
Set the scene.
void setLegendFontSize(double size)
Change the font size of the legend of the plot.
~qMRMLPlotChartPropertiesWidget() override
qMRMLWidget Superclass
Superclass typedef.
void setLegendVisibility(bool show)
Control the display of the legend in the chart.
QScopedPointer< qMRMLPlotChartPropertiesWidgetPrivate > d_ptr
void setAxisTitleFontSize(double size)
Change the font size of the title of the axes.
void setMRMLPlotChartNode(vtkMRMLPlotChartNode *plotChartNode)
Set a new PlotViewNode.
void setTitle(const QString &str)
void setFontType(const QString &type)
Change the type of font used in the plot.
qMRMLPlotChartPropertiesWidget(QWidget *parent=nullptr)
Constructors.
void setMRMLPlotChartNode(vtkMRMLNode *node)
Set a new PlotViewNode.
vtkMRMLPlotChartNode * mrmlPlotChartNode() const
Get PlotViewNode.
void setGridVisibility(bool show)
Control the display of a grid in the chart.
void setXAxisLabel(const QString &str)
void seriesNodeAddedByUser(vtkMRMLNode *)
void setYAxisLabel(const QString &str)
void setAxisLabelFontSize(double size)
Change the font size of the labels of the axes.
qMRMLWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Abstract Superclass for all specific types of MRML nodes.
MRML node for referencing a collection of data to plot.
A set of MRML Nodes that supports serialization and undo/redo.