[vtk-developers] I would like to give some VTK classes

Nasztanovics Ferenc naszta at naszta.hu
Thu Jan 7 06:20:16 EST 2010


Use should use vtkOutputWindow::SetInstance function to make your  
class default.

Best regards,

Naszta



On 2010.01.07., at 19:19, "John Platt" <jcplatt at dsl.pipex.com> wrote:

> Dear Naszta,
>
> Thank you for your code updates. The text is now displayed but when  
> VTK
> outputs an error message, it is shown in a new vtkOutputWindow, not  
> the Qt
> VTK output window (see attached image). Sorry for causing you these
> problems.
>
> Regards,
>
> John.
>
> ----- Original Message -----
> From: "Nasztanovics Ferenc" <naszta at naszta.hu>
> To: "John Platt" <jcplatt at dsl.pipex.com>; <vtk-developers at vtk.org>
> Sent: Thursday, January 07, 2010 6:33 AM
> Subject: RE: [vtk-developers] I would like to give some VTK classes
>
>
> I attached the corrected code. In this version you can easily just use
> vtkQtOutputWindow class, QVTKOutputWindow will be automatically  
> created. I
> will finish the documentation till Friday, but the code is good now.
>
> Usage:
>
> vtkQtOutputWindow* ow = vtkQtOutputWindow::New();
> ow->DisplayText("some text");
>
> Best regards,
>
> Naszta
> ________________________________________
> Feladó: John Platt [jcplatt at dsl.pipex.com]
> Küldve: 2010. január 6. 23:41
> Címzett: Nasztanovics Ferenc; vtk-developers at vtk.org
> Tárgy: Re: [vtk-developers] I would like to give some VTK classes
>
> Dear Ferenc,
>
> I have been trying to use QVTKOutputWindow on WinXP as follows
>
>    vtkQtOutputWindow* ow = vtkQtOutputWindow::New();
>    QVTKOutputWindow* qtow = new QVTKOutputWindow( this );
>    qtow ->setShowOnLogAdded( true );
>    ow ->DisplayText("some text");
>
> but nothing is shown. I think the problem is that there are 2  
> instances of
> vtkQtOutputWindow, "ow" and the instance created in the constructor of
> QVTKOutputWindow, each sharing the single instance of vtkOutputWindow.
> Nothing is shown because "ow" has no
> TextEditTarget set.
>
> It may be difficult to derive
>
>    vtkQtOutputWindow : public vtkOutputWindow
>
> because vtkOutputWindow is a vtkWin32OutputWindow on Windows and not
> vtkOutputWindow.
> The potential for your classes is to be able to output QString's but  
> I don't
> see how this can be done at present.
>
> Regards,
> John.
>
>
>
> ----- Original Message -----
> From: "Nasztanovics Ferenc" <naszta at naszta.hu>
> To: <vtk-developers at vtk.org>
> Sent: Tuesday, December 08, 2009 7:09 AM
> Subject: [vtk-developers] I would like to give some VTK classes
>
>
> Dear Kitware,
>
> I use your VTK library for years. I would like to add 3 useful  
> library for
> QVTK.
>
> For QVTK:
>
> 1) vtkQtOutputWindow
>
> It is a subclass of vtkOutputWindow and it writes out VTK output to  
> a Qt
> widget (vtkQtOutTextWidget).
>
> 2) vtkQtOutTextWidget
>
> It is a thread safe widget to write out VTK output. Qt 4.4 or higher  
> its
> base is QPlainTextEdit, else QTextEdit.
>
> 3) QVTKOutputWindow
>
> It is a full implementation of output window. Practically it is made  
> in
> "main" function.
>
> For Infovis:
>
> 4) vtkSimple3DCirclesStrategy
>
> It is a graph drawing strategy. It works on vtkDirectedGraphs, where  
> there
> is no loop.
>
> Best regards,
>
> Ferenc Nasztanovics
>
>
>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>
>
> <qtvtk.PNG>


More information about the vtk-developers mailing list