コード例 #1
0
        public void Paint(IActor actor, IWorldCoordinate coord, string text)
        {
            if (!Enabled)
            {
                return;
            }
            if (Brush == null)
            {
                return;
            }
            if (Radius <= 0)
            {
                return;
            }
            if (ShapePainter == null)
            {
                return;
            }

            var radius = RadiusTransformator != null?RadiusTransformator.TransformRadius(Radius) : Radius;

            var rotation = RotationTransformator != null?RotationTransformator.TransformRotation(Rotation) : Rotation;

            ShapePainter.Paint(coord.X, coord.Y, coord.Z, radius, rotation, Brush, ShadowBrush);
        }
コード例 #2
0
 private void PaintShapes(Graphics g, Rectangle rect)
 {
     for (int i = 0; i < shapes.Count; i++)
     {
         shapePainter.Paint(g, rect, shapes[i]);
     }
 }