Capsule
ReferencesRepresents the basic Grasshopper UI capsule object. A capsule is a slab with optional plugs and messaging bar.
Constructors
Properties
Methods
AddInputPlug
#Add an input plug at a given y-coordinate.
AddOutputPlug
#Add an output plug at a given y-coordinate.
CreateFromInner
#Create a capsule from the inner (apex) bounds.
public static Capsule CreateFromInner()
Shape
shape,
Capsule shape.
RectangleF
innerBounds
Bounds of the apex face.
CreateFromOuter
#Create a capsule from the outer bounds.
public static Capsule CreateFromOuter()
Shape
shape,
Capsule shape.
RectangleF
outerBounds
Outer bounds.
Draw
#Draw this capsule into a graphics context.
Draw
#Draw this capsule into a graphics context.
DrawEdges
#Draw the silhouette edges. This is typically the fifth and last part of the capsule drawing process, after DrawOverlay(Graphics, Skin, Shade).
DrawFaces
#Draw the apex and side faces. This is typically the second part of the capsule drawing process, after DrawGrips(Graphics, Skin).
DrawMessaging
#Draw the messaging hints, if any. This is typically the third part of the capsule drawing process, after DrawFaces(Graphics, Skin, Shade).
DrawOverlay
#Draw the overlay. This is typically the fourth part of the capsule drawing process, after DrawMessaging(Graphics, Skin).