<div dir="ltr"><div><div><div><div>Hi LaChen<br><br>can you explain why you want to do this (what is the user interface supposed to present) ? <br>Are you trying to map the texture onto some other surface or are you trying to show the sliced image as a 2D<br></div></div>image in a renderer ?<br><br></div>regards,<br></div>Dean<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 6:04 AM, LaChen <span dir="ltr"><<a href="mailto:sam24666806@gmail.com" target="_blank">sam24666806@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I try to use vtkImagePanelWidget::GetTexture() to get texture of slicing<br>
by indicated index (SetSliceIndex).<br>
<br>
After I get texture, I downcast the texture to OpenGLTexture to get<br>
vtkTextureObject.<br>
<br>
Then I try to the the handle of the texture object. Finally, I write some<br>
codes to draw an rectangle and texture by the handle. But it seems not work.<br>
<br>
Is my way correctly??<br>
<br>
If it's not correct, how to show one slice in a plane.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkImagePanelWidget-Offscreen-Renderer-tp5734298.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/vtkImagePanelWidget-Offscreen-Renderer-tp5734298.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>