示例#1
0
        internal override void Mirror(Geometry2D target, Line2D mirrorLine)
        {
            if (target is MemberGeometry)
            {
                MemberGeometry member = (target as MemberGeometry);

                this.start = TransformUtil.Mirror(member.start, mirrorLine);
                this.end   = TransformUtil.Mirror(member.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);
            MemberGeometry memberGeometry = new MemberGeometry(nstart, nend, this.thickness);

            if (isclone)
            {
            }
            else
            {
                memberGeometry.Element = this.Element;
            }

            memberGeometry.Thickness = this.thickness;
            memberGeometry.PenColor  = this.PenColor;
            memberGeometry.FillColor = this.FillColor;
            memberGeometry.Opacity   = this.Opacity;
            return(memberGeometry);
        }