[vtkusers] Render window [error on close/render]

Alex Cristopher Vivas Munar a-vivas at uniandes.edu.co
Wed Mar 16 12:00:43 EST 2005


hi...

try define an actor with vtkImageActor with its input is the output of reader of
image, then link de actor with a render window...

i have a problem... i open an image with VTK in a render window... how can i
resize the render window???

Alex...

Mensaje citado por Davide Bianconi <bianconi.davide at gmail.com>:

> Hallo, I have your same problem…  Have you found the solution ?
> Many thanks.
>
> Davide Bianconi
> Bologna University - Italy
>
>
---------------------------------------------------------------------------------------------------------------
> Hi all,
>
> I've a question about the renderwindow. I'm using ITK and VTK to show an
> image. The image is first being prcessed with ITK and then it'll be shown
> with VTK. I tried both the imageviewer and the renderwindow (with actors).
> I'm all doing this in an VC++ MFC environment. I desinged it that the window
> will be rendered when the user pushes the render-button.
>
> When I use the ordinary "vtkImageViewer", my program will compile just fine
> but when I run the program and hit the render window, it gives me an error.
> I can see the render window but trough the error, the program is stuck. The
> same think happens when I use a renderwindow with the use of actors/mappers
> (same principle).
>
> When I use a "vtkRenderWindowInteractor", the render window will show just.
> In this case I added the command: renderwindowinteractor->Start().
>
> The problem seems solved, but it isn't. When I want to close the window,
> it'll give me the same error as before. So I suspect it has something to do
> with the return value or something. For clarity, this error occurs when I'm
> programming in a MFC. The error/break can be seen below.(the arrow indicates
> the place of the break)
>
> I couldn't find the problem as I looked through the mailing-list so.. Does
> anyone here got a clue how to fix the problem?
>
>
> many thanks in advance.
>
> Joris ( newbie :) )
> Medical Spectrum
> Enschede, The Netherlands
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list