Hello I would like to highlight a FXGLLine when it gets selected/deselected. How do I achieve that? (maybe there is som built in support for this FXGLObject::SEL_HIGHTLIGHT??) Regards Bjorn Bergqvist
Hi as far as I know you need to use the standard OpenGL selection mode to be able to "pick" objects in a GL canvas (maybe I''m wrong and FOX provide some standard method) .. I can suggest you this tutorial http://www.lighthouse3d.com/opengl/picking/ that is really simple, clear and very well done (imho). Hope it can be useful See you, Riccardo :) On Wed, 07 Dec 2005 13:50:47 +0100, Bj?rn Bergqvist <bjorn.bergqvist at gmail.com> wrote:> Hello > I would like to highlight a FXGLLine when it gets selected/deselected. > How do I achieve that? (maybe there is som built in support for this > FXGLObject::SEL_HIGHTLIGHT??) > > Regards > Bjorn Bergqvist > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users-- Riccardo Giannitrapani I.N.F.N - Sezione di Trieste and Dipartimento di Fisica Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Room L1-14-BE Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 ---- There are only 10 kinds of people in this world: those who understand binary and those who don''t. (Anonymous)
Hi, Thank you for the answer. Still I think there should be some highlight feature. FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? Bjorn Bergqvist On 12/7/05, Riccardo Giannitrapani <riccardo at fisica.uniud.it> wrote:> Hi > > as far as I know you need to use the standard OpenGL selection mode to be > able to "pick" objects in a GL canvas (maybe I''m wrong and FOX provide > some standard method) .. I can suggest you this tutorial > > http://www.lighthouse3d.com/opengl/picking/ > > that is really simple, clear and very well done (imho). Hope it can be > useful > > See you, Riccardo :) > > > On Wed, 07 Dec 2005 13:50:47 +0100, Bj?rn Bergqvist > <bjorn.bergqvist at gmail.com> wrote: > > > Hello > > I would like to highlight a FXGLLine when it gets selected/deselected. > > How do I achieve that? (maybe there is som built in support for this > > FXGLObject::SEL_HIGHTLIGHT??) > > > > Regards > > Bjorn Bergqvist > > > > _______________________________________________ > > fxruby-users mailing list > > fxruby-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/fxruby-users > > > > -- > Riccardo Giannitrapani > I.N.F.N - Sezione di Trieste and Dipartimento di Fisica > Universita` di Udine - Via delle Scienze, 206 Udine (Italy) > Room L1-14-BE Tel (Office): +39-0432-558209 > Home Page: http://www.fisica.uniud.it/~riccardo > ICQ# 86590904 > > ---- > There are only 10 kinds of people in this world: > those who understand binary and those who don''t. > (Anonymous) > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >
On Wednesday 14 December 2005 01:32 am, Bj?rn Bergqvist wrote:> Hi, > Thank you for the answer. > > Still I think there should be some highlight feature. > FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked??Stay tuned for Lumos. The Lumos library will be the more advanced 3D class collection for FOX. - Jeroen
On Wednesday 14 December 2005 01:32, Bj?rn Bergqvist wrote:> Hi, > Thank you for the answer. > > Still I think there should be some highlight feature. > FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked??Except for FXGLObject and FXGLGroup, the other classes are just examples; they are not intented to be useful in a real application. In a real application, you''d catch the SEL_SELECTED and SEL_DESELECTED messages from the FXGLViewer and use them to alter the appearance of the objects in some way. How you do this depends on the application. For example, you can draw a bounding box around the selected object to indicate that it''s selected, or draw "drag-handles" at selected points. In other applications you may highlight an item in a treelist corresponding to the object hierarchy. No state information is present in FXGLObject itself, so there''s little overhead [beyong the usual vtable pointer that is], in case your application manages massive amounts of point-objects, for example. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 19:50 12/14/2005 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+
Hi Jeroen I''m really interested in this topic (using FOX and OpenGL in the last few years) .. can you point me to some details on this Lumos library? I''m really curious .. Thanks (for this and for FOX), Riccardo :) On Wed, 14 Dec 2005 14:50:14 +0100, Jeroen van der Zijp <jeroen at fox-toolkit.org> wrote:> On Wednesday 14 December 2005 01:32 am, Bj?rn Bergqvist wrote: >> Hi, >> Thank you for the answer. >> >> Still I think there should be some highlight feature. >> FXGLShape::onDNDDrop exist, why not a FXGLShape::onMouseClicked?? > > Stay tuned for Lumos. The Lumos library will be the more advanced 3D > class > collection for FOX. > > > - Jeroen > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users-- Riccardo Giannitrapani I.N.F.N - Sezione di Trieste and Dipartimento di Fisica Universita` di Udine - Via delle Scienze, 206 Udine (Italy) Room L1-14-BE Tel (Office): +39-0432-558209 Home Page: http://www.fisica.uniud.it/~riccardo ICQ# 86590904 ---- There are only 10 kinds of people in this world: those who understand binary and those who don''t. (Anonymous)