Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
C3Data.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkC3Data_h
18 #define QmitkC3Data_h
19 
20 #include <QmitkC3jsWidget.h>
21 
27 class QmitkC3Data : public QObject
28 {
29  Q_OBJECT
30 
31  typedef mitk::Image::HistogramType HistogramType;
32  Q_PROPERTY(QList<QVariant> m_Frequency READ GetFrequency WRITE SetFrequency NOTIFY OnFrequencyChaned);
33  Q_PROPERTY(QList<QVariant> m_Measurement READ GetMeasurement WRITE SetMeasurement NOTIFY OnMeasurementChaned);
34 
35 public:
36  Q_INVOKABLE QList<QVariant> GetFrequency() { return m_Frequency; };
37  Q_INVOKABLE void SetFrequency(QList<QVariant> frequency) { m_Frequency = frequency; };
38 
39  Q_INVOKABLE QList<QVariant> GetMeasurement() { return m_Measurement; };
40  Q_INVOKABLE void SetMeasurement(QList<QVariant> measurement) { m_Measurement = measurement; };
41 
47  void ClearData();
48 
49  HistogramType::ConstPointer GetHistogram() { return m_Histogram; };
50  void SetHistogram(HistogramType::ConstPointer histogram) { m_Histogram = histogram; };
51 
52  //QList<QVariant> GetFrequency() { return m_Frequency; };
53  QList<QVariant>* GetFrequencyPointer() { return &m_Frequency; };
54  //void SetFrequency(QList<QVariant> frequency) { m_Frequency = frequency; };
55 
56  //QList<QVariant> GetMeasurement() { return m_Frequency; };
57  QList<QVariant>* GetMeasurementPointer() { return &m_Measurement; };
58  //void SetMeasurement(QList<QVariant> measurement) { m_Measurement = measurement; };
59 
60 signals:
61  void OnFrequencyChaned(const QList<QVariant> frequency);
62  void OnMeasurementChaned(const QList<QVariant> measurement);
63 
64 private:
68  HistogramType::ConstPointer m_Histogram;
69 
76  QList<QVariant> m_Frequency;
77 
84  QList<QVariant> m_Measurement;
85 };
86 
87 #endif //QmitkC3Data_h
QList< QVariant > * GetFrequencyPointer()
Definition: C3Data.h:53
void SetHistogram(HistogramType::ConstPointer histogram)
Definition: C3Data.h:50
QList< QVariant > m_Frequency
List of frequencies.
Definition: C3Data.h:32
Q_INVOKABLE QList< QVariant > GetMeasurement()
Definition: C3Data.h:39
Q_INVOKABLE void SetMeasurement(QList< QVariant > measurement)
Definition: C3Data.h:40
HistogramType::ConstPointer GetHistogram()
Definition: C3Data.h:49
QList< QVariant > * GetMeasurementPointer()
Definition: C3Data.h:57
itk::SmartPointer< const Self > ConstPointer
itk::Statistics::Histogram< double > HistogramType
Definition: mitkImage.h:94
Q_INVOKABLE QList< QVariant > GetFrequency()
Definition: C3Data.h:36
void OnMeasurementChaned(const QList< QVariant > measurement)
QList< QVariant > m_Measurement
List of measurements.
Definition: C3Data.h:32
void ClearData()
Clears the Data.
Definition: C3Data.cpp:19
Q_INVOKABLE void SetFrequency(QList< QVariant > frequency)
Definition: C3Data.h:37
void OnFrequencyChaned(const QList< QVariant > frequency)