Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkChartData Class Reference

This class holds the relevant properties for the chart generation with C3 such as labels and diagram type. It is derived from QObject, because we need Q_PROPERTIES to send Data via QWebChannel to JavaScript. More...

#include <QmitkChartData.h>

Inheritance diagram for QmitkChartData:
Collaboration diagram for QmitkChartData:

Public Slots

void slotImageUrl (const QString &datafromjs)
 

Signals

void SignalYAxisLabelChanged (const QVariant label)
 
void SignalXAxisLabelChanged (const QVariant label)
 
void SignalLegendPositionChanged (const QVariant legendPosition)
 
void SignalShowLegendChanged (const QVariant show)
 
void SignalShowErrorBarsChanged (const QVariant show)
 
void SignalYAxisScaleChanged (const QVariant YAxisScale)
 
void SignalTitleChanged (const QVariant title)
 
void SignalThemeNameChanged (const QVariant themeName)
 
void SignalShowSubchartChanged (const QVariant showSubchart)
 
void SignalUsePercentageInPieChartChanged (const QVariant usePercentageInPieChart)
 
void SignalDataPointSizeChanged (const QVariant showDataPoints)
 
void SignalStackedDataChanged (const QVariant stackedData)
 
void SignalMinValueXViewChanged (const QVariant minValueXView)
 
void SignalMaxValueXViewChanged (const QVariant maxValueXView)
 
void SignalMinValueYViewChanged (const QVariant minValueYView)
 
void SignalMaxValueYViewChanged (const QVariant maxValueYView)
 
void SignalImageUrl ()
 

Public Member Functions

 QmitkChartData ()
 
void SetAppearance (bool showSubChart=true, bool usePercentageInPieChart=false)
 
Q_INVOKABLE QVariant GetXAxisLabel () const
 
Q_INVOKABLE void SetXAxisLabel (const QVariant &label)
 
Q_INVOKABLE QVariant GetYAxisLabel () const
 
Q_INVOKABLE void SetYAxisLabel (const QVariant &label)
 
Q_INVOKABLE QVariant GetTitle () const
 
Q_INVOKABLE void SetTitle (const QVariant &title)
 
Q_INVOKABLE QVariant GetThemeName () const
 
Q_INVOKABLE void SetThemeName (const QVariant &themeName)
 
Q_INVOKABLE QVariant GetLegendPosition () const
 
Q_INVOKABLE void SetLegendPosition (const QVariant &legendPosition)
 
Q_INVOKABLE QVariant GetShowLegend () const
 
Q_INVOKABLE void SetShowLegend (const QVariant &show)
 
Q_INVOKABLE QVariant GetShowErrorBars () const
 
Q_INVOKABLE void SetShowErrorBars (const QVariant &show)
 
Q_INVOKABLE QVariant GetYAxisScale () const
 
Q_INVOKABLE void SetYAxisScale (const QVariant &YAxisScale)
 
Q_INVOKABLE QVariant GetShowSubchart () const
 
Q_INVOKABLE void SetShowSubchart (const QVariant &showSubchart)
 
Q_INVOKABLE QVariant GetUsePercentageInPieChart () const
 
Q_INVOKABLE void SetUsePercentageInPieChart (const QVariant &usePercentageInPieChart)
 
Q_INVOKABLE QVariant GetDataPointSize () const
 
Q_INVOKABLE void SetDataPointSize (const QVariant &showDataPoints)
 
Q_INVOKABLE QVariant GetStackedData () const
 
Q_INVOKABLE void SetStackedData (const QVariant &stackedData)
 
Q_INVOKABLE QVariant GetMinValueXView () const
 
Q_INVOKABLE void SetMinValueXView (const QVariant &minValueXView)
 
Q_INVOKABLE QVariant GetMaxValueXView () const
 
Q_INVOKABLE void SetMaxValueXView (const QVariant &maxValueXView)
 
Q_INVOKABLE QVariant GetMinValueYView () const
 
Q_INVOKABLE void SetMinValueYView (const QVariant &minValueYView)
 
Q_INVOKABLE QVariant GetMaxValueYView () const
 
Q_INVOKABLE void SetMaxValueYView (const QVariant &maxValueYView)
 
void EmitSignalImageUrl ()
 

Properties

QVariant m_xAxisLabel
 
QVariant m_yAxisLabel
 
QVariant m_chartTitle
 
QVariant m_themeName
 
QVariant m_LegendPosition
 
QVariant m_ShowLegend
 
QVariant m_ShowErrorBars
 
QVariant m_YAxisScale
 
QVariant m_ShowSubchart
 
QVariant m_UsePercentageInPieChart
 
QVariant m_DataPointSize
 
QVariant m_StackedData
 
QVariant m_MinValueXView
 
QVariant m_MaxValueXView
 
QVariant m_MinValueYView
 
QVariant m_MaxValueYView
 

Detailed Description

This class holds the relevant properties for the chart generation with C3 such as labels and diagram type. It is derived from QObject, because we need Q_PROPERTIES to send Data via QWebChannel to JavaScript.

See also
The actual data for the chart generation is in QmitkC3xyData!

Definition at line 29 of file QmitkChartData.h.

Constructor & Destructor Documentation

◆ QmitkChartData()

QmitkChartData::QmitkChartData ( )

Member Function Documentation

◆ EmitSignalImageUrl()

void QmitkChartData::EmitSignalImageUrl ( )
inline

Definition at line 127 of file QmitkChartData.h.

References SignalImageUrl().

◆ GetDataPointSize()

Q_INVOKABLE QVariant QmitkChartData::GetDataPointSize ( ) const
inline

Definition at line 93 of file QmitkChartData.h.

References m_DataPointSize.

◆ GetLegendPosition()

Q_INVOKABLE QVariant QmitkChartData::GetLegendPosition ( ) const
inline

Definition at line 71 of file QmitkChartData.h.

References m_LegendPosition.

◆ GetMaxValueXView()

Q_INVOKABLE QVariant QmitkChartData::GetMaxValueXView ( ) const
inline

Definition at line 106 of file QmitkChartData.h.

References m_MaxValueXView.

◆ GetMaxValueYView()

Q_INVOKABLE QVariant QmitkChartData::GetMaxValueYView ( ) const
inline

Definition at line 120 of file QmitkChartData.h.

References m_MaxValueYView.

◆ GetMinValueXView()

Q_INVOKABLE QVariant QmitkChartData::GetMinValueXView ( ) const
inline

Definition at line 99 of file QmitkChartData.h.

References m_MinValueXView.

◆ GetMinValueYView()

Q_INVOKABLE QVariant QmitkChartData::GetMinValueYView ( ) const
inline

Definition at line 113 of file QmitkChartData.h.

References m_MinValueYView.

◆ GetShowErrorBars()

Q_INVOKABLE QVariant QmitkChartData::GetShowErrorBars ( ) const
inline

Definition at line 77 of file QmitkChartData.h.

References m_ShowErrorBars.

◆ GetShowLegend()

Q_INVOKABLE QVariant QmitkChartData::GetShowLegend ( ) const
inline

Definition at line 74 of file QmitkChartData.h.

References m_ShowLegend.

◆ GetShowSubchart()

Q_INVOKABLE QVariant QmitkChartData::GetShowSubchart ( ) const
inline

Definition at line 87 of file QmitkChartData.h.

References m_ShowSubchart.

◆ GetStackedData()

Q_INVOKABLE QVariant QmitkChartData::GetStackedData ( ) const
inline

Definition at line 96 of file QmitkChartData.h.

References m_StackedData.

◆ GetThemeName()

Q_INVOKABLE QVariant QmitkChartData::GetThemeName ( ) const
inline

Definition at line 64 of file QmitkChartData.h.

References m_themeName.

◆ GetTitle()

Q_INVOKABLE QVariant QmitkChartData::GetTitle ( ) const
inline

