Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkC3jsWidget.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 #ifndef QmitkD3jsWidget_h
17 #define QmitkD3jsWidget_h
18 
19 #include <QWidget>
20 #include <QVariant>
21 
22 #include "mitkImage.h"
23 #include "mitkPlanarFigure.h"
24 #include <MitkC3jsExports.h>
25 #include <mitkImageStatisticsCalculator.h>
26 
27 class MITKC3JS_EXPORT QmitkC3jsWidget : public QWidget
28 {
29  Q_OBJECT
30 
31 public:
32  explicit QmitkC3jsWidget(QWidget* parent = nullptr);
33  QmitkC3jsWidget(const QString& id, QObject* object, QWidget* parent = nullptr);
34  virtual ~QmitkC3jsWidget();
35 
37  typedef mitk::Image::HistogramType::ConstIterator HistogramConstIteratorType;
38 
47  void ComputeHistogram(HistogramType* histogram, bool useLineChart, bool showSubChart);
48 
49  void ComputeIntensityProfile(unsigned int timeStep, bool computeStatistics);
50 
51  void ClearHistogram();
52 
53  mitk::Image::Pointer GetImage() const;
54  void SetImage(const mitk::Image::Pointer image);
55 
56  mitk::PlanarFigure::ConstPointer GetPlanarFigure() const;
57  void SetPlanarFigure(const mitk::PlanarFigure::ConstPointer planarFigure);
58 
59  void SetAppearance(bool useLineChart, bool showSubChart);
60 
61  void SendCommand(QString command);
62 
63  void TransformView(QString transformTo);
64 
66  {
67  return m_Statistics;
68  };
69 
70 
71 private:
72  class Impl;
73  Impl* m_Impl;
74 
76 
77 public slots:
78  void OnLoadFinished(bool isLoadSuccessfull);
79 
80 signals:
81  void PageSuccessfullyLoaded();
82 };
83 
84 #endif
mitk::ImageStatisticsCalculator::StatisticsContainer::Pointer GetStatistics()
mitk::Image::HistogramType HistogramType
mitk::Image::HistogramType::ConstIterator HistogramConstIteratorType
static IntensityProfile::Pointer ComputeIntensityProfile(Image::Pointer image, itk::PolyLineParametricPath< 3 >::Pointer path)
itk::Statistics::Histogram< double > HistogramType
Definition: mitkImage.h:94
#define MITKC3JS_EXPORT