com.supermap.realspace.spatialanalyst

类 Profile

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.data.InternalHandleDisposable
        • com.supermap.realspace.spatialanalyst.Profile
  • 所有已实现的接口:
    IDisposable


    public class Profile
    extends com.supermap.data.InternalHandleDisposable
    剖面线分析,在指定场景中选取起始点,结束点进行分析,得出剖面线分析效果图,在该图中可以计算每个像素点对应的三维空间位置。
    作者:
    hup
    • 构造器详细资料

      • Profile

        public Profile(Scene scene)
        根据指定的Scene对象,构造一个新的Profile对象。
        参数:
        scene - 指定的场景对象。
    • 方法详细资料

      • dispose

        public void dispose()
        释放Profile对象占用的本地资源。
      • getStartPoint

        public Point3D getStartPoint()
        获取剖面线分析的的起始点。
        返回:
        剖面线分析的的起始点。
      • setStartPoint

        public void setStartPoint(Point3D point)
        设置剖面线分析的的起始点。
        参数:
        point - 指定剖面线分析的的起始点。
      • getEndPoint

        public Point3D getEndPoint()
        获取剖面线分析的的结束点。
        返回:
        剖面线分析的的结束点。
      • setEndPoint

        public void setEndPoint(Point3D point)
        设置剖面线分析的的结束点。
        参数:
        point - 指定剖面线分析的的结束点。
      • getExtendHeight

        public double getExtendHeight()
        获取剖面分析在三维空间中的跨越高度,单位是米。
        返回:
        剖面分析在三维空间中的跨越高度。
      • setExtendHeight

        public void setExtendHeight(double height)
        设置剖面分析在三维空间中的跨越高度,单位是米。
        参数:
        height - 指定的跨越高度数值。
      • outputProfileToBitMap

        public BufferedImage outputProfileToBitMap()
        返回剖面线纹理的bitmap图。
        返回:
        剖面线纹理的bitmap图。
      • getLeftTopPosition

        public Point3D getLeftTopPosition()
        返回剖面线纹理中左上角点对应的三维空间位置。
        返回:
        三维空间点。
      • getRightBottomPosition

        public Point3D getRightBottomPosition()
        返回剖面线纹理中右下角点对应的三维空间位置。
        返回:
        三维空间点。
      • build

        public boolean build()
        执行剖面线分析。
        返回:
        执行分析是否成功,成功返回true,否则返回false。
      • clear

        public void clear()
        清除分析结果。
      • getModelIDAndLayerIndex

        public Point getModelIDAndLayerIndex(Point point)
        返回剖面图上鼠标拾取点的模型ID(Point.X), 图层Index(Point.Y) 。
        参数:
        point - 指定的鼠标拾取点。
        返回:
        模型ID(Point.X)和图层索引(Point.Y)。
      • getObjsVisible

        public void getObjsVisible(HashMap<String,int[]> value)
        获取剖面分析的可见对象的ID集合。
        参数:
        value - 可见对象的ID集合。
      • getPoint3Ds

        public boolean getPoint3Ds(Datasource targetDatasource,
                                   String dtName,
                                   String filedLayerName,
                                   String fieldIDName)
        获取剖面分析的剖面线结果三维点数据集。
        参数:
        targetDatasource - 用于保存点数据集的目标数据源。
        dtName - 指定的数据集名称。
        filedLayerName - 点数据所属图层字段。
        fieldIDName - 点数据所属对象ID字段。
        返回:
        true表示获取结果三维点数据集成功,false表示获取结果三维点数据集失败。
      • measurePoint3D

        public Point3D measurePoint3D(Point value)
        根据剖面线纹理中的像素位置,计算对应的三维空间位置。
        参数:
        value - 指定纹理中的像素点。
        返回:
        三维空间位置。

Copyright © 2021–2024 SuperMap. All rights reserved.