[Insight-users] Replacing the OutputWindow

Luis Ibanez luis.ibanez at kitware.com
Tue, 03 Feb 2004 12:35:24 -0500


Hi Julien

For an example on how to replace
the default output window, you may
want to look at the file

    Insight/Testing/Code/Algorithms
     itkImageRegistrationMethodTest_13.cxx



It comes down to

     #include "itkTextOutput.h"

and

    itk::OutputWindow::SetInstance(
         itk::TextOutput::New().GetPointer());



Regards,


    Luis



----------------------------
Julien Hamaide wrote:

> Hi,
> 
>  
> 
> I’m having errors when using a class, the problem is that the 
> WindowOutput is frozen. So I’m trying to use file output such as 
> FileOuputWindow or XMLFileOutputWindow.  I’ve created the class, but I 
> can’t find how to replace the current error handler by my new one?
> 
>  
> 
> Any idea?
> 
>  
> 
> Thanks.
> 
>  
> 
> Julien Hamaide
> 
>  
> 
> Tcts Lab - Multitel Asbl.
> 
> Faculte Polytechnique de Mons
> 
> Parc Initialis - Avenue Nicolas Copernic,1
> 
> 7000 - Mons
> 
> Belgium
> 
> http://tcts.fpms.ac.be
> 
>  
> 
> tel +32 65 37 47 43
> 
> email : julien.hamaide at tcts.fpms.ac.be
> 
>  
>