Re: [OpenMap Users] OMGraphicList or OMGeometryList for Composite Graphic?

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 18 Jun 2008 21:47:59 -0400

Hi Adams,

Is it possible that the rectangle you see is from the OMRaster? You
could set the line color on the OMRect to easily detect if this is the case.

Thanks,

Don

Adams Tan wrote:
> On Sat, Jun 14, 2008 at 7:16 AM, Don Dietrick <dietrick_at_bbn.com
> <mailto:dietrick_at_bbn.com>> wrote:
>
> Hi Adams,
>
> You should use the OMGraphicList. The OMGeometryList is for sets of
> vector OMGrahics that are intended to be rendered the same way. I
> would imagine that a rectangle for an OMRaster would be rendered
> instead if it were used in an OMGeometryList.
>
>
> Spot on... i see rectangles all over the place...
>
>
>
> setVisible(false) on an OMRect should make it invisible and
> therefore not rendered. I'll have to check on that to see if I can
> reproduce your problem.
>
> Cheers,
>
>
> For the record, I extended Location with class A. Inside class A is a
> OMGraphicList with 2 OMGraphics, an OMRect and an OMRaster. I replaced
> the LocationMarker with that OMGraphicList, In the constructor of class
> A, I set the OMRect visibility to false. However, it still appeared.
>
>
>
> Don
>
>
>
> Adams Tan wrote:
>
> A little background on what I am doing first...
>
> I am extending the Location class, but I chose to use a
> Composite Graphic as the location marker.
>
> For a start, I need to insert an OMRect and an OMRaster into the
> Composite.
>
> Initially, I tried to use OMGeometryList as the marker, however
> I realise somehow call super.render() doesn't show the OMRaster.
> Hence, I used OMGraphicList and presto, it came out. I looked up
> the source code of OMGeometryList and its seems that getShape()
> doesn't return null, hence, it will not iterate through the list
> and render the graphics inside. However, I am puzzled why the
> OMRect appeared!
>
> Anyway, anyone has an Insight of when I should use
> OMGeometryList, and when OMGraphicList... and why the OMRaster
> doesn't get rendered in the case of OMGeometryList.
>
> On a side note, I tried to call setVisible on the OMRect to
> false before doing the rendering, it doesn't seems to have any
> effect, any idea?
>
> Thank you.
>
>

--
[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 Wed Jun 18 2008 - 21:50:47 EDT

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