Public Types | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

QmitkCalculateGrayValueStatisticsToolGUI Class Reference

GUI for mitk::CalculateGrayValueStatisticsTool. More...

#include <QmitkCalculateGrayValueStatisticsToolGUI.h>

Inheritance diagram for QmitkCalculateGrayValueStatisticsToolGUI:
Inheritance graph
[legend]
Collaboration diagram for QmitkCalculateGrayValueStatisticsToolGUI:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
QmitkCalculateGrayValueStatisticsToolGUI 
Self
typedef QmitkToolGUI Superclass
typedef itk::SmartPointer< SelfPointer
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

Detailed Description

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.


Member Typedef Documentation

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.

Reimplemented from QmitkToolGUI.

Definition at line 40 of file QmitkCalculateGrayValueStatisticsToolGUI.h.


Constructor & Destructor Documentation

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]

Member Function Documentation

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]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines