Skip to content

GH_CapsuleRenderEngine

Public Class

Provides basic Render methods for capsule display. You typically don’t need this class, just use the Render() overloads on GH_Capsule directly.

Inheritance Hierarchy

System.Object
Grasshopper.GUI.Canvas.GH_CapsuleRenderEngine

Namespace: Grasshopper.GUI.Canvas

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_CapsuleRenderEngine

The GH_CapsuleRenderEngine type exposes the following members.

Methods

Name

Description


Public Method
Static Member

Static (Shared in VB) method for creating Grasshopper Capsule highlight fills.


Public Method
Static Member

Static (Shared in VB) method for creating Grasshopper Capsule highlight fills.


Public Method
Static Member

Static (Shared in VB) method for creating Grasshopper Capsule highlight fills.


Public Method
Static Member

Static (Shared in VB) method for creating Grasshopper Capsule highlight fills.


Public Method
Static Member

Static (Shared in VB) method for creating rectangles with rounded corners.


Public Method
Static Member

Static (Shared in VB) method for creating rectangles with rounded corners.


Public Method
Static Member

Static (Shared in VB) method for creating rectangles with rounded corners.


Public Method
Static Member

Static (Shared in VB) method for creating rectangles with rounded corners.


Public Method
Static Member

Static (Shared in VB) method for creating rectangles with rounded corners.


Public Method
Static Member

Static (Shared in VB) method for solving which palette is the default given a specific object’s properties. Default palettes are either GH_Palette.Normal, GH_Palette.Warning or GH_Palette.Error depending on the objects’ runtime message level.


Public Method
Static Member

Static (Shared in VB) method for solving which palette style is implied by the properties.


Public Method
Static Member

Static (Shared in VB) method for solving which palette style is implied by the properties.


Public Method

Render a standard transparancy background hatch. This is only needed when the capsule background colour is not fully opaque. This is usually the second stage in a capsule rendering, right after the Grips are drawn.


Public Method

Render a default capsule background fill. This is usually the third stage in a capsule rendering.


Public Method

Render a custom capsule background fill. This is usually the third stage in a capsule rendering.


Public Method

Render a collection of boundary dots along the top edge of the capsule.


Public Method

Render all the grips associates with the capsule. Grips are not drawn if the zoom level is less than 50%. This is usually the first stage in a Capsule rendering.


Public Method

Render all the grips associates with the capsule as semi-circles. This is needed if the capsule background is not fully opaque. Grips are not drawn if the zoom level is less than 50%. This is usually the first stage in a Capsule rendering.


Public Method

Render a highlight bar. This is highly zoom-dependant. Highlight rendering is usually the fourth stage in a Capsule Rendering, after the background but prior to the edges.


Public Method

Render an image icon centered into the box. If the content box has been defined the icon will be centered there, otherwise the outline box will be used.


Public Method

Render an image icon centered into the box. If the content box has been defined the icon will be centered there, otherwise the outline box will be used.


Public Method
Static Member

Static (Shared in VB) method to render a default input grip.


Public Method

Render a text message underneath the capsule.


Public Method

Render default capsule outlines. If the zoom factor is less than 50% the inner outline is not drawn. This is usually the fifth stage in a Capsule rendering.


Public Method
Static Member

Static (Shared in VB) method to render a default output grip.


Public Method

Render the capsule text. This is usually the sixth and final stage in a capsule rendering.