GH_Painter

References
public class GH_Painter
This class performs most of the drawing operations required for Grasshopper Canvas controls.

Constructors

GH_Painter

#
Constructor.
public GH_Painter(
owner
Canvas that owns this painter object.
)

Methods

ConnectionPath

#
public static GraphicsPath ConnectionPath(
PointF
pointA,
PointF
pointB,
directionA,
directionB
)

ConnectionPathBezier

#
public static BezierF ConnectionPathBezier(
PointF
source,
PointF
target
)

ConnectionVisible

#
Test whether a wire ought to be drawn at all.
public bool ConnectionVisible(
PointF
a,
Start point of wire.
PointF
b
End point of wire.
)
True if the wire is visible and ought to be drawn.

DetermineWireType

#
Utility method for determining wire display types.
public static GH_WireType DetermineWireType(
target
Pointer to transfer data.
)

DrawBackground

#
public void DrawBackground(
viewport
)

DrawConnection

#
public void DrawConnection(
PointF
pointA,
PointF
pointB,
directionA,
directionB,
selectedA,
selectedB,
type
)

DrawMiddleGround

#
public void DrawMiddleGround()

DrawNoDocumentMessage

#
public void DrawNoDocumentMessage()

DrawNULLBuffer

#
public void DrawNULLBuffer()

DrawPivots

#
public void DrawPivots()

DrawStateFlags

#
public void DrawStateFlags()

GenerateWirePen_Fill

#
public Brush GenerateWirePen_Fill(
PointF
a,
PointF
b,
asel,
bsel,
empty
)