[vtkusers] QVTKWidget and size of actor/renderwindow
Eric E. Monson
emonson at cs.duke.edu
Tue Jul 13 11:52:46 EDT 2010
There was this recent mailing list thread:
http://markmail.org/message/ju7ei75tdjdqzhcn
which also references an example from the Wiki (for setting image to the background of the window) and another recent mailing list thread.
Maybe those will help, too.
-Eric
On Jul 13, 2010, at 11:34 AM, John Drescher wrote:
> On Tue, Jul 13, 2010 at 10:57 AM, Malsoaz James <jmalsoaz at yahoo.fr> wrote:
>>
>> Hello,
>>
>> I'm trying to display a slice extracted from a 3D volume inside a QVTKWidget (500*500).
>> Unfortunately, I haven't been able to display it correctly. Indeed, the slice appears smaller than the window's size. Calls to functions such as SetScale, ... don't change anything. I also checked the render window's size, but the size seems correct (ie 500*500 in my case). I'm using vtkImageReslice to reslice the volume and I'm setting the OutputExtent with the size I want (500*500).
>>
>> Has someone an idea regarding this problem ? I would like to display the slice to cover all the QVTKWidget.
>>
>
> You need to adjust the position of the camera.
>
> John
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list