Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkC3jsWidget Class Reference

#include <QmitkC3jsWidget.h>

Inheritance diagram for QmitkC3jsWidget:
Collaboration diagram for QmitkC3jsWidget:

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 ()
 

Detailed Description

Definition at line 27 of file QmitkC3jsWidget.h.

Member Typedef Documentation

typedef mitk::Image::HistogramType::ConstIterator QmitkC3jsWidget::HistogramConstIteratorType

Definition at line 37 of file QmitkC3jsWidget.h.

Constructor & Destructor Documentation

QmitkC3jsWidget::QmitkC3jsWidget ( QWidget *  parent = nullptr)
explicit
QmitkC3jsWidget::QmitkC3jsWidget ( const QString &  id,
QObject *  object,
QWidget *  parent = nullptr 
)
QmitkC3jsWidget::~QmitkC3jsWidget ( )
virtual

Definition at line 136 of file QmitkC3jsWidget.cpp.

Member Function Documentation

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 
)
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.

mitk::ImageStatisticsCalculator::StatisticsContainer::Pointer QmitkC3jsWidget::GetStatistics ( )
inline

Definition at line 65 of file QmitkC3jsWidget.h.

void QmitkC3jsWidget::OnLoadFinished ( bool  isLoadSuccessfull)
slot

Definition at line 141 of file QmitkC3jsWidget.cpp.

References PageSuccessfullyLoaded().

void QmitkC3jsWidget::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.


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