长方体几何对象类,继承于 Geometry3D 类。用于在三维图层上绘制长方体几何对象。

注意:添加该类型的实例到三维场景的跟踪图层时,必须要调用 GetGeoModel() 方法,使其按 GeoModel 的方式重新构建。

命名空间:  SuperMap.Data
程序集:  SuperMap.Data (in SuperMap.Data)
版本: dll

语法

C#
public class GeoBox : Geometry3D

备注

示例

以下代码示范如何向跟踪图层添加长方体几何对象。

假设存在一个场景控件 sceneControl。

CopyC#
public void AddGeoBox()
{
    // 构造 GeoBox 对象
    GeoBox geoBox = new GeoBox();
    // 设置长方体的底面大小
    geoBox.BottomSize = new Size2D(200, 100);
    // 设置长方体的高度
    geoBox.Height = 200;
    // 设置长方体所在的位置
    geoBox.Position = = new Point3D(116.3871597841252,39.99008027631623,100);

    // 获取按 GeoModel 的方式重新构建的模型对象
    GeoModel geoModel = geoBox.GetGeoModel(100, 100);

    // 向跟踪图层上添加长方体
    sceneControl.Scene.TrackingLayer.Add(geoModel, "GeoBox");   

    // 飞行定位到该长方体对象
    m_sceneControl.Scene.Fly(geoModel, FlyingMode.FlyingTo);
 }

继承层次

System..::.Object
  SuperMap.Data..::.Geometry
    SuperMap.Data..::.Geometry3D
      SuperMap.Data..::.GeoBox

版本信息

SuperMap iObjects .NET


SuperMap Objects .NET

受以下版本支持: 6.1.3

请参见