Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkChartxyData Class Reference

#include <QmitkChartxyData.h>

Inheritance diagram for QmitkChartxyData:
Collaboration diagram for QmitkChartxyData:

Signals

void SignalDataChanged (const QList< QVariant > data)
 
void SignalErrorDataChanged (const QList< QVariant > errorData)
 
void SignalDiagramTypeChanged (const QVariant diagramType)
 
void SignalColorChanged (const QVariant color)
 
void SignalLabelChanged (const QVariant label)
 
void SignalPieLabelsChanged (const QList< QVariant > pieLabels)
 
void SignalLineStyleChanged (const QVariant lineStyle)
 
void SignalMarkerSymbolChanged (const QVariant lineStyle)
 

Public Member Functions

 QmitkChartxyData (const std::vector< std::pair< double, double > > &data, const QVariant &label, const QVariant &diagramType, const QVariant &position)
 
void SetData (const std::vector< std::pair< double, double > > &data)
 
Q_INVOKABLE QVariant GetLabelCount () const
 
Q_INVOKABLE QList< QVariant > GetYData () const
 
Q_INVOKABLE void SetYData (const QList< QVariant > &yData)
 
Q_INVOKABLE QList< QVariant > GetXData () const
 
Q_INVOKABLE void SetXData (const QList< QVariant > &xData)
 
Q_INVOKABLE QList< QVariant > GetXErrorDataPlus () const
 
Q_INVOKABLE void SetXErrorDataPlus (const QList< QVariant > &errorData)
 
Q_INVOKABLE QList< QVariant > GetXErrorDataMinus () const
 
Q_INVOKABLE void SetXErrorDataMinus (const QList< QVariant > &errorData)
 
Q_INVOKABLE QList< QVariant > GetYErrorDataPlus () const
 
Q_INVOKABLE void SetYErrorDataPlus (const QList< QVariant > &errorData)
 
Q_INVOKABLE QList< QVariant > GetYErrorDataMinus () const
 
Q_INVOKABLE void SetYErrorDataMinus (const QList< QVariant > &errorData)
 
Q_INVOKABLE QVariant GetChartType () const
 
Q_INVOKABLE void SetChartType (const QVariant &chartType)
 
Q_INVOKABLE QVariant GetLabel () const
 
Q_INVOKABLE void SetLabel (const QVariant &label)
 
Q_INVOKABLE QList< QVariant > GetPieLabels () const
 
Q_INVOKABLE void SetPieLabels (const QList< QVariant > &pieLabels)
 
Q_INVOKABLE QVariant GetColor () const
 
Q_INVOKABLE void SetColor (const QVariant &color)
 
Q_INVOKABLE QVariant GetMarkerSymbol () const
 
Q_INVOKABLE void SetMarkerSymbol (const QVariant &markerSymbol)
 
Q_INVOKABLE QVariant GetLineStyle () const
 
Q_INVOKABLE void SetLineStyle (const QVariant &lineStyle)
 
void ClearData ()
 Clears the Data. More...
 
 QmitkChartxyData ()
 

Properties

QVariant m_LabelCount
 
QList< QVariant > m_YData
 
QList< QVariant > m_XData
 
QList< QVariant > m_XErrorDataPlus
 
QList< QVariant > m_XErrorDataMinus
 
QList< QVariant > m_YErrorDataPlus
 
QList< QVariant > m_YErrorDataMinus
 
QList< QVariant > m_PieLabels
 
QVariant m_ChartType
 
QVariant m_Color
 
QVariant m_Label
 
QVariant m_LineStyleName
 
QVariant m_MarkerSymbolName
 

Detailed Description

/brief This class holds the actual data for the chart generation with C3. data can be loaded in constructor directly or with SetData It is derived from QObject, because we need Q_PROPERTIES to send Data via QWebChannel to JavaScript.

Definition at line 22 of file QmitkChartxyData.h.

Constructor & Destructor Documentation

◆ QmitkChartxyData() [1/2]

QmitkChartxyData::QmitkChartxyData ( const std::vector< std::pair< double, double > > &  data,
const QVariant &  label,
const QVariant &  diagramType,
const QVariant &  position 
)
explicit

◆ QmitkChartxyData() [2/2]

QmitkChartxyData::QmitkChartxyData ( )
inline

Definition at line 142 of file QmitkChartxyData.h.

Member Function Documentation

◆ ClearData()

void QmitkChartxyData::ClearData ( )

Clears the Data.

This function clears the data (including error data).

◆ GetChartType()

Q_INVOKABLE QVariant QmitkChartxyData::GetChartType ( ) const
inline

Definition at line 97 of file QmitkChartxyData.h.

References m_ChartType.

◆ GetColor()

Q_INVOKABLE QVariant QmitkChartxyData::GetColor ( ) const
inline

