Discussion:
[osg-users] CameraManipulator init
Sam Brkopac
2018-07-30 20:48:46 UTC
Permalink
Hi All,

I was digging through the CameraManipulator code and came across the init function. I noticed it runs a few times during scene setup, and after looking into the code I see the following:


Code:

/**
Start/restart the manipulator.
FIXME: what does this actually mean? Provide examples.
*/
virtual void init(const GUIEventAdapter& ,GUIActionAdapter&) {}




Does anybody have the update documentation or perhaps some notes on when / how the init function is being called?

Thanks, Sam[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74429#74429
Robert Osfield
2018-07-31 08:12:36 UTC
Permalink
Hi Sam,

I have just checked the history of CameraMaipulator, I must have
missed this the addition of FIXME back in.

Date: Wed Aug 28 14:27:18 2002 +0000

Updates, from Neil Salter, to comments etc to osgGA which add better
explanations of how each of the classes operates.


I think this was more a note to self, from the author, Neil who wrote
it to come back and add further clarification beyond "State/restart
the manipulator" which is what he put it when he first wrote it,

I'm note sure why there is a need for any further information beyond
"Start/restart the manipulator", the init() function is just a hook to
enable CameraManipulator subclasses to initialize themselves. I will
remove the FIXME.

Robert.
Post by Sam Brkopac
Hi All,
/**
Start/restart the manipulator.
FIXME: what does this actually mean? Provide examples.
*/
virtual void init(const GUIEventAdapter& ,GUIActionAdapter&) {}
Does anybody have the update documentation or perhaps some notes on when / how the init function is being called?
Thanks, Sam[/code]
------------------
http://forum.openscenegraph.org/viewtopic.php?p=74429#74429
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...