Beispiel #1
0
        public void TransformGeometry(IDrawableVisitor visitor)
        {
            var coordinatesOriginWorld = visitor.GetTransformedPoint(new Point(0, 0));

            if (IsHorizontal)
            {
                TransformedGeometry = new Segment(new Point(Box.MinX, coordinatesOriginWorld.Y), new Point(Box.MaxX, coordinatesOriginWorld.Y));
            }
            else
            {
                TransformedGeometry = new Segment(new Point(coordinatesOriginWorld.X, Box.MinY), new Point(coordinatesOriginWorld.X, Box.MaxY));
            }
        }
        public void TransformGeometry(IDrawableVisitor visitor)
        {
            var transformedPoint = visitor.GetTransformedPoint(this);

            TransformedGeometry = visitor.GetTransformedPoint(this);
        }
 public void TransformGeometry(IDrawableVisitor visitor)
 {
     TransformedGeometry = visitor.GetTransformedSegment(this);
 }