GUI for mitk::CalculateGrayValueStatisticsTool. More...
#include <QmitkCalculateGrayValueStatisticsToolGUI.h>
Public Types | |
typedef QmitkCalculateGrayValueStatisticsToolGUI | Self |
typedef QmitkToolGUI | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
void | OnCalculationsDone () |
Reacts to signals from mitk::CalculateGrayValueStatisticsTool. | |
Static Public Member Functions | |
static Pointer | New () |
Protected Slots | |
void | OnNewToolAssociated (mitk::Tool *) |
Connected to signal from QmitkToolGUI. We remember the current tool here. | |
Protected Member Functions | |
QmitkCalculateGrayValueStatisticsToolGUI () | |
virtual | ~QmitkCalculateGrayValueStatisticsToolGUI () |
Protected Attributes | |
mitk::CalculateGrayValueStatisticsTool::Pointer | m_CalculateGrayValueStatisticsTool |
GUI for mitk::CalculateGrayValueStatisticsTool.
Shows nothing. Only when the corresponding tool send a message that statistics are ready, this class pops up a window showing the results.
Last contributor: $Author$
Definition at line 34 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
typedef itk::SmartPointer<const Self> QmitkCalculateGrayValueStatisticsToolGUI::ConstPointer |
Reimplemented from QmitkToolGUI.
Definition at line 40 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
typedef itk::SmartPointer<Self> QmitkCalculateGrayValueStatisticsToolGUI::Pointer |
Reimplemented from QmitkToolGUI.
Definition at line 40 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
Reimplemented from QmitkToolGUI.
Definition at line 40 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
Reimplemented from QmitkToolGUI.
Definition at line 40 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
QmitkCalculateGrayValueStatisticsToolGUI::QmitkCalculateGrayValueStatisticsToolGUI | ( | ) | [protected] |
Definition at line 24 of file QmitkCalculateGrayValueStatisticsToolGUI.cpp.
:QmitkToolGUI() { connect( this, SIGNAL(NewToolAssociated(mitk::Tool*)), this, SLOT(OnNewToolAssociated(mitk::Tool*)) ); }
QmitkCalculateGrayValueStatisticsToolGUI::~QmitkCalculateGrayValueStatisticsToolGUI | ( | ) | [protected, virtual] |
Definition at line 30 of file QmitkCalculateGrayValueStatisticsToolGUI.cpp.
References m_CalculateGrayValueStatisticsTool, and OnCalculationsDone().
{ if (m_CalculateGrayValueStatisticsTool.IsNotNull()) { m_CalculateGrayValueStatisticsTool->StatisticsCompleted -= mitk::MessageDelegate<QmitkCalculateGrayValueStatisticsToolGUI>( this, &QmitkCalculateGrayValueStatisticsToolGUI::OnCalculationsDone ); } }
virtual const char* QmitkCalculateGrayValueStatisticsToolGUI::GetClassName | ( | ) | const [virtual] |
Reimplemented from QmitkToolGUI.
static Pointer QmitkCalculateGrayValueStatisticsToolGUI::New | ( | ) | [static] |
void QmitkCalculateGrayValueStatisticsToolGUI::OnCalculationsDone | ( | ) |
Reacts to signals from mitk::CalculateGrayValueStatisticsTool.
Definition at line 53 of file QmitkCalculateGrayValueStatisticsToolGUI.cpp.
References m_CalculateGrayValueStatisticsTool.
Referenced by OnNewToolAssociated(), and ~QmitkCalculateGrayValueStatisticsToolGUI().
{ if (m_CalculateGrayValueStatisticsTool.IsNotNull()) { std::string report = m_CalculateGrayValueStatisticsTool->GetReport(); // one for linux users std::cout << report << std::endl; // one for window users QmitkCopyToClipBoardDialog* dialog = new QmitkCopyToClipBoardDialog( report.c_str(), NULL); dialog->show(); } }
void QmitkCalculateGrayValueStatisticsToolGUI::OnNewToolAssociated | ( | mitk::Tool * | tool ) | [protected, slot] |
Connected to signal from QmitkToolGUI. We remember the current tool here.
Definition at line 38 of file QmitkCalculateGrayValueStatisticsToolGUI.cpp.
References m_CalculateGrayValueStatisticsTool, and OnCalculationsDone().
{ if (m_CalculateGrayValueStatisticsTool.IsNotNull()) { m_CalculateGrayValueStatisticsTool->StatisticsCompleted -= mitk::MessageDelegate<QmitkCalculateGrayValueStatisticsToolGUI>( this, &QmitkCalculateGrayValueStatisticsToolGUI::OnCalculationsDone ); } m_CalculateGrayValueStatisticsTool = dynamic_cast<mitk::CalculateGrayValueStatisticsTool*>( tool ); if (m_CalculateGrayValueStatisticsTool.IsNotNull()) { m_CalculateGrayValueStatisticsTool->StatisticsCompleted += mitk::MessageDelegate<QmitkCalculateGrayValueStatisticsToolGUI>( this, &QmitkCalculateGrayValueStatisticsToolGUI::OnCalculationsDone ); } }
mitk::CalculateGrayValueStatisticsTool::Pointer QmitkCalculateGrayValueStatisticsToolGUI::m_CalculateGrayValueStatisticsTool [protected] |
Definition at line 60 of file QmitkCalculateGrayValueStatisticsToolGUI.h.
Referenced by OnCalculationsDone(), OnNewToolAssociated(), and ~QmitkCalculateGrayValueStatisticsToolGUI().