Definition at line 114 of file QmitkChartxyData.h.

References m_Color.

◆ GetLabel()

Q_INVOKABLE QVariant QmitkChartxyData::GetLabel ( ) const
inline

Definition at line 104 of file QmitkChartxyData.h.

References m_Label.

◆ GetLabelCount()

Q_INVOKABLE QVariant QmitkChartxyData::GetLabelCount ( ) const
inline

Definition at line 53 of file QmitkChartxyData.h.

References m_LabelCount.

◆ GetLineStyle()

Q_INVOKABLE QVariant QmitkChartxyData::GetLineStyle ( ) const
inline

Definition at line 128 of file QmitkChartxyData.h.

References m_LineStyleName.

◆ GetMarkerSymbol()

Q_INVOKABLE QVariant QmitkChartxyData::GetMarkerSymbol ( ) const
inline

Definition at line 121 of file QmitkChartxyData.h.

References m_MarkerSymbolName.

◆ GetPieLabels()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetPieLabels ( ) const
inline

Definition at line 111 of file QmitkChartxyData.h.

References m_PieLabels.

◆ GetXData()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetXData ( ) const
inline

Definition at line 62 of file QmitkChartxyData.h.

References m_XData.

◆ GetXErrorDataMinus()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetXErrorDataMinus ( ) const
inline

Definition at line 76 of file QmitkChartxyData.h.

References m_XErrorDataMinus.

◆ GetXErrorDataPlus()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetXErrorDataPlus ( ) const
inline

Definition at line 69 of file QmitkChartxyData.h.

References m_XErrorDataPlus.

◆ GetYData()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetYData ( ) const
inline

Definition at line 55 of file QmitkChartxyData.h.

References m_YData.

◆ GetYErrorDataMinus()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetYErrorDataMinus ( ) const
inline

Definition at line 90 of file QmitkChartxyData.h.

References m_YErrorDataMinus.

◆ GetYErrorDataPlus()

Q_INVOKABLE QList<QVariant> QmitkChartxyData::GetYErrorDataPlus ( ) const
inline

Definition at line 83 of file QmitkChartxyData.h.

References m_YErrorDataPlus.

◆ SetChartType()

Q_INVOKABLE void QmitkChartxyData::SetChartType ( const QVariant &  chartType)
inline

Definition at line 98 of file QmitkChartxyData.h.

References m_ChartType, and SignalDiagramTypeChanged().

◆ SetColor()

Q_INVOKABLE void QmitkChartxyData::SetColor ( const QVariant &  color)
inline

Definition at line 115 of file QmitkChartxyData.h.

References m_Color, and SignalColorChanged().

◆ SetData()

void QmitkChartxyData::SetData ( const std::vector< std::pair< double, double > > &  data)

◆ SetLabel()

Q_INVOKABLE void QmitkChartxyData::SetLabel ( const QVariant &  label)
inline

Definition at line 105 of file QmitkChartxyData.h.

References m_Label, and SignalLabelChanged().

◆ SetLineStyle()

Q_INVOKABLE void QmitkChartxyData::SetLineStyle ( const QVariant &  lineStyle)
inline

Definition at line 129 of file QmitkChartxyData.h.

References m_LineStyleName, and SignalLineStyleChanged().

◆ SetMarkerSymbol()

Q_INVOKABLE void QmitkChartxyData::SetMarkerSymbol ( const QVariant &  markerSymbol)
inline

Definition at line 122 of file QmitkChartxyData.h.

References m_MarkerSymbolName, and SignalMarkerSymbolChanged().

◆ SetPieLabels()

Q_INVOKABLE void QmitkChartxyData::SetPieLabels ( const QList< QVariant > &  pieLabels)
inline

Definition at line 112 of file QmitkChartxyData.h.

References m_PieLabels.

◆ SetXData()

Q_INVOKABLE void QmitkChartxyData::SetXData ( const QList< QVariant > &  xData)
inline

Definition at line 63 of file QmitkChartxyData.h.

References m_XData, and SignalDataChanged().

◆ SetXErrorDataMinus()

Q_INVOKABLE void QmitkChartxyData::SetXErrorDataMinus ( const QList< QVariant > &  errorData)
inline

Definition at line 77 of file QmitkChartxyData.h.

References m_XErrorDataMinus, and SignalErrorDataChanged().

◆ SetXErrorDataPlus()

Q_INVOKABLE void QmitkChartxyData::SetXErrorDataPlus ( const QList< QVariant > &  errorData)
inline

Definition at line 70 of file QmitkChartxyData.h.

References m_XErrorDataPlus, and SignalErrorDataChanged().

◆ SetYData()

Q_INVOKABLE void QmitkChartxyData::SetYData ( const QList< QVariant > &  yData)
inline

Definition at line 56 of file QmitkChartxyData.h.

References m_YData, and SignalDataChanged().

