bcgis-type
Version:
The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.
46 lines (45 loc) • 1.08 kB
TypeScript
import { T_Position } from "../common/type";
import Position from "../position/Position";
/**
* 压平面
*/
export declare class FlattenPolygon {
private _height;
private _positions;
private _enabled;
updateEvent: Cesium.Event;
onChangeCallback: (index: number) => void;
index: number;
constructor(options?: {
height: number;
positions: string | T_Position[];
enabled: boolean;
});
/**
* 压平面高度
*/
get height(): number;
set height(value: number);
/**
* 压平面位置数组
*/
get positions(): Position[];
set positions(value: string | T_Position[]);
/**
* 是否启用
*/
get enabled(): boolean;
set enabled(value: boolean);
/**
* 获取图形
* @returns
*/
getGeometry(): Cesium.PolygonGeometry;
/**
* 判断压平面是否相等
* @param left
* @param right
* @returns
*/
static equals(left: FlattenPolygon, right: FlattenPolygon): boolean;
}