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.
68 lines (67 loc) • 1.58 kB
TypeScript
import Overlay from "../Overlay";
import { T_Position } from "../../common/type";
/**
* 扩散墙图元
* @noInheritDoc
* @example
* ```ts
* let position = new BC.Position(120, 20)
* let wall = new BC.DiffuseWallPrimitive(position, 2000, 1000)
* ```
*/
declare class DiffuseWallPrimitive extends Overlay {
private _center;
private _height;
private _radius;
private _currentHeight;
private _currentRadius;
/**
*
* @param center 坐标
* @param radius 半径
* @param height 高度
*/
constructor(center: T_Position, radius: number, height: number);
get type(): any;
set center(position: T_Position);
get center(): T_Position;
set radius(radius: number);
get radius(): number;
set height(height: number);
get height(): number;
/**
*
* @private
*/
private _getPositions;
/**
*
* @param length
* @param hegiht
* @private
*/
private _getHeights;
/**
*
* @param frameState
*/
update(frameState: any): boolean;
/**
* 设置风格
* @param style
* @example
* ```json
* // 样式参数(可选)
* {
* "minRadius": 10, // 动画最小半径
* "minHeight": 30, // 动画最小高度
* "color": BC.Color.RED, // 墙体颜色
* "slices": 128, //边数
* "speed": 10 //速度
* }
* ```
*/
setStyle(style: any): this;
destroy(): void;
}
export default DiffuseWallPrimitive;