Exemple #1
0
        internal override void Mirror(Geometry2D target, Line2D mirrorLine)
        {
            if (target is SteelBeamGeometry)
            {
                SteelBeamGeometry steelBeam = (target as SteelBeamGeometry);

                this.start = TransformUtil.Mirror(steelBeam.start, mirrorLine);
                this.end   = TransformUtil.Mirror(steelBeam.end, mirrorLine);
            }
        }
Exemple #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);
            SteelBeamGeometry steelBeamGeometry = new SteelBeamGeometry(nstart, nend, this.thickness);

            if (isclone)
            {
            }
            else
            {
                steelBeamGeometry.Element = this.Element;
            }
            steelBeamGeometry.IsActioning = false;
            steelBeamGeometry.Thickness   = this.thickness;
            steelBeamGeometry.PenColor    = this.PenColor;
            steelBeamGeometry.FillColor   = this.FillColor;
            steelBeamGeometry.Opacity     = this.Opacity;
            return(steelBeamGeometry);
        }