com.supermap.mobjects.situationsimulation

类 GeoEntityToolkit

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.data.InternalHandleDisposable
        • com.supermap.mobjects.situationsimulation.GeoEntityToolkit
  • 所有已实现的接口:
    IDisposable


    public class GeoEntityToolkit
    extends com.supermap.data.InternalHandleDisposable
    地理实体工具类
    • 方法详细资料

      • dispose

        public void dispose()
        释放对象
      • getModelSize

        public static Point3D getModelSize(String strModelPath)
        获取模型大小(模模型的路径)
      • getOffsetPoint3D

        public static Point3D getOffsetPoint3D(Point3D ptOffset,
                                               GeoEntityParameter geoEntityParameter)
        获取根据偏移量计算实体偏移点
        参数:
        ptOffset - 偏移量
        geoEntityParameter - 实体参数
        返回:
        实体偏移后的坐标点
      • getEffectModelsByDSName

        public static ArrayList<Geometry3D> getEffectModelsByDSName(String name)
        通过数据源名称获取特效模型数组(外部释放)
        返回:
        特效模型数组
      • getGetEffectModelDSNames

        public static ArrayList<String> getGetEffectModelDSNames()
        获取特效模型数据源名称列表
        返回:
        特效模型数据源名称列表
      • getCamera

        public static Camera getCamera(Scene pScene)
        获取相机参数
        参数:
        pScene - 场景
        返回:
        相机参数
      • flyToCamera

        public static void flyToCamera(Scene pScene,
                                       double dTime,
                                       Camera pCamera,
                                       boolean bDirect)
        飞行到相机
        参数:
        pScene - 场景
        dTime - 时间(秒)
        pCamera - 相机
      • calculateRotate3D

        public static Point3D calculateRotate3D(Point3D point3D1,
                                                Point3D point3D2,
                                                Point3D point3D3)
        计算切线方向(地理坐标)。
        参数:
        point3D1 - 起点。
        point3D2 - 中间点。
        point3D3 - 终点。
        返回:
      • getOffsetPoint3D

        public static Point3D getOffsetPoint3D(Point3D pntOffset,
                                               Point3D pntPos,
                                               Point3D pntRotate)
        计算相对于当前坐标矩阵的X、Y、Z轴的偏移量的点的经纬度坐标(位置和旋转确定坐标矩阵)
        参数:
        pntOffset - X、Y、Z轴的偏移量(单位:米)
        pntPos - 经纬度位置点
        pntRotate - 旋转(pitch, roll , heading)
        返回:
        返回偏移位置点的经纬度坐标
      • calcPositionOffsetInMatrix4d

        public static Point3D calcPositionOffsetInMatrix4d(Point3D ptTargetPos,
                                                           Point3D ptCurPos,
                                                           Point3D ptCurRotate)
        根据当前的位置和旋转,求目标点在当前局部坐标系中的偏移量(通过位置和旋转确定局部坐标系)
        参数:
        ptTargetPos - 目标点经纬度坐标
        ptCurPos - 当前点经纬度坐标
        ptCurRotate - 当前点旋转角度
        返回:
        返回偏移量

Copyright © 2021–2024 SuperMap. All rights reserved.