Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkC3Data Class Reference

#include <C3Data.h>

Inheritance diagram for QmitkC3Data:
Collaboration diagram for QmitkC3Data:

Signals

void OnFrequencyChaned (const QList< QVariant > frequency)
 
void OnMeasurementChaned (const QList< QVariant > measurement)
 
void SignalYDataChanged (const QList< QVariant > yData)
 
void SignalXDataChanged (const QList< QVariant > xData)
 
void SignalUseLineChartChanged (const QVariant useLineChart)
 
void SignalShowSubchartChanged (const QVariant showSubchart)
 

Public Member Functions

Q_INVOKABLE QList< QVariant > GetFrequency ()
 
Q_INVOKABLE void SetFrequency (QList< QVariant > frequency)
 
Q_INVOKABLE QList< QVariant > GetMeasurement ()
 
Q_INVOKABLE void SetMeasurement (QList< QVariant > measurement)
 
void ClearData ()
 Clears the Data. More...
 
HistogramType::ConstPointer GetHistogram ()
 
void SetHistogram (HistogramType::ConstPointer histogram)
 
QList< QVariant > * GetFrequencyPointer ()
 
QList< QVariant > * GetMeasurementPointer ()
 
 QmitkC3Data ()
 
 QmitkC3Data (HistogramType::ConstPointer histogram)
 
void SetAppearance (bool useLineChart, bool showSubChart)
 
Q_INVOKABLE QList< QVariant > GetYData ()
 
Q_INVOKABLE void SetYData (QList< QVariant > yData)
 
Q_INVOKABLE QList< QVariant > GetXData ()
 
Q_INVOKABLE void SetXData (QList< QVariant > xData)
 
Q_INVOKABLE QVariant GetUseLineChart ()
 
Q_INVOKABLE void SetUseLineChart (QVariant useLineChart)
 
Q_INVOKABLE QVariant GetShowSubchart ()
 
Q_INVOKABLE void SetShowSubchart (QVariant showSubchart)
 
void ClearData ()
 Clears the Data. More...
 
HistogramType::ConstPointer GetHistogram ()
 
void SetHistogram (HistogramType::ConstPointer histogram)
 
QList< QVariant > * GetYDataPointer ()
 
QList< QVariant > * GetXDataPointer ()
 

Properties

QList< QVariant > m_Frequency
 List of frequencies. More...
 
QList< QVariant > m_Measurement
 List of measurements. More...
 
QList< QVariant > m_YData
 List of frequencies. More...
 
QList< QVariant > m_XData
 List of measurements. More...
 
QVariant m_UseLineChart
 
QVariant m_ShowSubchart
 

Detailed Description

/brief This class holds the relevant data for the chart generation with C3. Documentation: This class holds the relevant data for the chart generation with C3. It forwards the frequencies and the measurements to JavaScript. Those are then displayed in the histogram chart. It is derived from QObject, because we need Q_PROPERTIES to send Data via QWebChannel to JavaScript.

Definition at line 27 of file C3Data.h.

Constructor & Destructor Documentation

QmitkC3Data::QmitkC3Data ( )

Definition at line 19 of file QmitkC3Data.cpp.

QmitkC3Data::QmitkC3Data ( HistogramType::ConstPointer  histogram)

Definition at line 23 of file QmitkC3Data.cpp.

Member Function Documentation

void QmitkC3Data::ClearData ( )

Clears the Data.

This function clears the data.

Definition at line 19 of file C3Data.cpp.

References m_Frequency, and m_Measurement.

void QmitkC3Data::ClearData ( )

Clears the Data.

This function clears the data.

Q_INVOKABLE QList<QVariant> QmitkC3Data::GetFrequency ( )
inline

Definition at line 36 of file C3Data.h.

References m_Frequency.

QList<QVariant>* QmitkC3Data::GetFrequencyPointer ( )
inline

Definition at line 53 of file C3Data.h.

References m_Frequency.

HistogramType::ConstPointer QmitkC3Data::GetHistogram ( )
inline

Definition at line 49 of file C3Data.h.

HistogramType::ConstPointer QmitkC3Data::GetHistogram ( )
inline

Definition at line 60 of file QmitkC3Data.h.

Q_INVOKABLE QList<QVariant> QmitkC3Data::GetMeasurement ( )
inline

Definition at line 39 of file C3Data.h.

References m_Measurement.

QList<QVariant>* QmitkC3Data::GetMeasurementPointer ( )
inline

Definition at line 57 of file C3Data.h.

References m_Measurement.

Q_INVOKABLE QVariant QmitkC3Data::GetShowSubchart ( )
inline

Definition at line 51 of file QmitkC3Data.h.

References m_ShowSubchart.

