World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 04-12-2012, 02:08 PM   #1
tibus29
Junior Member
 
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
tibus29 is on a distinguished road
Default Click event on BasicTiledImageLayer

Hi,

Is it possible to catch an event when click on BasicTiledImageLayer ?

Thanks
tibus29 is offline   Reply With Quote
Old 04-12-2012, 03:12 PM   #2
heidtmare
Senior Member
 
heidtmare's Avatar
 
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
heidtmare is on a distinguished road
Default

you can add a mouselistener to the inputhandler
heidtmare is offline   Reply With Quote
Old 04-12-2012, 03:25 PM   #3
tibus29
Junior Member
 
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
tibus29 is on a distinguished road
Default

Ok, but what do you mean exactly because when I click anywhere I receive the event ? Or I would receive an event only when I click on a BasicTiledImageLayer...
Maybe I didn't understand something about layers ?
tibus29 is offline   Reply With Quote
Old 04-12-2012, 03:26 PM
tibus29
This message has been deleted by tibus29. Reason: Double post, sorry...
Old 04-13-2012, 03:31 AM   #4
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,041
tag is on a distinguished road
Default

BasicTiledImageLayer typically covers the terrain. When you click on the layer's imagery the presumption is that you're picking the terrain. There's no mechanism to deliver Select events that indicate a TiledImageLayer was picked.

If the TiledImageLayer covers a small area then you could place a transparent SurfaceSector over it and that would be delivered as the pick. Picking doesn't honor opacity.
tag is offline   Reply With Quote
Old 04-13-2012, 09:22 AM   #5
tibus29
Junior Member
 
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
tibus29 is on a distinguished road
Default

Ok, it's exactly what I will do !

Thanks,

Kenavo
tibus29 is offline   Reply With Quote
Old 04-14-2012, 01:31 AM   #6
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,041
tag is on a distinguished road
Default

When you set the surface shape's opacity, be sure to use a very small value that's not 0. There's a bug in the code that prevents a surface shape whose opacity is 0 from being picked. Try 0.00000001.
tag is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable mouse right click event for pitch and roll Unregistered Feature Discussion 1 09-13-2012 04:20 PM
Double Click Zoom ayman Development Help 0 10-31-2010 09:17 AM
WorldWindowGLCanvas click event question nigel25840 Development Help 2 10-13-2009 01:58 AM
Get screen point for click position in select event naql Development Help 3 08-04-2008 05:58 PM
subscribing to the click events and getting what icons are under the event Unregistered Add-on & Script Development 2 01-26-2007 02:22 PM


All times are GMT +1. The time now is 12:59 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.