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); }
private void PaintShapes(Graphics g, Rectangle rect) { for (int i = 0; i < shapes.Count; i++) { shapePainter.Paint(g, rect, shapes[i]); } }