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