From: Emmanuel P. <emm...@in...> - 2007-12-04 17:53:52
|
On 4 d=E9c. 07, at 17:46, Henrik Lindberg wrote: > I mean, when there is a mouse move event, a timer is set. > When the timer fires the pick is performed. If a new mouse move event > occurs, the timer is updated. > > It is a lot more efficient to update a timer than to do a full pick =20= > on every > move. Sure. A full pick on every move is not conceivable anyway. > The effect is that the pick occurs as soon as the mouse is still. > > That is perhaps what you mean by a dwell time. Yes, activation after some dwelling time typically happens when the =20 cursor stands still for a few hundred milliseconds. > Or, is the pick so slow that you even a 'dwell' is a bad idea? I think it could be ok. But I do not think this is a behavior most =20 ZVTM-based applications would expect and/or want. So I'd rather leave =20= that as a customization on a per-application basis. Emmanuel > > - henrik > > -----Original Message----- > From: Emmanuel Pietriga [mailto:Emm...@lr...] > Sent: tisdag 4 december 2007 15:05 > To: he...@ma...; zvt...@li... > Subject: Re: [zvtm-devel] VPath implementation of coordInside > > You mean like a dwell time ? > > Emmanuel > > On 4 d=E9c. 07, at 14:26, Henrik Lindberg wrote: > >> Suggestion - you could also do the pick on mouse move after a delay. >> Regards >> - henrik >> >> -----Original Message----- >> From: zvt...@li... >> [mailto:zvt...@li...] On Behalf Of >> Emmanuel >> Pietriga >> Sent: onsdag 28 november 2007 17:30 >> To: ja...@rv...; zvt...@li... >> Subject: Re: [zvtm-devel] VPath implementation of coordInside >> >> >> On 28 nov. 07, at 16:57, Jan Sanders wrote: >> >>> Hello All, >>> >>> I would like to use ZVTM and ZGRViewer. I use the SVG rendering >>> pipeline >>> to render the DOT output. >>> The edges in a DOT graph are represented by ZVTM using the VPath >>> object, >>> which cannot be selected by the mouse AFAIK. >> >> It can. >> >> >>> I looked at the source of VPath and the method >>> >>> public boolean coordInside(int x,int y,int camIndex){ >>> return false; >>> } >>> >>> does not seem to be implemented. Is there a technical reason for =20 >>> this >>> being so? >> >> Yes: performance. We don't want to do general path picking on each >> mouse move. >> >> So you have to call the picking method explicitly, for instance when >> a mouse button is pressed. See [1]. >> >> [1] http://zvtm.sourceforge.net/apidocs/com/xerox/VTM/engine/ >> VCursor.html#getIntersectingPaths(com.xerox.VTM.engine.Camera,%20int) >> >> Hope this helps, >> Emmanuel >> >> >> >>> As I understand it the VPath object is redered using >>> java.awt.geom.GeneralPath. This is capable of detecting a >>> "coordInside" >>> using one of three contains(*) methods. >>> >>> Any help will be appreciated. >>> >>> >>> cheers >>> >>> >>> Jan Sanders >>> >>> --------------------------------------------------------------------=20= >>> - >>> - >>> --- >>> SF.Net email is sponsored by: The Future of Linux Business White >>> Paper >>> from Novell. =46rom the desktop to the data center, Linux is going >>> mainstream. Let it simplify your IT future. >>> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >>> _______________________________________________ >>> zvtm-devel mailing list >>> zvt...@li... >>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >> >> -- >> Emmanuel Pietriga >> INRIA Futurs - Projet In Situ tel : +33 1 69 15 34 66 >> Bat 490, Universit=E9 Paris-Sud fax : +33 1 69 15 65 86 >> 91405 ORSAY Cedex FRANCE http://www.lri.fr/~pietriga >> >> >> >> >> ---------------------------------------------------------------------=20= >> - >> --- >> SF.Net email is sponsored by: The Future of Linux Business White =20 >> Paper >> from Novell. =46rom the desktop to the data center, Linux is going >> mainstream. Let it simplify your IT future. >> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >> _______________________________________________ >> zvtm-devel mailing list >> zvt...@li... >> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >> >> >> ---------------------------------------------------------------------=20= >> - >> --- >> SF.Net email is sponsored by: The Future of Linux Business White =20 >> Paper >> from Novell. =46rom the desktop to the data center, Linux is going >> mainstream. Let it simplify your IT future. >> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >> _______________________________________________ >> zvtm-devel mailing list >> zvt...@li... >> https://lists.sourceforge.net/lists/listinfo/zvtm-devel > > -- > Emmanuel Pietriga > INRIA Futurs - Projet In Situ tel : +33 1 69 15 34 66 > Bat 490, Universit=E9 Paris-Sud fax : +33 1 69 15 65 86 > 91405 ORSAY Cedex FRANCE http://www.lri.fr/~pietriga > > > -- Emmanuel Pietriga INRIA Futurs - Projet In Situ tel : +33 1 69 15 34 66 Bat 490, Universit=E9 Paris-Sud fax : +33 1 69 15 65 86 91405 ORSAY Cedex FRANCE http://www.lri.fr/~pietriga |