From: SAK <sa...@ge...> - 2005-07-08 15:26:50
|
I have tried all the possible options. What i wish to have is something like polyline in java.awt.graphics. You just pass on a list of array of x and y points. I have worked in SVG i understand those. But Your framework gives the beauty to present information in different perspectives. If i could achieve this way of drawing roadnetworks as polylines. It would be helpful. On Fri, 2005-07-08 at 16:14, Emmanuel Pietriga wrote: > SAK wrote: > > I was trying to define VPaths as road Networks. I am not successfull in > > that, when i draw them as segments this is drawn as a straight line. > > First of all, we might have a terminology issue here. In my mind, there > is no difference between a segment and a straight line. It is the same > thing. So, what difference do you make between a segment and a straight > line? > > I suppose that what you want to do is draw curved lines? Is that right? > If so, you have to instantiate a VPath object and then append new > elements to it, like quadratic curves and cubic curves (methods > addQdCurve() and addCbCurve()). If you want to add straight lines to it, > use addSegment. If you want to add a "gap", use method jump(). [1] can > give you a quick introduction on quadratic and cubic curves if you are > not familiar with these and the terminology (control point, end point). > > Another solution consists in instantiating the path directly with all > its elements by providing them as a String representing an SVG sequence > of end and control point coordinates. Once you are familiar with the > syntax, it is a quick way to create VPaths. > > [1] http://www.w3.org/2001/11/IsaViz/splines.html > [2] http://www.w3.org/TR/SVG11/paths.html#PathDataGeneralInformation > > I can provide you with a few actual examples of VPath instantiations in > Java+ZVTM if you want. > > > > Also, the complexities of drawing road networks is that in reality each > > of these road networks has a unique name. > > I'm not sure I understand. What kind of complexity does this add? Do you > want to display the name of roads? > > > > I wish to capture the co-ordinates on map, and then select all the > > objects lying that region, and perfrom a set of operations. How best can > > i achieve that. > > I've answered that question in a separate email to the list (Subject: > "Selecting glyphs in a rectangular region drawn by hand"). > > cheers, > Emmanuel > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel > |