Well,<br><br>I don't have any knowledge of any coordinates. Through code, I need to compute min_lat, max_lat, min_long, and max_long for a given point.<br>I tried getting the viewPort coordinates, but everytime it is showing (0,0,1,1). Using this how can I achieve what I want..??<br>
<br>I would also appreciate, if you explain me more on the second option i.e TransformMatrix..<br><br>Thanks in advance<br><br><div class="gmail_quote">On Wed, Apr 13, 2011 at 3:43 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Use a view-to-world coordinate transformation. In view coordinates,<br>
the X and Y vary from -1.0 to +1.0 and Z varies from 0.0 to 1.0.<br>
<br>
One way to do this is with the vtkRenderer::ViewToWorld() function,<br>
but I prefer t get the CompositeProjectionTransformMatrix from the<br>
camera, invert it, and then use it directly as a 4x4 transformation<br>
matrix between view coords and world coords.<br>
<font color="#888888"><br>
- David<br>
</font><div><div></div><div class="h5"><br>
<br>
On Tue, Apr 12, 2011 at 4:01 PM, rakesh patil <<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>> wrote:<br>
> Hello Users,<br>
><br>
> How can I get the extents coordinates of a render window? I mean, suppose a<br>
> grid is displayed on a render window, and I want to know min_lat, max_lat,<br>
> min_lon, max_lon for that entire scene. I dont want the min/max lat/lons, of<br>
> the grid, but the extreme coordinate points of the render window?<br>
><br>
> Is it possible in VTK?<br>
><br>
> Thanks in advance<br>
><br>
> Regards<br>
> Rakesh Patil<br>
</div></div></blockquote></div><br>