[vtkusers] 2D and 3D application

David Doria daviddoria at gmail.com
Sat Aug 18 14:15:38 EDT 2012


On Sat, Aug 18, 2012 at 2:06 PM, rakesh patil <prakeshofficial at gmail.com> wrote:
> Hello,
>
> In an application, can we have two render windows, one 2 dimensional and
> another 3 dimensional.??
>
> Thanks

The "dimensionality" is totally dependent on the InteractoryStyle that
you assign to the renderWindowInteractor. Are you trying to have two
"normal" VTK windows (i.e. separate windows, each of which looks like
the normal thing that happens with something like
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere)? You
should probably be doing something more like this
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindows
where you use Qt to organize these windows.

It looks like a long time ago I tried to do the "multiple normal
windows" : http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleRenderWindows
but the comments make it sound like the example was never finished
(but it might give you a starting point, and it would be great if you
can fix it :) ).

David



More information about the vtkusers mailing list