Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkTbssRoiAnalysisWidget Class Reference

Plot widget for TBSS Data This widget can plot regions of interest on TBSS projection data. The projection data is created by importing FSL TBSS subject data and completing it with patient data using the QmitkTractbasedSpatialStatisticsView. The region of interest is a vector of indices from which data for plotting should be obtained. More...

#include <QmitkTbssRoiAnalysisWidget.h>

Inheritance diagram for QmitkTbssRoiAnalysisWidget:
Collaboration diagram for QmitkTbssRoiAnalysisWidget:

Public Member Functions

 QmitkTbssRoiAnalysisWidget (QWidget *parent)
 
virtual ~QmitkTbssRoiAnalysisWidget ()
 
void SetGroups (std::vector< std::pair< std::string, int > > groups)
 
void DrawProfiles ()
 
void PlotFiber4D (mitk::TbssImage::Pointer tbssImage, mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi, int number)
 
template<typename T >
void PlotFiberBundles (const mitk::PixelType, TractContainerType tracts, mitk::Image *img, bool avg=false)
 
void SetProjections (VectorImageType::Pointer projections)
 
void SetRoi (RoiType roi)
 
void SetStructure (std::string structure)
 
void SetMeasure (std::string measure)
 
void drawBar (int x)
 
std::vector< std::vector< double > > GetVals ()
 
std::vector< std::vector< double > > GetIndividualProfiles ()
 
std::vector< double > GetAverageProfile ()
 
void SetPlottingFiber (bool b)
 
bool IsPlottingFiber ()
 
void PlotFiberBetweenRois (mitk::FiberBundle *fib, mitk::Image *img, mitk::DataNode *startRoi, mitk::DataNode *endRoi, bool avg=-1, int number=25)
 
mitk::Point3D GetPositionInWorld (int index)
 
void ModifyPlot (int number, bool avg)
 
- Public Member Functions inherited from QmitkPlotWidget
 QmitkPlotWidget (QWidget *parent=nullptr, const char *title=nullptr, const char *name=nullptr, Qt::WindowFlags f=nullptr)
 
virtual ~QmitkPlotWidget ()
 
QwtPlot * GetPlot ()
 
void SetPlotTitle (const QwtText &qwt_title)
 
void SetPlotTitle (const char *title)
 
unsigned int InsertCurve (const char *title, QColor color=QColor(Qt::black))
 
void SetAxisTitle (int axis, const char *title)
 
bool SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues)
 
bool SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues, const DataVector &yLowerError, const DataVector &yUpperError)
 Sets the data with errors for a previously added curve. More...
 
bool SetCurveData (unsigned int curveId, const DataVector &xValues, const DataVector &yValues, const DataVector &xLowerError, const DataVector &xUpperError, const DataVector &yLowerError, const DataVector &yUpperError)
 Sets the data with errors for a previously added curve. More...
 
bool SetCurveData (unsigned int curveId, const XYDataVector &data)
 
void SetCurvePen (unsigned int curveId, const QPen &pen)
 
void SetCurveBrush (unsigned int curveId, const QBrush &brush)
 
void SetCurveStyle (unsigned int curveId, const QwtPlotCurve::CurveStyle style)
 
void SetCurveSymbol (unsigned int curveId, QwtSymbol *symbol)
 
void SetCurveAntialiasingOn (unsigned int curveId)
 
void SetCurveAntialiasingOff (unsigned int curveId)
 
void SetCurveTitle (unsigned int curveId, const char *title)
 
void SetErrorPen (unsigned int curveId, const QPen &pen)
 
void SetErrorStyleSymbols (unsigned int curveId, bool drawSmybols)
 
void SetLegend (QwtLegend *legend, QwtPlot::LegendPosition pos=QwtPlot::RightLegend, double ratio=-1)
 
void SetLegendAttribute (unsigned int curveId, const QwtPlotCurve::LegendAttribute &attribute)
 
void Replot ()
 
void Clear ()
 

Public Attributes

QwtPlotPicker * m_PlotPicker
 

Protected Member Functions

std::vector< std::vector< double > > CalculateGroupProfiles ()
 
std::vector< std::vector< double > > CalculateGroupProfilesFibers (mitk::TbssImage::Pointer tbssImage, mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi, int number)
 
void Plot (std::vector< std::vector< double > > groupProfiles)
 
void Tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
 
