1234567891011121314151617181920 |
- import VectorType from "../enum/VectorType.js";
- import Road from "./Road.js";
- import Setting from "../Setting";
- export default class CurveRoad extends Road {
- constructor(startId, endId, vectorId) {
- super(startId, endId, vectorId);
- this.points = []; //中心线上一系列控制点。数组是从start到end。
- this.leftLanesCurves = []; //左车道曲线
- this.rightLanesCurves = []; //左车道曲线
- this.leftDrivewayCount = Setting.curveRoadLeftDrivewayCount; //左边的车道个数
- this.rightDrivewayCount = Setting.curveRoadRightDrivewayCount; //右边的车道个数
- this.leftWidth = Setting.leftCurveRoadWidth;
- this.rightWidth = Setting.rightCurveRoadWidth;
- this.midDivideWidth = Setting.curveRoadMidDivideWidth;
- this.curves = [];
- this.geoType = VectorType.CurveRoad;
- this.setId(vectorId);
- }
- }
|