[vtkusers] Looking for zoom sample - More detailed now
de Boer Ingo
I.deBoer at polytec.de
Fri Jun 18 02:25:14 EDT 2004
Hi,
I am still looking for a way to solve the following
task:
What I need is illustrated in the attached image.
This was taken from Dean's sample code to generate a small
renderer in the bottom right. After making a snapshot I draw a
white rectangle in it by hand with some paint programing.
What I want is to have a rectangle (like the white one) which
shows me in the small renderer where I am in my zoomed object.
Like, when I do zoom into the cube, I might not know, if I am
in the upper left or down or wherever. So, I want the small white
rectangle to show me the position where I am in the scene of the
large renderer.
So, I think I have to find out which part of the scene is visible
in the large renderer. Take these coordinates, transform them into
the small one and use these outer bounds as coordinates for the
white rectangle.
But at the moment, I do not know how to get the information in the
large renderer which tells me about the piece of the scene that
I am looking at.
Any ideas on this one ?
greets
Ingo
---
Dr.-Ing. Ingo H. de Boer
Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax : ++49 7243 604 255
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image3.png
Type: image/png
Size: 61006 bytes
Desc: Image3.png
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040618/a6e0ab28/attachment.png>
More information about the vtkusers
mailing list