TractContainerType ParameterizeTracts (TractContainerType tracts, int number)
 
void DoPlotFiberBundles (mitk::FiberBundle *fib, mitk::Image *img, mitk::DataNode *startRoi, mitk::DataNode *endRoi, bool avg=false, int number=25)
 
TractContainerType CreateTracts (mitk::FiberBundle *fib, mitk::DataNode *startRoi, mitk::DataNode *endRoi)
 
- Protected Member Functions inherited from QmitkPlotWidget
double * ConvertToRawArray (const DataVector &values)
 
double * ConvertToRawArray (const XYDataVector &values, unsigned int component)
 
bool AddErrorIntervalCurve (unsigned int curveId, const DataVector &lessError, const DataVector &moreError, bool isXError)
 

Protected Attributes

mitk::FiberBundlem_Fib
 
std::vector< std::vector< double > > m_Vals
 
std::vector< std::vector< double > > m_IndividualProfiles
 
std::vector< double > m_Average
 
std::vector< std::pair< std::string, int > > m_Groups
 
VectorImageType::Pointer m_Projections
 
RoiType m_Roi
 
std::string m_Structure
 
std::string m_Measure
 
bool m_PlottingFiberBundle
 
TractContainerType m_CurrentTracts
 
mitk::Imagem_CurrentImage
 
mitk::TbssImagem_CurrentTbssImage
 
mitk::DataNodem_CurrentStartRoi
 
mitk::DataNodem_CurrentEndRoi
 
- Protected Attributes inherited from QmitkPlotWidget
QwtPlot * m_Plot
 
std::vector< std::tuple< QwtPlotCurve *, QwtPlotIntervalCurve *, QwtPlotIntervalCurve * > > m_PlotCurveVector
 

Additional Inherited Members

- Public Types inherited from QmitkPlotWidget
typedef double ScalarType
 
typedef std::vector< ScalarTypeDataVector
 
typedef std::vector< std::pair< double, double > > XYDataVector
 

Detailed Description

Plot widget for TBSS Data This widget can plot regions of interest on TBSS projection data. The projection data is created by importing FSL TBSS subject data and completing it with patient data using the QmitkTractbasedSpatialStatisticsView. The region of interest is a vector of indices from which data for plotting should be obtained.

Definition at line 45 of file QmitkTbssRoiAnalysisWidget.h.

Constructor & Destructor Documentation

QmitkTbssRoiAnalysisWidget::QmitkTbssRoiAnalysisWidget ( QWidget *  parent)
QmitkTbssRoiAnalysisWidget::~QmitkTbssRoiAnalysisWidget ( )
virtual

Definition at line 959 of file QmitkTbssRoiAnalysisWidget.cpp.

References m_PlotPicker.

Member Function Documentation

std::vector< std::vector< mitk::ScalarType > > QmitkTbssRoiAnalysisWidget::CalculateGroupProfiles ( )
protected

Definition at line 536 of file QmitkTbssRoiAnalysisWidget.cpp.

References m_Groups, m_IndividualProfiles, m_Projections, m_Roi, and MITK_INFO.

Referenced by DrawProfiles().

std::vector< std::vector< mitk::ScalarType > > QmitkTbssRoiAnalysisWidget::CalculateGroupProfilesFibers ( mitk::TbssImage::Pointer  tbssImage,
mitk::FiberBundle fib,
mitk::DataNode startRoi,
mitk::DataNode endRoi,
int  number 
)
protected
void QmitkTbssRoiAnalysisWidget::DoPlotFiberBundles ( mitk::FiberBundle fib,
mitk::Image img,
mitk::DataNode startRoi,
mitk::DataNode endRoi,
bool  avg = false,
int  number = 25 
)
protected
void QmitkTbssRoiAnalysisWidget::drawBar ( int  x)
void QmitkTbssRoiAnalysisWidget::DrawProfiles ( )

Definition at line 613 of file QmitkTbssRoiAnalysisWidget.cpp.

References CalculateGroupProfiles(), and Plot().

std::vector<double> QmitkTbssRoiAnalysisWidget::GetAverageProfile ( )
inline

Definition at line 121 of file QmitkTbssRoiAnalysisWidget.h.

std::vector<std::vector<double> > QmitkTbssRoiAnalysisWidget::GetIndividualProfiles ( )
inline

Definition at line 115 of file QmitkTbssRoiAnalysisWidget.h.

