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.
76 lines (75 loc) • 2.01 kB
TypeScript
import Overlay from "../Overlay";
import { T_Position } from "../../common/type";
/**
* 单体化图元
* @noInheritDoc
* @example
* ```ts
* let monomer = new BC.MonomerPrimitive('120,20;120,30;122,30')
* monomer.setStyle({
* height:100,
* extrudedHeight:200,
* color: BC.Color.AQUA.withAlpha(0.3),
* outline: false,
* classificationType: 2
* })
* ```
*/
declare class MonomerPrimitive extends Overlay {
private _positions;
/**
*
* @param positions 坐标串
*/
constructor(positions: string | T_Position[]);
get type(): any;
set positions(positions: string | T_Position[]);
/**
* 单体化坐标
*/
get positions(): string | T_Position[];
/**
* 单体化高度
*/
get height(): number;
set height(value: number);
/**
* 单体化拉伸高度
*/
get extrudedHeight(): number;
set extrudedHeight(value: number);
/**
* 单体化颜色
*/
get color(): Cesium.Color;
set color(value: Cesium.Color);
/**
* 单体化边框
*/
get outline(): boolean;
set outline(value: boolean);
set classificationType(value: number);
/**
* 分类 是否影响地形,3D切片或同时影响这两者。0:地形、1:3D切片、2:两者
*/
get classificationType(): number;
protected _mountedHook(): void;
/**
* 设置风格
* @param style
* @returns {WaterPrimitive}
* @example
* ```json
* // 样式参数(可选)
* {
* "height": 1, //高度
* "extrudedHeight": 0, //拉升高度
* "outline": false, //是否显示边框
* "color": BC.Color.BLUE, //单体化颜色
* "classificationType": 2, //分类 是否影响地形,3D切片或同时影响这两者。0:地形、1:3D切片、2:两者
* }
* ```
*/
setStyle(style: any): this;
}
export default MonomerPrimitive;