com.supermap.data

类 GeometryParametric

    • 方法详细资料

      • add

        public int add(PointParametric point)
        向线对象追加一个点。
        参数:
        point - PointParametric 点
        返回:
        int 成功返回添加的点的索引
      • remove

        public boolean remove(int index)
        删除线对象中的指定index的点 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException
        参数:
        index - int 指定的点索引号
        返回:
        boolean 成功返回true,否则返回false
      • get

        public PointParametric get(int index)
        用于获取线对象中的指定的点
        参数:
        index - int 点的索引
        返回:
        PointParametric 成功返回PointParametric对象,失败返回空值。
      • insert

        public boolean insert(int index,
                              PointParametric point)
        用于往线对象中的指定位置插入一个点对象,成功则返回 True,否则返回 False。 当index > PartCount 或 index < 0时抛出IndexOutOfBoundsException 当points.Length < 2 时,抛出IllegalArgumentException
        参数:
        index - int 插入的位置
        point - PointParametric 插入对象的点
        返回:
        boolean 成功则返回 True,否则返回 False
      • set

        public boolean set(int index,
                           PointParametric point)
        在指定的位置上修改线上的点,成功则返回 True。 当index >= PartCount 或 index < 0时抛出IndexOutOfBoundsException
        参数:
        index - int
        point - PointParametric
        返回:
        boolean
      • getCount

        public int getCount()
        返回线对象的总个数。
        返回:
        int
      • setEmpty

        public void setEmpty()
        清空几何对象
        覆盖:
        setEmpty 在类中 Geometry

Copyright © 2021–2024 SuperMap. All rights reserved.