mitk::Point3D QmitkTbssRoiAnalysisWidget::GetPositionInWorld ( int  index)

Definition at line 503 of file QmitkTbssRoiAnalysisWidget.cpp.

References m_CurrentTracts.

std::vector<std::vector<double> > QmitkTbssRoiAnalysisWidget::GetVals ( )
inline

Definition at line 108 of file QmitkTbssRoiAnalysisWidget.h.

bool QmitkTbssRoiAnalysisWidget::IsPlottingFiber ( )
inline

Definition at line 132 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::ModifyPlot ( int  number,
bool  avg 
)
TractContainerType QmitkTbssRoiAnalysisWidget::ParameterizeTracts ( TractContainerType  tracts,
int  number 
)
protected
void QmitkTbssRoiAnalysisWidget::PlotFiber4D ( mitk::TbssImage::Pointer  tbssImage,
mitk::FiberBundle fib,
mitk::DataNode startRoi,
mitk::DataNode endRoi,
int  number 
)
void QmitkTbssRoiAnalysisWidget::PlotFiberBetweenRois ( mitk::FiberBundle fib,
mitk::Image img,
mitk::DataNode startRoi,
mitk::DataNode endRoi,
bool  avg = -1,
int  number = 25 
)
void QmitkTbssRoiAnalysisWidget::SetGroups ( std::vector< std::pair< std::string, int > >  groups)
inline

Definition at line 58 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::SetMeasure ( std::string  measure)
inline

Definition at line 97 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::SetPlottingFiber ( bool  b)
inline

Definition at line 127 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::SetProjections ( VectorImageType::Pointer  projections)
inline

Definition at line 79 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::SetRoi ( RoiType  roi)
inline

Definition at line 85 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::SetStructure ( std::string  structure)
inline

Definition at line 91 of file QmitkTbssRoiAnalysisWidget.h.

void QmitkTbssRoiAnalysisWidget::Tokenize ( const std::string &  str,
std::vector< std::string > &  tokens,
const std::string &  delimiters = " " 
)
inlineprotected

Definition at line 174 of file QmitkTbssRoiAnalysisWidget.h.

Member Data Documentation

std::vector< double > QmitkTbssRoiAnalysisWidget::m_Average
protected

Definition at line 160 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by PlotFiberBundles().

mitk::DataNode* QmitkTbssRoiAnalysisWidget::m_CurrentEndRoi
protected

Definition at line 215 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().

mitk::Image* QmitkTbssRoiAnalysisWidget::m_CurrentImage
protected

Definition at line 211 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by ModifyPlot(), and PlotFiberBetweenRois().

mitk::DataNode* QmitkTbssRoiAnalysisWidget::m_CurrentStartRoi
protected

Definition at line 214 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().

mitk::TbssImage* QmitkTbssRoiAnalysisWidget::m_CurrentTbssImage
protected

Definition at line 212 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by ModifyPlot(), and PlotFiber4D().

TractContainerType QmitkTbssRoiAnalysisWidget::m_CurrentTracts
protected

Definition at line 208 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by DoPlotFiberBundles(), and GetPositionInWorld().

mitk::FiberBundle* QmitkTbssRoiAnalysisWidget::m_Fib
protected

Definition at line 154 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by ModifyPlot(), PlotFiber4D(), and PlotFiberBetweenRois().

std::vector< std::pair<std::string, int> > QmitkTbssRoiAnalysisWidget::m_Groups
protected
std::vector< std::vector<double> > QmitkTbssRoiAnalysisWidget::m_IndividualProfiles
protected
std::string QmitkTbssRoiAnalysisWidget::m_Measure
protected

Definition at line 199 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by Plot().

QwtPlotPicker* QmitkTbssRoiAnalysisWidget::m_PlotPicker
bool QmitkTbssRoiAnalysisWidget::m_PlottingFiberBundle
protected
VectorImageType::Pointer QmitkTbssRoiAnalysisWidget::m_Projections
protected
RoiType QmitkTbssRoiAnalysisWidget::m_Roi
protected

Definition at line 197 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by CalculateGroupProfiles().

std::string QmitkTbssRoiAnalysisWidget::m_Structure
protected

Definition at line 198 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by Plot().

std::vector< std::vector<double> > QmitkTbssRoiAnalysisWidget::m_Vals
protected

Definition at line 157 of file QmitkTbssRoiAnalysisWidget.h.

Referenced by Plot().


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