GH_LegendData

Constructors

GH_LegendData

#
public GH_LegendData()

Properties

Bounds2D

#
public Rectangle Bounds2D { get; set; }
Gets or sets the 2D bounds.

Bounds3D

#
public Rectangle3d Bounds3D { get; set; }
Gets or sets the 3D bounds.

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

Colours

#
public List<Color> Colours { get; }
Gets the internal list of colours.

Names

#
public List<string> Names { get; }
Gets the internal list of names.

Type

#
public GH_LegendType Type { get; set; }
Gets or sets the legend type.

Methods

ClearCachedGeometry

#
public void ClearCachedGeometry()
You must call this function when making changes to the legend object after it was drawn at least once.

DrawViewportMeshes

#
public void DrawViewportMeshes(GH_PreviewMeshArgs args)
args (GH_PreviewMeshArgs)
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires(GH_PreviewWireArgs args)
args (GH_PreviewWireArgs)
DrawViewportWires

Render

#
public void Render(Graphics graphics)
Render this legend to a GDI Graphics surface.
graphics (Graphics)Graphics object to draw with.