[vtkusers] vtkImageActor "FILL_SCENE" is there an easy way ?

Bill Lorensen bill.lorensen at gmail.com
Fri Jun 20 08:27:33 EDT 2014


You could set the image as the background of the window:
http://vtk.org/Wiki/VTK/Examples/Cxx/Images/BackgroundImage
or
do something like this. Notice you do not need to recompute on resize:
http://vtk.org/Wiki/VTK/Examples/Cxx/Images/FillWindow


On Fri, Jun 20, 2014 at 6:40 AM, Butterfly <ninarock at list.ru> wrote:
> Hi all,
>
> I am new to VTK, I try to use vtkImageActor inside a resizeable window. I
> want the 2D image always be stretched to the full size of the window.
>
> I managed to achieve similar behavior with vtkChartXY like this:
>          vtkChartXY->SetLayoutStrategy(vtkChart::FILL_SCENE)
>
> But now I am confused with vtkImageActor. Seems that the only way is to add
> vtkCamera and calculate and change scaling and zoom every time the window
> size is being changed.
>
> Is there an easier way to achieve what I want ? Maybe I should not use
> vtkImageActor, but something else?
>
> I use VTK 6.1
>
> Thank you very much in advance!!!
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageActor-FILL-SCENE-is-there-an-easy-way-tp5727584.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list