Rakesh, <br><br>Just some extra notes on top of what Karthik said: <br><br>You can use vtkGeoTransform for all this. Basically you can set the source and destination projection. It primarily based on Proj4 which supports utm. You can set this vtkGeoTransform to vtkTransformFilter. <br>
<br>You can use this transform and convert your dataset from utm to lat lon and to something else. <br><br>Hope that helps. <br><br>~Regards, <br>Aashish<br><br><br><br><div class="gmail_quote">On Fri, Jan 29, 2010 at 7:40 AM, Karthik Krishnan <span dir="ltr"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Rakesh:<br>
<br>
You have to transform your underlying data using the appropriate<br>
projection transform. The vtkProp3D superclass allows users to plug in<br>
their own transforms, so as to transform the prop before display.<br>
However these are restricted to linear transform, (4x4matrix<br>
representable etc). Yours is not one of these.<br>
<br>
As regards the geovis/views toolkit, a vtkRenderView accepts arbitrary<br>
transforms, including vtkGeoTransform. The "representations", which<br>
renders the view, uses this transform internally transform the whole<br>
data before rendering. See vtkRenderedSurfaceRepresentation etc...<br>
<br>
Concerning your previous questions :<br>
<div class="im"><br>
"I found that the output comes on the geoview window.. How can i take<br>
</div>this output on the vtk window" ?<br>
<br>
- The vtkGeoView is a wrapper around a vtkRenderWindow. You should be<br>
able to query the internal render window from the class.<br>
<div class="im"><br>
"how do i apply the projection on the vtkRenderer.???"<br>
<br>
</div>- As described above, I don't think you can apply this kind of a<br>
transform on the renderer. You need to transform the data itself.<br>
<div><div></div><div class="h5"><br>
<br>
On Fri, Jan 29, 2010 at 5:17 AM, Rakesh Patil <<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>> wrote:<br>
><br>
> Basically, what i'm looking for is something as shown below:<br>
><br>
> - I have a graphics display window. And as and how, I move the mouse,<br>
> the mouse point coordinates must get displayed in the status bar.<br>
><br>
> - Now set the coordinate system as, UTM projection, with WGS84 ellipsoid,<br>
><br>
> - Then i load xyz scatter data, which is in UTM form. so, after loading this<br>
> file, i get the scatter data displayed on the graphcis window. Now when<br>
> I move my mouse over the graphics window, the UTM coordinates under<br>
> mouse pointer must be displayed.<br>
><br>
> - Later on i change UTM to GIS, keeping WGS84 constant.<br>
><br>
> - This time, lat, long values will be displayed in decimal format.<br>
> At the same time, the display will change a bit, as GIS, projection<br>
> is a sort of curvature type, and UTM projection is flat type.<br>
><br>
> My xyz file contains data in UTM form.<br>
><br>
> Thanks<br>
><br>
> Regards<br>
><br>
> ---------- Original message ----------<br>
> From:Aashish Chaudhary& lt; <a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a> ><br>
> Date: 28 Jan 10 23:32:44<br>
> Subject: Re: [vtkusers] Is there any inbuilt class in VTK to achieve this???<br>
> To: Rakesh Patil<br>
><br>
> And what s the coordinate system / projection for these xyz?<br>
><br>
><br>
><br>
> On Thu, Jan 28, 2010 at 12:22 PM, Rakesh Patil <<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>> wrote:<br>
>><br>
>> what i exactly want to do is, I have a xyz dataset for a particular<br>
>> region, say arabian sea coast.<br>
>><br>
>> I want to display these points (Scattered points) on the graphic window.<br>
>> But before displaying,<br>
>> i need to set the coordinate system to the lat-long coordinates for that<br>
>> region. So an interface wil be there<br>
>> where user will select which projection to use, UTM or GIS, which<br>
>> ellipsoid to use. Based on that,<br>
>> the coordinate system and projection is set.. later on user must be able<br>
>> to convert coordinate systems.<br>
>><br>
>> I hope it is clear..<br>
>><br>
>> Thanks<br>
>> Regards<br>
>><br>
>> ---------- Original message ----------<br>
>> From:Aashish Chaudhary< <a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a> ><br>
>> Date: 28 Jan 10 22:24:22<br>
>> Subject: Re: [vtkusers] Is there any inbuilt class in VTK to achieve<br>
>> this???<br>
>> To: Rakesh Patil<br>
>><br>
>> Rakesh,<br>
>><br>
>> I didn't understand your question completely. Can you describe in little<br>
>> more detail what exactly you are try ing to achieve?<br>
>><br>
>><br>
>><br>
>> On Thu, Jan 28, 2010 at 11:26 AM, Rakesh Patil <<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>> wrote:<br>
>>><br>
>>> I just went through few testing programs. I found that the output comes<br>
>>> on the geoview window.. How can i take this output on the vtk window<br>
>>> interactor..?? and how do i apply the projection on the vtkRenderer.???<br>
>>><br>
>>><br>
>>> ---------- Original message ----------<br>
>>> From:David Doria< <a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a> ><br>
>>> Date: 27 Jan 10 22:55:41<br>
>>> Subject: Re: [vtkusers] Is there any inbuilt class in VTK to achieve<br>
>>> this???<br>
>>> To: <a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a><br>
>>><br>
>>> On Wed, Jan 27, 2010 at 12:21 PM, Aashish Chaudhary<br>
>>> wrote:<br>
>>> > Rakesh,<br>
>>> ><br>
>>> > Look into vtk/Geovis. There you can find vtkGeoCamera.h and<br>
>>> > vtkGepProjection.h. and some other helpful classes.<br>
>>> ><br>
>>> > Hope I helped.<br>
>>><br>
>>> If you figure out anything with Geovis, it would really be helpful if<br>
>>> you could add some examples here:<br>
>>><br>
>>> <a href="http://www.vtk.org/Wiki/VTK/Examples#Geographic_Visualization_.28Geovis.29" target="_blank">http://www.vtk.org/Wiki/VTK/Examples#Geographic_Visualization_.28Geovis.29</a><br>
>>><br>
>>> Thanks,<br>
>>><br>
>>> David<br>
>>> ____________________ ___________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>><br>
>>><br>
>>> Get Yourself a cool, short @<a href="http://in.com" target="_blank">in.com</a> Email ID now!<br>
>>> _______________________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> | Aashish Chaudhary<br>
>> | R&D Engineer<br>
>> | Kitware Inc.<br>
>> | <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
><br>
><br>
> --<br>
> | Aashish Chaudhary<br>
> | R&D Engineer<br>
> | Kitware Inc.<br>
> | <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
</div></div>> _______________________________________________<br>
<div class="im">> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
<br>
<br>
<br>
</div>_________________________________<br>
<font color="#888888">Karthik Krishnan<br>
Ph: +1 5188814919, +91 9538477060<br>
_______________________________________________<br>
</font><div><div></div><div class="h5">Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a> <br>