prints out information for debugging purpose More...
#include <mitkInteractionDebugger.h>
Static Public Member Functions | |
| static void | Set (const char *sender, const char *text) |
| static void | Activate () |
| static void | Deactivate () |
Protected Member Functions | |
| InteractionDebugger () | |
| ~InteractionDebugger () | |
prints out information for debugging purpose
prints out recieved text in a sorted way
Definition at line 34 of file mitkInteractionDebugger.h.
| mitk::InteractionDebugger::InteractionDebugger | ( | ) | [protected] |
Definition at line 24 of file mitkInteractionDebugger.cpp.
{}
| mitk::InteractionDebugger::~InteractionDebugger | ( | ) | [protected] |
Definition at line 36 of file mitkInteractionDebugger.cpp.
{}
| void mitk::InteractionDebugger::Activate | ( | ) | [static] |
Definition at line 27 of file mitkInteractionDebugger.cpp.
{
m_Active = true;
}
| void mitk::InteractionDebugger::Deactivate | ( | ) | [static] |
Definition at line 32 of file mitkInteractionDebugger.cpp.
{
m_Active = false;
}
| void mitk::InteractionDebugger::Set | ( | const char * | sender, |
| const char * | text | ||
| ) | [static] |
set a text for output
| sender,: | who has sent this text |
Definition at line 39 of file mitkInteractionDebugger.cpp.
{
if (m_Active)
{
itk::OStringStream itkmsg;
if (! itk::Object::GetGlobalWarningDisplay())
return;
if (sender != m_CurrentSender)
{
itkmsg << sender <<" :\n"<<text<<"\n";
m_CurrentSender = sender;
}
else
itkmsg<<text<<"\n";
itk::OutputWindowDisplayDebugText(itkmsg.str().c_str());
}
}
1.7.2