Definition at line 61 of file QmitkChartData.h.

References m_chartTitle.

◆ GetUsePercentageInPieChart()

Q_INVOKABLE QVariant QmitkChartData::GetUsePercentageInPieChart ( ) const
inline

Definition at line 90 of file QmitkChartData.h.

References m_UsePercentageInPieChart.

◆ GetXAxisLabel()

Q_INVOKABLE QVariant QmitkChartData::GetXAxisLabel ( ) const
inline

Definition at line 55 of file QmitkChartData.h.

References m_xAxisLabel.

◆ GetYAxisLabel()

Q_INVOKABLE QVariant QmitkChartData::GetYAxisLabel ( ) const
inline

Definition at line 58 of file QmitkChartData.h.

References m_yAxisLabel.

◆ GetYAxisScale()

Q_INVOKABLE QVariant QmitkChartData::GetYAxisScale ( ) const
inline

Definition at line 84 of file QmitkChartData.h.

References m_YAxisScale.

◆ SetAppearance()

void QmitkChartData::SetAppearance ( bool  showSubChart = true,
bool  usePercentageInPieChart = false 
)

◆ SetDataPointSize()

Q_INVOKABLE void QmitkChartData::SetDataPointSize ( const QVariant &  showDataPoints)
inline

Definition at line 94 of file QmitkChartData.h.

References m_DataPointSize, and SignalDataPointSizeChanged().

◆ SetLegendPosition()

Q_INVOKABLE void QmitkChartData::SetLegendPosition ( const QVariant &  legendPosition)
inline

Definition at line 72 of file QmitkChartData.h.

References m_LegendPosition, and SignalLegendPositionChanged().

◆ SetMaxValueXView()

Q_INVOKABLE void QmitkChartData::SetMaxValueXView ( const QVariant &  maxValueXView)
inline

Definition at line 107 of file QmitkChartData.h.

References m_MaxValueXView, and SignalMaxValueXViewChanged().

◆ SetMaxValueYView()

Q_INVOKABLE void QmitkChartData::SetMaxValueYView ( const QVariant &  maxValueYView)
inline

Definition at line 121 of file QmitkChartData.h.

References m_MaxValueYView, and SignalMaxValueYViewChanged().

◆ SetMinValueXView()

Q_INVOKABLE void QmitkChartData::SetMinValueXView ( const QVariant &  minValueXView)
inline

Definition at line 100 of file QmitkChartData.h.

References m_MinValueXView, and SignalMinValueXViewChanged().

◆ SetMinValueYView()

Q_INVOKABLE void QmitkChartData::SetMinValueYView ( const QVariant &  minValueYView)
inline

Definition at line 114 of file QmitkChartData.h.

References m_MinValueYView, and SignalMinValueYViewChanged().

◆ SetShowErrorBars()

Q_INVOKABLE void QmitkChartData::SetShowErrorBars ( const QVariant &  show)
inline

Definition at line 78 of file QmitkChartData.h.

References m_ShowErrorBars, and SignalShowErrorBarsChanged().

◆ SetShowLegend()

Q_INVOKABLE void QmitkChartData::SetShowLegend ( const QVariant &  show)
inline

Definition at line 75 of file QmitkChartData.h.

References m_ShowLegend, and SignalShowLegendChanged().

◆ SetShowSubchart()

Q_INVOKABLE void QmitkChartData::SetShowSubchart ( const QVariant &  showSubchart)
inline

Definition at line 88 of file QmitkChartData.h.

References m_ShowSubchart, and SignalShowSubchartChanged().

◆ SetStackedData()

Q_INVOKABLE void QmitkChartData::SetStackedData ( const QVariant &  stackedData)
inline

Definition at line 97 of file QmitkChartData.h.

References m_StackedData, and SignalStackedDataChanged().

◆ SetThemeName()

Q_INVOKABLE void QmitkChartData::SetThemeName ( const QVariant &  themeName)
inline

