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

Butterfly ninarock at list.ru
Fri Jun 20 06:40:00 EDT 2014


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.


More information about the vtkusers mailing list