[vtkusers] Rendering without displaying a window
Jeff Lee
jeff at cdnorthamerica.com
Thu Jun 19 06:13:09 EDT 2003
Greg Scott wrote:
> Hi everyone,
>
> Does anyone know of a way to render in VTK without actually displaying
> the result; all I need is the pixel data generated by the rendering.
> How would one specify the size of the rendering produced?
>
> A similar problem is as follows. I want to create a renderering of a
> specific size, say 256 x 256. In Java, I find this problematic since
> whatever I add the vtkPanel to will resize it according to its own
> agenda. Does anyone know a work around? (As you can see, by avoiding
> drawing the window completely, as in my first question, you also avoid
> this resize issue).
vtkPanel takes its size from the container in which it is placed. I
would suggest using a layout manager which doesn't resize its contents -
like FlowLayout, etc...
-Jeff
>
> Any advice would be very much appreciated,
>
> Greg
>
More information about the vtkusers
mailing list