#include<Windows.h>
#include<osgDB/ReadFile>
#include<osgViewer/viewer>
#include<osg/ShapeDrawable>
#include<osgText/Text>
#include<osg/LineWidth>
#include<osg/MatrixTransform>
#include<osgViewer/ViewerEventHandlers>
#include<osgGA/StateSetManipulator>
using namespace std;
//四元数和欧拉加转换
osg::Quat YawPitRollToQuat(double yaw, double pitch, double roll)
{
osg::Quat q(
roll, osg::Vec3d(0.0, 1.0, 0.0),
pitch, osg::Vec3d(1.0, 0.0, 0.0),