◆ SetYErrorDataMinus()

Q_INVOKABLE void QmitkChartxyData::SetYErrorDataMinus ( const QList< QVariant > &  errorData)
inline

Definition at line 91 of file QmitkChartxyData.h.

References m_YErrorDataMinus, and SignalErrorDataChanged().

◆ SetYErrorDataPlus()

Q_INVOKABLE void QmitkChartxyData::SetYErrorDataPlus ( const QList< QVariant > &  errorData)
inline

Definition at line 84 of file QmitkChartxyData.h.

References m_YErrorDataPlus, and SignalErrorDataChanged().

◆ SignalColorChanged

void QmitkChartxyData::SignalColorChanged ( const QVariant  color)
signal

Referenced by SetColor().

◆ SignalDataChanged

void QmitkChartxyData::SignalDataChanged ( const QList< QVariant >  data)
signal

Referenced by SetXData(), and SetYData().

◆ SignalDiagramTypeChanged

void QmitkChartxyData::SignalDiagramTypeChanged ( const QVariant  diagramType)
signal

Referenced by SetChartType().

◆ SignalErrorDataChanged

void QmitkChartxyData::SignalErrorDataChanged ( const QList< QVariant >  errorData)
signal

◆ SignalLabelChanged

void QmitkChartxyData::SignalLabelChanged ( const QVariant  label)
signal

Referenced by SetLabel().

◆ SignalLineStyleChanged

void QmitkChartxyData::SignalLineStyleChanged ( const QVariant  lineStyle)
signal

Referenced by SetLineStyle().

◆ SignalMarkerSymbolChanged

void QmitkChartxyData::SignalMarkerSymbolChanged ( const QVariant  lineStyle)
signal

Referenced by SetMarkerSymbol().

◆ SignalPieLabelsChanged

void QmitkChartxyData::SignalPieLabelsChanged ( const QList< QVariant >  pieLabels)
signal

Property Documentation

◆ m_ChartType

QVariant QmitkChartxyData::m_ChartType
readwrite

Definition at line 38 of file QmitkChartxyData.h.

Referenced by GetChartType(), and SetChartType().

◆ m_Color

QVariant QmitkChartxyData::m_Color
readwrite

Definition at line 39 of file QmitkChartxyData.h.

Referenced by GetColor(), and SetColor().

◆ m_Label

QVariant QmitkChartxyData::m_Label
readwrite

Definition at line 40 of file QmitkChartxyData.h.

Referenced by GetLabel(), and SetLabel().

◆ m_LabelCount

QVariant QmitkChartxyData::m_LabelCount
read

Definition at line 26 of file QmitkChartxyData.h.

Referenced by GetLabelCount().

◆ m_LineStyleName

QVariant QmitkChartxyData::m_LineStyleName
readwrite

Definition at line 41 of file QmitkChartxyData.h.

Referenced by GetLineStyle(), and SetLineStyle().

◆ m_MarkerSymbolName

QVariant QmitkChartxyData::m_MarkerSymbolName
readwrite

Definition at line 42 of file QmitkChartxyData.h.

Referenced by GetMarkerSymbol(), and SetMarkerSymbol().

◆ m_PieLabels

QList< QVariant > QmitkChartxyData::m_PieLabels
readwrite

Definition at line 36 of file QmitkChartxyData.h.

Referenced by GetPieLabels(), and SetPieLabels().

◆ m_XData

QList< QVariant > QmitkChartxyData::m_XData
readwrite

Definition at line 27 of file QmitkChartxyData.h.

Referenced by GetXData(), and SetXData().

◆ m_XErrorDataMinus

QList< QVariant > QmitkChartxyData::m_XErrorDataMinus
readwrite

Definition at line 30 of file QmitkChartxyData.h.

Referenced by GetXErrorDataMinus(), and SetXErrorDataMinus().

◆ m_XErrorDataPlus

QList< QVariant > QmitkChartxyData::m_XErrorDataPlus
readwrite

Definition at line 28 of file QmitkChartxyData.h.

Referenced by GetXErrorDataPlus(), and SetXErrorDataPlus().

◆ m_YData

QList< QVariant > QmitkChartxyData::m_YData
readwrite

Definition at line 26 of file QmitkChartxyData.h.

Referenced by GetYData(), and SetYData().

◆ m_YErrorDataMinus

QList< QVariant > QmitkChartxyData::m_YErrorDataMinus
readwrite

Definition at line 34 of file QmitkChartxyData.h.

Referenced by GetYErrorDataMinus(), and SetYErrorDataMinus().

◆ m_YErrorDataPlus

QList< QVariant > QmitkChartxyData::m_YErrorDataPlus
readwrite

Definition at line 32 of file QmitkChartxyData.h.

Referenced by GetYErrorDataPlus(), and SetYErrorDataPlus().


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