private void InitRestrictedAreaPoints(bool isUpdate) { if (!isUpdate) { AreaPoints = new Dictionary <AreaPointsType, List <Point3D> >() { { AreaPointsType.RestrictedArea, new List <Point3D> { new Point3D(0), new Point3D(2), new Point3D(3), new Point3D(1) } } } } ; AreaPoints[AreaPointsType.RestrictedArea][0] .UpdateCoords(Convertation.TransformCoordsFromSchemeToProgram(1000, 1000, 8000)); AreaPoints[AreaPointsType.RestrictedArea][1] .UpdateCoords(Convertation.TransformCoordsFromSchemeToProgram(1000, 1000, 13000)); AreaPoints[AreaPointsType.RestrictedArea][2] .UpdateCoords(Convertation.TransformCoordsFromSchemeToProgram(-1000, 1000, 13000)); AreaPoints[AreaPointsType.RestrictedArea][3] .UpdateCoords(Convertation.TransformCoordsFromSchemeToProgram(-1000, 1000, 8000)); }
private void UpdateNavPointsData(NavigationPointsType type, List <Point3D> coords) { for (var i = 0; i < coords.Count; i++) { NavigationPoints[type][i].UpdateCoords(Convertation. TransformCoordsFromSchemeToProgram(coords[i].X, coords[i].Y, coords[i].Z)); } }