Пример #1
0
        internal override void Mirror(Geometry2D target, Line2D mirrorLine)
        {
            if (target is SteelColumnGeometry)
            {
                SteelColumnGeometry steelColumn = (target as SteelColumnGeometry);

                this.start = TransformUtil.Mirror(steelColumn.start, mirrorLine);
                this.end   = TransformUtil.Mirror(steelColumn.end, mirrorLine);
            }
        }
Пример #2
0
        /// <summary>
        /// 当前线的拷贝
        /// </summary>
        /// <param name="v"></param>
        public override Geometry2D Copy(bool isclone)
        {
            var nstart = Vector2D.Create(this.start.X, this.start.Y);
            var nend   = Vector2D.Create(this.end.X, this.end.Y);
            SteelColumnGeometry steelColumnGeometry = new SteelColumnGeometry(nstart, nend);

            if (isclone)
            {
            }
            else
            {
                steelColumnGeometry.Element = this.Element;
            }
            steelColumnGeometry.PenColor  = this.PenColor;
            steelColumnGeometry.FillColor = this.FillColor;
            return(steelColumnGeometry);
        }