Definition at line 65 of file QmitkChartData.h.

References m_themeName, and SignalThemeNameChanged().

◆ SetTitle()

Q_INVOKABLE void QmitkChartData::SetTitle ( const QVariant &  title)
inline

Definition at line 62 of file QmitkChartData.h.

References m_chartTitle, and SignalTitleChanged().

◆ SetUsePercentageInPieChart()

Q_INVOKABLE void QmitkChartData::SetUsePercentageInPieChart ( const QVariant &  usePercentageInPieChart)
inline

◆ SetXAxisLabel()

Q_INVOKABLE void QmitkChartData::SetXAxisLabel ( const QVariant &  label)
inline

Definition at line 56 of file QmitkChartData.h.

References m_xAxisLabel, and SignalXAxisLabelChanged().

◆ SetYAxisLabel()

Q_INVOKABLE void QmitkChartData::SetYAxisLabel ( const QVariant &  label)
inline

Definition at line 59 of file QmitkChartData.h.

References m_yAxisLabel, and SignalYAxisLabelChanged().

◆ SetYAxisScale()

Q_INVOKABLE void QmitkChartData::SetYAxisScale ( const QVariant &  YAxisScale)
inline

Definition at line 85 of file QmitkChartData.h.

References m_YAxisScale, and SignalYAxisScaleChanged().

◆ SignalDataPointSizeChanged

void QmitkChartData::SignalDataPointSizeChanged ( const QVariant  showDataPoints)
signal

Referenced by SetDataPointSize().

◆ SignalImageUrl

void QmitkChartData::SignalImageUrl ( )
signal

Referenced by EmitSignalImageUrl().

◆ SignalLegendPositionChanged

void QmitkChartData::SignalLegendPositionChanged ( const QVariant  legendPosition)
signal

Referenced by SetLegendPosition().

◆ SignalMaxValueXViewChanged

void QmitkChartData::SignalMaxValueXViewChanged ( const QVariant  maxValueXView)
signal

Referenced by SetMaxValueXView().

◆ SignalMaxValueYViewChanged

void QmitkChartData::SignalMaxValueYViewChanged ( const QVariant  maxValueYView)
signal

Referenced by SetMaxValueYView().

◆ SignalMinValueXViewChanged

void QmitkChartData::SignalMinValueXViewChanged ( const QVariant  minValueXView)
signal

Referenced by SetMinValueXView().

◆ SignalMinValueYViewChanged

void QmitkChartData::SignalMinValueYViewChanged ( const QVariant  minValueYView)
signal

Referenced by SetMinValueYView().

◆ SignalShowErrorBarsChanged

void QmitkChartData::SignalShowErrorBarsChanged ( const QVariant  show)
signal

Referenced by SetShowErrorBars().

◆ SignalShowLegendChanged

void QmitkChartData::SignalShowLegendChanged ( const QVariant  show)
signal

Referenced by SetShowLegend().

◆ SignalShowSubchartChanged

void QmitkChartData::SignalShowSubchartChanged ( const QVariant  showSubchart)
signal

Referenced by SetShowSubchart().

◆ SignalStackedDataChanged

void QmitkChartData::SignalStackedDataChanged ( const QVariant  stackedData)
signal

Referenced by SetStackedData().

◆ SignalThemeNameChanged

void QmitkChartData::SignalThemeNameChanged ( const QVariant  themeName)
signal

Referenced by SetThemeName().

◆ SignalTitleChanged

void QmitkChartData::SignalTitleChanged ( const QVariant  title)
signal

Referenced by SetTitle().

◆ SignalUsePercentageInPieChartChanged

void QmitkChartData::SignalUsePercentageInPieChartChanged ( const QVariant  usePercentageInPieChart)
signal

◆ SignalXAxisLabelChanged

void QmitkChartData::SignalXAxisLabelChanged ( const QVariant  label)
signal

Referenced by SetXAxisLabel().

◆ SignalYAxisLabelChanged

void QmitkChartData::SignalYAxisLabelChanged ( const QVariant  label)
signal

