Re: [osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-23 Thread Jean-Sébastien Guay

Hi Leandro,


I've updated my old OSGUIsh library, so that it works with newer
versions of OSG. This small library allows to register functions that
get called when GUI-like events (mouse click, mouse move, key
down...) happen on a specific OSG node.


Interesting project! One question: how do you pronounce the name? :-) It 
seems like a mix of an acronym and a word, but I'm wondering if you'd 
say oh-ess-gooey-ish or oh-ess-gee-you-ish or what?


Hehehe... Anyways, I understand the point that it's GUI-ish (kinda like 
a GUI toolkit) events for OSG but I was just wondering.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-23 Thread Leandro Motta Barros
On Fri, Jul 23, 2010 at 9:51 AM, Jean-Sébastien Guay
jean-sebastien.g...@cm-labs.com wrote:
 Hi Leandro,

 I've updated my old OSGUIsh library, so that it works with newer
 versions of OSG. This small library allows to register functions that
 get called when GUI-like events (mouse click, mouse move, key
 down...) happen on a specific OSG node.

 Interesting project! One question: how do you pronounce the name? :-) It
 seems like a mix of an acronym and a word, but I'm wondering if you'd say
 oh-ess-gooey-ish or oh-ess-gee-you-ish or what?

I pronounce oss-goo-ish, but the name is bad that I can't ask people
to pronounce it in any specific way :-P

LMB
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-22 Thread Leandro Motta Barros
Hello,

I've updated my old OSGUIsh library, so that it works with newer
versions of OSG. This small library allows to register functions that
get called when GUI-like events (mouse click, mouse move, key
down...) happen on a specific OSG node.

It can be used more or less like this:

   // First you define a callback
   void HandleClick(OSGUIsh::HandlerParams params)
   {
  std::cout  Click on node '  params.node  '!\n;
   }

   // Later, you connect the events to the callbacks
   osgViewer::Viewer viewer;

   osg::ref_ptrOSGUIsh::EventHandler guishEH(
  new OSGUIsh::EventHandler());

   viewer.addEventHandler(guishEH);

   osg::ref_ptrosg::Node loadedModel =
  osgDB::readNodeFile(Some3DModel.obj);

   guishEH-addNode(loadedModel);
   guishEH-getSignal(loadedModel, Click)-connect(HandleClick);

I don't think it is currently good enough for production use, but I
guess it is a lot better than starting from scratch :-)

It can be downloaded from here: http://www.stackedboxes.org/~lmb/osguish/

Cheers,

LMB
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ANN: OSGUIsh updated (GUI-like events for OSG nodes)

2010-07-22 Thread Torben Dannhauer
Hi LMB,

Thanks for your intresting project!
I'll take a look on it at weekend :)


Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30206#30206





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org