Hi Ignacio,

Of course I'm interested! I also don't mind cleaning up the code,
which may not even be necessary in my case since we also use
MFC-reminiscent naming conventions.

Actually, I was also planning on using this method for single
selection since using the osg::IntersectVisitor it is nearly
impossible to select a line or a point.

On 10/23/06, Ignacio García <[EMAIL PROTECTED]> wrote:
I have done it, more or less following Robert's suggestions. But it
currently it doesn't follow OSG function/vars naming style, nor formatting
rules or so (it's closer to MFC naming style...)

But probably I can release those classes. It includes:
- A COsgPolytopeVisitor a visitor which computes what is inside the box
- A COsgSelectionHandler, a sceneHandler to pick the user clics so as to
detect the clic-drag-release of such a selection
- A COsgSelRectUpdCB, an updateCallback to actually draw the rectangle on
the screen while the user is dragging (it has a delay that comes from the
current mouse position until next frame is drawn. Impossible to avoid if the
rectangle is drawn in the OSG scene?)

The code will probably be a bit dirty, as my selection handler also allows
single pick selection of one item, and it's all mixed with the
box-selection. But it may provide some help.

Tell me if interested. If many people interested, maybe I can clean-up the
code and submit, as a nodekit, or whatever you think is better.

-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de c sklu
Enviado el: lunes, 23 de octubre de 2006 16:47
Para: osg users
Asunto: [osg-users] box-selection

Hi,

I've seen some discussions in the archives about doing box-selection
but I haven't seen that anyone's actually done it. I thought I also
saw one email from Robert (in 2003 I think) saying that this would be
in upcoming releases. Is this so and if so, where is it?

I was thinking about jcreating a new class based on the CullVisitor
and/or IntersectVisitor code but of course it would be nice if someone
has already done it the right way :-)

Regards,
Chris
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to