Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkC3jsWidget.h>
Public Types | |
typedef mitk::Image::HistogramType | HistogramType |
typedef mitk::Image::HistogramType::ConstIterator | HistogramConstIteratorType |
Public Slots | |
void | OnLoadFinished (bool isLoadSuccessfull) |
Signals | |
void | PageSuccessfullyLoaded () |
Public Member Functions | |
QmitkC3jsWidget (QWidget *parent=nullptr) | |
QmitkC3jsWidget (const QString &id, QObject *object, QWidget *parent=nullptr) | |
virtual | ~QmitkC3jsWidget () |
void | ComputeHistogram (HistogramType *histogram, bool useLineChart, bool showSubChart) |
Calculates the histogram. More... | |
void | ComputeIntensityProfile (unsigned int timeStep, bool computeStatistics) |
void | ClearHistogram () |
mitk::Image::Pointer | GetImage () const |
void | SetImage (const mitk::Image::Pointer image) |
mitk::PlanarFigure::ConstPointer | GetPlanarFigure () const |
void | SetPlanarFigure (const mitk::PlanarFigure::ConstPointer planarFigure) |
void | SetAppearance (bool useLineChart, bool showSubChart) |
void | SendCommand (QString command) |
void | TransformView (QString transformTo) |
mitk::ImageStatisticsCalculator::StatisticsContainer::Pointer | GetStatistics () |
Definition at line 27 of file QmitkC3jsWidget.h.
typedef mitk::Image::HistogramType::ConstIterator QmitkC3jsWidget::HistogramConstIteratorType |
Definition at line 37 of file QmitkC3jsWidget.h.
Definition at line 36 of file QmitkC3jsWidget.h.
|
explicit |
Definition at line 103 of file QmitkC3jsWidget.cpp.
References mitk::ImageStatisticsCalculator::StatisticsContainer::New().
QmitkC3jsWidget::QmitkC3jsWidget | ( | const QString & | id, |
QObject * | object, | ||
QWidget * | parent = nullptr |
||
) |
Definition at line 126 of file QmitkC3jsWidget.cpp.
References mitk::ImageStatisticsCalculator::StatisticsContainer::New().
|
virtual |
Definition at line 136 of file QmitkC3jsWidget.cpp.
void QmitkC3jsWidget::ClearHistogram | ( | ) |
Definition at line 261 of file QmitkC3jsWidget.cpp.
Referenced by ComputeIntensityProfile().
void QmitkC3jsWidget::ComputeHistogram | ( | HistogramType * | histogram, |
bool | useLineChart, | ||
bool | showSubChart | ||
) |
Calculates the histogram.
This function removes all frequencies of 0 until the first bin and behind the last bin. It writes the measurement and frequency, which are given from the HistogramType, into m_Measurement and m_Frequency. initializeJavaScriptChart is then called, to update the information, which is displayed in the webframe.
Definition at line 163 of file QmitkC3jsWidget.cpp.
References SetAppearance().
void QmitkC3jsWidget::ComputeIntensityProfile | ( | unsigned int | timeStep, |
bool | computeStatistics | ||
) |
Definition at line 205 of file QmitkC3jsWidget.cpp.
References ClearHistogram(), mitk::ComputeIntensityProfile(), mitk::ComputeIntensityProfileStatistics(), mitkThrow, and mitk::ImageTimeSelector::New().
mitk::Image::Pointer QmitkC3jsWidget::GetImage | ( | ) | const |
Definition at line 267 of file QmitkC3jsWidget.cpp.
mitk::PlanarFigure::ConstPointer QmitkC3jsWidget::GetPlanarFigure | ( | ) | const |
Definition at line 277 of file QmitkC3jsWidget.cpp.
|
inline |
Definition at line 65 of file QmitkC3jsWidget.h.
|
slot |
Definition at line 141 of file QmitkC3jsWidget.cpp.
References PageSuccessfullyLoaded().
|
signal |
Referenced by OnLoadFinished().
void QmitkC3jsWidget::SendCommand | ( | QString | command | ) |
Definition at line 152 of file QmitkC3jsWidget.cpp.
void QmitkC3jsWidget::SetAppearance | ( | bool | useLineChart, |
bool | showSubChart | ||
) |
Definition at line 157 of file QmitkC3jsWidget.cpp.
Referenced by ComputeHistogram().
void QmitkC3jsWidget::SetImage | ( | const mitk::Image::Pointer | image | ) |
Definition at line 272 of file QmitkC3jsWidget.cpp.
void QmitkC3jsWidget::SetPlanarFigure | ( | const mitk::PlanarFigure::ConstPointer | planarFigure | ) |
Definition at line 282 of file QmitkC3jsWidget.cpp.
void QmitkC3jsWidget::TransformView | ( | QString | transformTo | ) |
Definition at line 146 of file QmitkC3jsWidget.cpp.