Okay I think the correct thing to do would be a small refactor; if we take the heart of the info tool out into an "InfoCommand" you can call the InfoCommand.
The InfoCommand would then pass the location over to the InfoView and let it do its thing. Would you like to open an issue in the issue tracker for this. And you are welcome to make a patch to the above effect ... -- Jody Garnett On Wednesday, 7 December 2011 at 2:36 AM, Alberto Debiasi wrote: > I'm developing a 3d map. I would like to: > > - Click on a object in the 3d map (this object is also on the udig 2d map). > - call a method (for example InfoTool.getInfo() with the position of the > object as input) > - the method will show all the information in the infoPanel > > 2011/12/6 Jody Garnett <[email protected] > (mailto:[email protected])> > > That is a great question! > > > > Here is the honest answer - we were waiting for someone to ask that > > question before creating a way. > > > > This is actually project policy: > > - http://udig.refractions.net/confluence/display/DEV/1+UDIG+Guidelines > > > > To quote from the above page: > > > > > No API Before Its Time > > > > > > Additional plug-ins and functionality can be added at the request of the > > > developer community (this means you). We try not to add any functionality > > > without a solid use-case from a real developer, preferably with a running > > > example in a community module. > > > > > > > > > If what you are looking for is not here - please ask on the developer > > > list. > > > > > > > > > > > > > > > > > > So I would like to hear from you what you how you would like to hook into > > the info tool? Can you tell me a story of what you are trying to accomplish? > > > > As a reference point here is how it works today: > > 1. Right now the InfoTool turns around and opens the InfoView; passing it > > the coordinate that was clicked on. The InfoView then goes and asks each > > layer if it has something to say. > > 2. For the layers that do have something to say; they are listed along the > > left hand side of the info view (they are basically what the user managed > > to "hit"). > > 3. If the user selects one of them the result is displayed on the right > > hand side of the info view. We have support for three things currently: > > - get feature info (basically a web URL request to a WMS) > > - feature details (we show the feature properties in a normal eclipse > > properties panel) > > - coverage (I think this is a custom view) > > > > -- > > Jody Garnett > > > > > > On Tuesday, 6 December 2011 at 11:35 PM, Alberto Debiasi wrote: > > > > > > > > > Hello everybody. > > > > > > How can I intercept the event occurred when I click the "info button" and > > > then I click on a feature on the 2d map? > > > > > > Which are the methods that manage the information of the selected feature > > > with the infomation panel? > > > > > > Thanks > > > > > > Alberto > > > > > > _______________________________________________ > > > udig-users mailing list > > > [email protected] (mailto:[email protected]) > > > http://lists.refractions.net/mailman/listinfo/udig-users > > > > > > > > > > > > > >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
