三维场景中的几何对象风格类。该类主要用于设置三维场景中几何对象的显示风格。
命名空间:
SuperMap.Data程序集: SuperMap.Data (in SuperMap.Data)
版本: dll
语法
C# |
---|
public class GeoStyle3D : IDisposable |
示例
以下代码示范如何为一个三维面几何对象设置三维风格。
CopyC#
public void GeoStyle3DSample() { // 实例化一个三维面几何对象 geoRegion3D,并对其进行风格设置 GeoStyle3D geoStyle3D = new GeoStyle3D(); geoStyle3D.AltitudeMode = AltitudeMode.Absolute; geoStyle3D.BottomAltitude = 200; geoStyle3D.ExtendedHeight = 20; geoStyle3D.FillForeColor = Color.Blue; geoStyle3D.FillMode = FillMode3D.Fill; GeoRegion3D geoRegion3D = new GeoRegion3D(); Point3Ds point3Ds = new Point3Ds(); Point3D[] point3DArray = {new Point3D(10, 50, 10), new Point3D(150, 50, 20), new Point3D(100, 150, 20), new Point3D(10, 150, 10)}; point3Ds.AddRange(point3DArray); geoRegion3D.AddPart(point3Ds); geoRegion3D.Style3D = geoStyle3D; }
继承层次
System..::.Object
SuperMap.Data..::.GeoStyle3D
SuperMap.Data..::.GeoStyle3D