GH_DocDiagramPainter

References
This class paints diagrammatic images of a collection of objects.

Properties

BoundingBox

#
Gets the 2D domain of the diagram in canvas coordinates.
public RectangleF BoundingBox { get; }

DrawingBox

#
Gets the 2D domain of the diagram in image coordinates.
public Rectangle DrawingBox { get; }

IgnoreSelectedStates

#
Gets or sets the Ignore Selected State flag. When set to True, selected objects are not drawn in a different colour.
public bool IgnoreSelectedStates { get; set; }

Image

#
Gets the diagram image (only available after a call to PaintDiagram().
public Bitmap Image { get; }

Size

#
Gets the width and height (in pixels) of this diagram image.
public Size Size { get; }

Zoom

#
Gets the zoom factor for this diagram.
public float Zoom { get; }

Methods

MapPoint

#
public Point MapPoint(
Point
pt
)

MapPoint

#
public PointF MapPoint(
PointF
pt
)

MapRectangle

#
public Rectangle MapRectangle(
Rectangle
rec
)

MapX

#
public float MapX()

MapX

#
public int MapX(
x
)

MapY

#
public float MapY()

MapY

#
public int MapY(
y
)

PaintDiagram

#
Paint a diagram of a document.
public bool PaintDiagram(
objs,
Objects to paint.
approx_size,
Approximate size along each side.
inflate
Padding around the objects.
)
True on success, false on failure.

PaintDiagram

#
Paint a diagram of a document.
public bool PaintDiagram(
objs,
Objects to paint.
mapWidth,
Width (in pixels) of diagram.
mapHeight,
Height (in pixels) of diagram.
inflate
Padding around the objects.
)
True on success, false on failure.

UnmapPoint

#
public Point UnmapPoint(
Point
pt
)

UnmapRectangle

#
public Rectangle UnmapRectangle(
Rectangle
rec
)

UnmapX

#
public int UnmapX(
x
)

UnmapY

#
public int UnmapY(
y
)