#include #include #include #include static bool checkDraggers( const osgManipulator::CompositeDragger& dragger ) { return dragger.getNumDraggers()>0; } static bool readDraggers( osgDB::InputStream& is, osgManipulator::CompositeDragger& dragger ) { unsigned int size = 0; is >> size >> osgDB::BEGIN_BRACKET; for ( unsigned int i=0; i( is.readObject() ); if ( child ) dragger.addDragger( child ); } is >> osgDB::END_BRACKET; return true; } static bool writeDraggers( osgDB::OutputStream& os, const osgManipulator::CompositeDragger& dragger ) { unsigned int size = dragger.getNumDraggers(); os << size << osgDB::BEGIN_BRACKET << std::endl; for ( unsigned int i=0; i