22 class ItkLoggingTestClass :
public itk::Object
26 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
28 void TestItkWarningMessage()
30 itkWarningMacro(
"Test ITK Warning message");
35 class LoggingAdapterTestClass
38 static void TestVtkLoggingWithoutAdapter()
41 <<
"Testing vtk logging without adapter class: a separate window should open and display the logging messages.")
42 vtkOutputWindow::GetInstance()->DisplayText("Test VTK InfoMessage");
43 vtkOutputWindow::GetInstance()->DisplayDebugText("Test Vtk
Debug Message");
44 vtkOutputWindow::GetInstance()->DisplayGenericWarningText("Test Vtk Generic Warning Message");
45 vtkOutputWindow::GetInstance()->DisplayWarningText("Test Vtk Warning Message");
46 vtkOutputWindow::GetInstance()->DisplayErrorText("Test Vtk
Error Message");
49 static
void TestVtkLoggingWithAdapter()
52 <<
"Testing vtk logging with adapter class: Vtk logging messages should be logged as MITK logging messages.")
53 mitk::VtkLoggingAdapter::Initialize();
54 vtkOutputWindow::GetInstance()->DisplayText("Test Vtk
Info Message");
55 vtkOutputWindow::GetInstance()->DisplayDebugText("Test Vtk
Debug Message");
56 vtkOutputWindow::GetInstance()->DisplayGenericWarningText("Test Vtk Generic Warning Message");
57 vtkOutputWindow::GetInstance()->DisplayWarningText("Test Vtk Warning Message");
58 vtkOutputWindow::GetInstance()->DisplayErrorText("Test Vtk
Error Message");
62 static
void TestItkLoggingWithoutAdapter()
65 myItkLogger->TestItkWarningMessage();
68 static void TestItkLoggingWithAdapter()
72 myItkLogger->TestItkWarningMessage();
79 LoggingAdapterTestClass::TestVtkLoggingWithoutAdapter();
80 LoggingAdapterTestClass::TestVtkLoggingWithAdapter();
81 LoggingAdapterTestClass::TestItkLoggingWithoutAdapter();
82 LoggingAdapterTestClass::TestItkLoggingWithAdapter();
itk::SmartPointer< Self > Pointer
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
int mitkLoggingAdapterTest(int, char *[])
DataCollection - Class to facilitate loading/accessing structured data.
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
#define MITK_TEST_OUTPUT(x)
Output some text.
#define mitkClassMacroItkParent(className, SuperClassName)
static void Initialize()
Initializes the logging adapter. Itk logging messages are redirected to MITK logging afterwards...
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.