Return-Path: Delivered-To: apmail-xml-batik-dev-archive@www.apache.org Received: (qmail 23642 invoked from network); 23 Sep 2004 09:51:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Sep 2004 09:51:43 -0000 Received: (qmail 58459 invoked by uid 500); 23 Sep 2004 09:51:40 -0000 Delivered-To: apmail-xml-batik-dev-archive@xml.apache.org Received: (qmail 58421 invoked by uid 500); 23 Sep 2004 09:51:40 -0000 Mailing-List: contact batik-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: batik-dev@xml.apache.org Delivered-To: mailing list batik-dev@xml.apache.org Received: (qmail 58383 invoked by uid 99); 23 Sep 2004 09:51:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Message-ID: <41529CA7.8030809@Kodak.com> Date: Thu, 23 Sep 2004 05:51:35 -0400 From: Thomas DeWeese Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: batik-dev@xml.apache.org Subject: Re: Defining of elements lying in rectangle References: <006901c4a0b5$60868590$e192b280@sti.intranet.epfl.ch> <1095876284.3935.1.camel@localhost> <4151C390.1070203@Kodak.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Jorg, > Thomas DeWeese wrote: >> Well you should be able to call: >> svg.getIntersectionList(Rect, Element). >> >> But that's currently not implemented. If you do it with the >> DOM don't forget to take transforms into account. This is getting >> high on my list of things to work on... Jorg Heymans wrote: > Indeed, this would be *extremely* handy for any GEO related application > where selecting "features" (ie svg elements) is considered standard > functionality. If this gets implemented, will it be possible to have > any selection shape (circle, ellipse, custom) ? As far as I can see the SVG DOM only supports using a Rect element. However, I seem to recall an interface along these lines perhaps it is in 1.2? > What do you mean by "don't forget to take transforms into account" ? getBBox returns the bounding box in the local coordinate system, so it needs to be transformed to what ever coordinate system you defined your top level rectangle in. Probably using getTransformToElement or getScreenCTM. --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org For additional commands, e-mail: batik-dev-help@xml.apache.org