OpenSceneGraph/include/osgManipulator
Robert Osfield dd996a3289 Introduced CMake option OSG_PROVIDE_READFILE option that defaults to ON, but when switched to OFF disables the building of the osgDB::read*File() methods,
forcing users to use osgDB::readRef*File() methods.  The later is preferable as it closes a potential threading bug when using paging databases in conjunction
with the osgDB::Registry Object Cache.  This threading bug occurs when one thread gets an object from the Cache via an osgDB::read*File() call where only
a pointer to the object is passed back, so taking a reference to the object is delayed till it gets reassigned to a ref_ptr<>, but at the same time another
thread calls a flush of the Object Cache deleting this object as it's referenceCount is now zero.  Using osgDB::readREf*File() makes sure the a ref_ptr<> is
passed back and the referenceCount never goes to zero.

To ensure the OSG builds when OSG_PROVIDE_READFILE is to OFF the many cases of osgDB::read*File() usage had to be replaced with a ref_ptr<> osgDB::readRef*File()
usage.  The avoid this change causing lots of other client code to be rewritten to handle the use of ref_ptr<> in place of C pointer I introduced a serious of
templte methods in various class to adapt ref_ptr<> to the underly C pointer to be passed to old OSG API's, example of this is found in include/osg/Group:

    bool addChild(Node* child); // old method which can only be used with a Node*

    tempalte<class T> bool addChild(const osg::ref_ptr<T>& child) { return addChild(child.get()); } // adapter template method

These changes together cover 149 modified files, so it's a large submission. This extent of changes are warrent to make use of the Object Cache
and multi-threaded loaded more robust.



git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15164 16af8721-9629-0410-8352-f15c8da7e697
2015-10-22 13:42:19 +00:00
..
AntiSquish Added implementations for the libraryName and className for the AntiSquish node. 2015-04-17 13:33:08 +00:00
Command Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
CommandManager Added constructor and destructor body 2009-07-01 14:49:30 +00:00
Constraint From David Callu, warning fixes and removal of spaces at end of lines. 2013-06-28 12:00:43 +00:00
Dragger Introduced CMake option OSG_PROVIDE_READFILE option that defaults to ON, but when switched to OFF disables the building of the osgDB::read*File() methods, 2015-10-22 13:42:19 +00:00
Export From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
Projector Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00
RotateCylinderDragger From Chuck Seberino, "Attached are modified versions of RotateCylinderDragger and Projector files that clean up the use of _onCylinder / isProjectionOnCylinder(). 2012-03-09 10:20:23 +00:00
RotateSphereDragger From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
Scale1DDragger From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
Scale2DDragger From Jannik Heller, typo fixes 2015-04-07 18:01:12 +00:00
ScaleAxisDragger From Andreas Henne, "in my application I use the TrackballDragger, the ScaleAxisDragger and the TranslateAxisDragger. Unfortunately these draggers are very thin and they do not provide methods to change their visual appearance. Another problem that I noticed is that lighting on the cones and boxes of the TranslateAxisDragger and ScaleAxisDragger is incorrect when the draggers are scaled due to not normalized normals. This small patch adresses these problems, providing methods to make the draggers thicker. I have attached a zip archive containing the corresponding files and also a modified osgManipulator example that makes use of the modifications. I don't want to retain any copyright." 2013-10-18 07:31:22 +00:00
Selection Completed refactor of osgManipulator, key changes are: 2009-07-01 14:01:09 +00:00
TabBoxDragger From David Callu, "osgManipulator Object have not META_Object macro call in class definition. 2009-03-11 11:29:00 +00:00
TabBoxTrackballDragger Introduced TabBoxTrackballDragger 2009-08-05 16:02:44 +00:00
TabPlaneDragger From Jaap Glas, "Added a default parameter to the following constructor in TabPlaneDragger 2012-05-25 08:56:25 +00:00
TabPlaneTrackballDragger From David Callu, "osgManipulator Object have not META_Object macro call in class definition. 2009-03-11 11:29:00 +00:00
TrackballDragger From Andreas Henne, "in my application I use the TrackballDragger, the ScaleAxisDragger and the TranslateAxisDragger. Unfortunately these draggers are very thin and they do not provide methods to change their visual appearance. Another problem that I noticed is that lighting on the cones and boxes of the TranslateAxisDragger and ScaleAxisDragger is incorrect when the draggers are scaled due to not normalized normals. This small patch adresses these problems, providing methods to make the draggers thicker. I have attached a zip archive containing the corresponding files and also a modified osgManipulator example that makes use of the modifications. I don't want to retain any copyright." 2013-10-18 07:31:22 +00:00
Translate1DDragger From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
Translate2DDragger From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the 2010-04-28 20:16:44 +00:00
TranslateAxisDragger From Andreas Henne, "in my application I use the TrackballDragger, the ScaleAxisDragger and the TranslateAxisDragger. Unfortunately these draggers are very thin and they do not provide methods to change their visual appearance. Another problem that I noticed is that lighting on the cones and boxes of the TranslateAxisDragger and ScaleAxisDragger is incorrect when the draggers are scaled due to not normalized normals. This small patch adresses these problems, providing methods to make the draggers thicker. I have attached a zip archive containing the corresponding files and also a modified osgManipulator example that makes use of the modifications. I don't want to retain any copyright." 2013-10-18 07:31:22 +00:00
TranslatePlaneDragger Fixed comment 2014-04-14 16:16:08 +00:00
Version Ran script to remove trailing spaces and tabs 2012-03-21 17:36:20 +00:00