//初始化函数
osg::Geode* _geode = new osg::Geode();
osg::Geom* _geom = new osg::Geometry();
_geode->addDrawable(_geom.get());
_geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINE_STRIP));
new osg::Vec3Array* _lineList = new osg::Vec3Array();
_geom->setVertexArray(_lineList.get());
osg::Vec4Array* _color = new osg::Vec4Array();
_geom ->setColorArray(_color);
_geom->setColorBinding(osg::Geometry::BIND_OVERALL);