コード例 #1
0
        private PolyBezierLayer(VisualParameters parameters)
        {
            this.LayerId = Guid.NewGuid();

            this.VisibleRange = ScaleInterval.All;

            //this.VisualParameters = new VisualParameters(Colors.Black, Colors.Gray, 2, .9);
            this.VisualParameters = parameters ?? VisualParameters.CreateNew(1);
        }
コード例 #2
0
        public BaseLayer()
        {
            this.LayerId = Guid.NewGuid();

            this.VisibleRange = ScaleInterval.All;

            this.VisualParameters = VisualParameters.CreateNew(1);

            this.ParentLayerId = Guid.Empty;
        }
コード例 #3
0
        /// <summary>
        /// In case of PolyBezierMode, control points must be included
        /// </summary>
        /// <param name="pointCollection"></param>
        /// <param name="extent"></param>
        /// <param name="polyBezierMode"></param>
        public SpecialLineLayer(System.Windows.Media.Geometry symbol, VisualParameters parameters, List <Point> pointCollection, bool canEdit = true, bool polyBezierMode = true)
        {
            if (!polyBezierMode)
            {
                throw new NotImplementedException();
            }

            this.VisualParameters = parameters ?? VisualParameters.CreateNew(1);

            this.ZIndex = int.MaxValue;

            Update(symbol, pointCollection, canEdit, polyBezierMode);
        }