沿线飞行可以分为两种,一种其实是视角在沿线飞行,还有一种就是沿线飞行。在开发文档上面已经有了区分。

1.FlyAlongWithLine
private void button4_Click(object sender, EventArgs e)
{
GSOFeature feature = globeControl1.Globe.SelectedObject;
if (feature != null)
{
if (feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
GSOGeoPolyline3D flyline = feature.Geometry as GSOGeoPolyline3D;
globeControl1.Globe.FlyAlongLineRotateSpeed = 2000; //过弯速度
globeControl1.Globe.FlyAlongLineSpeed = 500;
double higherthanline = 100; //高于线
double eyedegree = 0; //视角夹角
double intersectionangle = 80;//水平夹角
globeControl1.Globe.FlyAlongWithLine(flyline, higherthanline, eyedegree, intersectionangle);
}
}
}

2.FlyEyeAlongWithLine
private void flyeyealongline_Click(object sender, EventArgs e)
{
GSOFeature feature = globeControl1.Globe.SelectedObject;
if (feature != null)
{
if (feature.Geometry.Type == EnumGeometryType.GeoPolyline3D)
{
GSOGeoPolyline3D flyline = feature.Geometry as GSOGeoPolyline3D;
double higherthanline = 100; //高于线
double eyedegree = 0; //视角夹角
double intersectionangle = 80;//水平夹角
globeControl1.Globe.FlyEyeAlongWithLine(flyline, higherthanline, 0, true,0,false);
}
}
}

网友评论