From: Henrik L. <he...@ma...> - 2007-12-04 13:28:27
|
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 =20 > pipeline > to render the DOT output. > The edges in a DOT graph are represented by ZVTM using the VPath =20 > 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 this > being so? Yes: performance. We don't want to do general path picking on each =20 mouse move. So you have to call the picking method explicitly, for instance when =20 a mouse button is pressed. See [1]. [1] http://zvtm.sourceforge.net/apidocs/com/xerox/VTM/engine/=20 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 =20 > "coordInside" > using one of three contains(*) methods. > > Any help will be appreciated. > > > cheers > > > Jan Sanders > > ---------------------------------------------------------------------- = > --- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From 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 -------------------------------------------------------------------------= SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From 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 |