Q_INVOKABLE QVariant QmitkC3Data::GetUseLineChart ( )
inline

Definition at line 48 of file QmitkC3Data.h.

References m_UseLineChart.

Q_INVOKABLE QList<QVariant> QmitkC3Data::GetXData ( )
inline

Definition at line 45 of file QmitkC3Data.h.

References m_XData.

QList<QVariant>* QmitkC3Data::GetXDataPointer ( )
inline

Definition at line 65 of file QmitkC3Data.h.

References m_XData.

Q_INVOKABLE QList<QVariant> QmitkC3Data::GetYData ( )
inline

Definition at line 42 of file QmitkC3Data.h.

References m_YData.

QList<QVariant>* QmitkC3Data::GetYDataPointer ( )
inline

Definition at line 63 of file QmitkC3Data.h.

References m_YData.

void QmitkC3Data::OnFrequencyChaned ( const QList< QVariant >  frequency)
signal
void QmitkC3Data::OnMeasurementChaned ( const QList< QVariant >  measurement)
signal
void QmitkC3Data::SetAppearance ( bool  useLineChart = false,
bool  showSubChart = true 
)

Definition at line 30 of file QmitkC3Data.cpp.

References m_ShowSubchart, and m_UseLineChart.

Q_INVOKABLE void QmitkC3Data::SetFrequency ( QList< QVariant >  frequency)
inline

Definition at line 37 of file C3Data.h.

References m_Frequency.

void QmitkC3Data::SetHistogram ( HistogramType::ConstPointer  histogram)
inline

Definition at line 50 of file C3Data.h.

void QmitkC3Data::SetHistogram ( HistogramType::ConstPointer  histogram)
inline

Definition at line 61 of file QmitkC3Data.h.

Q_INVOKABLE void QmitkC3Data::SetMeasurement ( QList< QVariant >  measurement)
inline

Definition at line 40 of file C3Data.h.

References m_Measurement.

Q_INVOKABLE void QmitkC3Data::SetShowSubchart ( QVariant  showSubchart)
inline

Definition at line 52 of file QmitkC3Data.h.

References m_ShowSubchart.

Q_INVOKABLE void QmitkC3Data::SetUseLineChart ( QVariant  useLineChart)
inline

Definition at line 49 of file QmitkC3Data.h.

References m_UseLineChart.

Q_INVOKABLE void QmitkC3Data::SetXData ( QList< QVariant >  xData)
inline

Definition at line 46 of file QmitkC3Data.h.

References m_XData.

Q_INVOKABLE void QmitkC3Data::SetYData ( QList< QVariant >  yData)
inline

Definition at line 43 of file QmitkC3Data.h.

References m_YData.

void QmitkC3Data::SignalShowSubchartChanged ( const QVariant  showSubchart)
signal
void QmitkC3Data::SignalUseLineChartChanged ( const QVariant  useLineChart)
signal
void QmitkC3Data::SignalXDataChanged ( const QList< QVariant >  xData)
signal
void QmitkC3Data::SignalYDataChanged ( const QList< QVariant >  yData)
signal

Property Documentation

QList< QVariant > QmitkC3Data::m_Frequency
readwrite

List of frequencies.

A QList which holds the frequencies of the current histogram or holds the intensities of current intensity profile.

Definition at line 32 of file C3Data.h.

Referenced by ClearData(), GetFrequency(), GetFrequencyPointer(), and SetFrequency().

QList< QVariant > QmitkC3Data::m_Measurement
readwrite

List of measurements.

A QList which holds the measurements of the current histogram or holds the distances of current intensity profile.

Definition at line 32 of file C3Data.h.

Referenced by ClearData(), GetMeasurement(), GetMeasurementPointer(), and SetMeasurement().

QVariant QmitkC3Data::m_ShowSubchart
readwrite

Definition at line 34 of file QmitkC3Data.h.

Referenced by GetShowSubchart(), SetAppearance(), and SetShowSubchart().

QVariant QmitkC3Data::m_UseLineChart
readwrite

Definition at line 33 of file QmitkC3Data.h.

Referenced by GetUseLineChart(), SetAppearance(), and SetUseLineChart().

QList< QVariant > QmitkC3Data::m_XData
readwrite

List of measurements.

A QList which holds the measurements of the current histogram or holds the distances of current intensity profile.

Definition at line 32 of file QmitkC3Data.h.

Referenced by GetXData(), GetXDataPointer(), and SetXData().

QList< QVariant > QmitkC3Data::m_YData
readwrite

List of frequencies.

A QList which holds the frequencies of the current histogram or holds the intensities of current intensity profile.

Definition at line 32 of file QmitkC3Data.h.

Referenced by GetYData(), GetYDataPointer(), and SetYData().


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