Referenced by SetYAxisLabel().

◆ SignalYAxisScaleChanged

void QmitkChartData::SignalYAxisScaleChanged ( const QVariant  YAxisScale)
signal

Referenced by SetYAxisScale().

◆ slotImageUrl

void QmitkChartData::slotImageUrl ( const QString &  datafromjs)
inlineslot

Definition at line 152 of file QmitkChartData.h.

Property Documentation

◆ m_chartTitle

QVariant QmitkChartData::m_chartTitle
readwrite

Definition at line 34 of file QmitkChartData.h.

Referenced by GetTitle(), and SetTitle().

◆ m_DataPointSize

QVariant QmitkChartData::m_DataPointSize
readwrite

Definition at line 42 of file QmitkChartData.h.

Referenced by GetDataPointSize(), and SetDataPointSize().

◆ m_LegendPosition

QVariant QmitkChartData::m_LegendPosition
readwrite

Definition at line 36 of file QmitkChartData.h.

Referenced by GetLegendPosition(), and SetLegendPosition().

◆ m_MaxValueXView

QVariant QmitkChartData::m_MaxValueXView
readwrite

Definition at line 45 of file QmitkChartData.h.

Referenced by GetMaxValueXView(), and SetMaxValueXView().

◆ m_MaxValueYView

QVariant QmitkChartData::m_MaxValueYView
readwrite

Definition at line 47 of file QmitkChartData.h.

Referenced by GetMaxValueYView(), and SetMaxValueYView().

◆ m_MinValueXView

QVariant QmitkChartData::m_MinValueXView
readwrite

Definition at line 44 of file QmitkChartData.h.

Referenced by GetMinValueXView(), and SetMinValueXView().

◆ m_MinValueYView

QVariant QmitkChartData::m_MinValueYView
readwrite

Definition at line 46 of file QmitkChartData.h.

Referenced by GetMinValueYView(), and SetMinValueYView().

◆ m_ShowErrorBars

QVariant QmitkChartData::m_ShowErrorBars
readwrite

Definition at line 38 of file QmitkChartData.h.

Referenced by GetShowErrorBars(), and SetShowErrorBars().

◆ m_ShowLegend

QVariant QmitkChartData::m_ShowLegend
readwrite

Definition at line 37 of file QmitkChartData.h.

Referenced by GetShowLegend(), and SetShowLegend().

◆ m_ShowSubchart

QVariant QmitkChartData::m_ShowSubchart
readwrite

Definition at line 40 of file QmitkChartData.h.

Referenced by GetShowSubchart(), and SetShowSubchart().

◆ m_StackedData

QVariant QmitkChartData::m_StackedData
readwrite

Definition at line 43 of file QmitkChartData.h.

Referenced by GetStackedData(), and SetStackedData().

◆ m_themeName

QVariant QmitkChartData::m_themeName
readwrite

Definition at line 35 of file QmitkChartData.h.

Referenced by GetThemeName(), and SetThemeName().

◆ m_UsePercentageInPieChart

QVariant QmitkChartData::m_UsePercentageInPieChart
readwrite

Definition at line 41 of file QmitkChartData.h.

Referenced by GetUsePercentageInPieChart(), and SetUsePercentageInPieChart().

◆ m_xAxisLabel

QVariant QmitkChartData::m_xAxisLabel
readwrite

Definition at line 33 of file QmitkChartData.h.

Referenced by GetXAxisLabel(), and SetXAxisLabel().

◆ m_yAxisLabel

QVariant QmitkChartData::m_yAxisLabel
readwrite

Definition at line 33 of file QmitkChartData.h.

Referenced by GetYAxisLabel(), and SetYAxisLabel().

◆ m_YAxisScale

QVariant QmitkChartData::m_YAxisScale
readwrite

Definition at line 39 of file QmitkChartData.h.

Referenced by GetYAxisScale(), and SetYAxisScale().


The documentation for this class was generated from the following file: