Re: [OpenMap Users] polygon with curved lines

From: Ruben DF <rdocasalf_at_yahoo.es>
Date: Thu, 14 May 2009 09:57:25 +0000 (GMT)

Thanks again for answering,

I need an OMPoly object which can be formed by lines straight and lines curves. Since I cannot get the OMLines from a OMPoly given (or OMAbstractLines) in order to modify some of them by curve lines, I was thinking about joining the OMLines and OMArc (Thanks Don, I didn't know that class) in an unique shape; OMAreaList give to me the solution (Thanks Don again ;)), however, I've seen that there's no an EditableOMAreaList either an EditableOMArc, so i cannot select that shapes in order to moving, modify the shape..etc, any idea?

I was also trying with arcCalc, but i think i need a geocentric arc so I will use OMArc class.

Ben, I dont know if this could slow down the performance, but I need to try it at least! :)

--- El mié, 13/5/09, Don Dietrick <dietrick_at_bbn.com> escribió:

De: Don Dietrick <dietrick_at_bbn.com>
Asunto: Re: [OpenMap Users] polygon with curved lines
Para: "Ruben DF" <rdocasalf_at_yahoo.es>
CC: "openmap-users Users" <openmap-users_at_bbn.com>, "Ben Weisburd" <benw_at_ll.mit.edu>
Fecha: miércoles, 13 mayo, 2009 5:51

Hi Ruben,

Ben has the right idea, but it also depends on if you want all the parts to be rendered the same.  You can use an OMAreaList to join different OMGraphics together into one shape.

Do the lines between the points have geocentric meaning, or are you just trying to create a certain visual effect?  OMLines can have an ArcCalc object set on it to create a arc in pixel space between two points.  It has no geocentric meaning.   Might be easier to use than defining an OMArc's parameters to meet up at certain endpoints, but defining the OMArc will give you an edge that means something - a path that is a certain distance away from a lat/lon point.

- Don

On May 13, 2009, at 11:21 AM, Weisburd, Ben wrote:

> Ruben,
>
> Creating multiple OMLines and OMCircles, and putting them in an OMGraphicList?
> This might be slow if you have a large amount of shapes though.
>
> -Ben
>
>
> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Ruben DF
> Sent: Wednesday, May 13, 2009 11:01 AM
> To: Don Dietrick
> Cc: openmap-users_at_bbn.com
> Subject: Re: [OpenMap Users] polygon with curved lines
>
> Thanks for answering,
>
> I was seeing OMSpline, however, i need that my object (let's call circuit, for example) has lines which are totally straight and lines curved. I think OMSpline is formed by curved lines always. Perhaps, OMSpline may be implemented in order to draw straight lines between a pair of points?
>
> My hipotetic object would be formed by n points, ok? among those points it could have a OMLine or an OMCircle (the arc which pass between those points, giving a specific radius)
>
> hope this helps to its understanding, thanks again in advance :)
>
> --- El mié, 13/5/09, Don Dietrick <dietrick_at_bbn.com> escribió:
>
> De: Don Dietrick <dietrick_at_bbn.com>
> Asunto: Re: [OpenMap Users] polygon with curved lines
> Para: "Ruben DF" <rdocasalf_at_yahoo.es>
> CC: openmap-users_at_bbn.com
> Fecha: miércoles, 13 mayo, 2009 3:21
>
> Hi Ruben,
>
> I think you are looking for the OMSpline class in OpenMap.
>
> Hope this helps,
>
> Don
>
> On May 13, 2009, at 6:17 AM, Ruben DF wrote:
>
> > Hi,
> >
> > I'm interested in drawing polygons with its lines curved. I know that in theory it is not possible since a polygon is based on lines straight but i need to be able to draw lines curved and straight. I've been reviewing OMPoly class, and i think i should modify this class to convert the straight lines in curved lines (the curved lines would be formed by OMCircle class, wouldn't be?)
> >
> > I'm lost...anyone can help me?
> > Thanks in advance
> >
>
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu May 14 2009 - 05:59:09 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT