Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef QmitkChartData_h
14 #define QmitkChartData_h
18 #include <QApplication>
21 #include <QFileDialog>
22 #include <boost/algorithm/string.hpp>
53 void SetAppearance(
bool showSubChart =
true,
bool usePercentageInPieChart =
false);
154 QString ds = QUrl::fromPercentEncoding(datafromjs.toLatin1());
156 QString filename = QFileDialog::getSaveFileName(
160 tr(
"Scalable Vector Graphics (*.svg)") );
161 if (filename.isEmpty())
164 std::string out_image = ds.toStdString();
165 boost::algorithm::replace_first(out_image,
"data:image/svg+xml,",
"");
166 std::ofstream outfile(filename.toStdString());
167 outfile.write(out_image.c_str(), out_image.size());
183 QVariant m_numberDatasets;
Q_INVOKABLE void SetYAxisScale(const QVariant &YAxisScale)
Q_INVOKABLE QVariant GetThemeName() const
void SignalMaxValueYViewChanged(const QVariant maxValueYView)
Q_INVOKABLE void SetTitle(const QVariant &title)
Q_INVOKABLE QVariant GetLegendPosition() const
void SignalXAxisLabelChanged(const QVariant label)
Q_INVOKABLE QVariant GetYAxisLabel() const
Q_INVOKABLE QVariant GetShowLegend() const
void SignalMaxValueXViewChanged(const QVariant maxValueXView)
Q_INVOKABLE void SetMinValueXView(const QVariant &minValueXView)
void SignalYAxisLabelChanged(const QVariant label)
void SignalMinValueXViewChanged(const QVariant minValueXView)
void SetAppearance(bool showSubChart=true, bool usePercentageInPieChart=false)
Q_INVOKABLE void SetDataPointSize(const QVariant &showDataPoints)
Q_INVOKABLE void SetXAxisLabel(const QVariant &label)
Q_INVOKABLE QVariant GetMinValueXView() const
Q_INVOKABLE QVariant GetYAxisScale() const
Q_INVOKABLE void SetShowErrorBars(const QVariant &show)
void SignalStackedDataChanged(const QVariant stackedData)
void SignalUsePercentageInPieChartChanged(const QVariant usePercentageInPieChart)
QVariant m_LegendPosition
void SignalShowSubchartChanged(const QVariant showSubchart)
Q_INVOKABLE QVariant GetMinValueYView() const
Q_INVOKABLE void SetMinValueYView(const QVariant &minValueYView)
Q_INVOKABLE void SetMaxValueXView(const QVariant &maxValueXView)
Q_INVOKABLE void SetLegendPosition(const QVariant &legendPosition)
Q_INVOKABLE QVariant GetMaxValueYView() const
Q_INVOKABLE QVariant GetTitle() const
This class holds the relevant properties for the chart generation with C3 such as labels and diagram ...
Q_INVOKABLE void SetYAxisLabel(const QVariant &label)
Q_INVOKABLE QVariant GetShowErrorBars() const
void SignalShowLegendChanged(const QVariant show)
Q_INVOKABLE void SetUsePercentageInPieChart(const QVariant &usePercentageInPieChart)
void SignalLegendPositionChanged(const QVariant legendPosition)
void SignalThemeNameChanged(const QVariant themeName)
Q_INVOKABLE void SetShowSubchart(const QVariant &showSubchart)
Q_INVOKABLE QVariant GetShowSubchart() const
Q_INVOKABLE void SetThemeName(const QVariant &themeName)
Q_INVOKABLE QVariant GetXAxisLabel() const
void SignalShowErrorBarsChanged(const QVariant show)
void SignalTitleChanged(const QVariant title)
Q_INVOKABLE void SetShowLegend(const QVariant &show)
void EmitSignalImageUrl()
Q_INVOKABLE QVariant GetMaxValueXView() const
Q_INVOKABLE void SetMaxValueYView(const QVariant &maxValueYView)
QVariant m_UsePercentageInPieChart
void slotImageUrl(const QString &datafromjs)
Q_INVOKABLE QVariant GetStackedData() const
void SignalYAxisScaleChanged(const QVariant YAxisScale)
void SignalMinValueYViewChanged(const QVariant minValueYView)
Q_INVOKABLE QVariant GetUsePercentageInPieChart() const
Q_INVOKABLE void SetStackedData(const QVariant &stackedData)
Q_INVOKABLE QVariant GetDataPointSize() const
void SignalDataPointSizeChanged(const QVariant showDataPoints)