예제 #1
0
 internal override void Mirror(Geometry2D target, Line2D mirrorLine)
 {
     if (target is BeamGeometry)
     {
         BeamGeometry beam = (target as BeamGeometry);
         this.start = TransformUtil.Mirror(beam.start, mirrorLine);
         this.end   = TransformUtil.Mirror(beam.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);
            BeamGeometry beamGeometry = new BeamGeometry(nstart, nend, this.thickness);

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

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