Constructors

GH_ProxyParameterAttributes

#
public GH_ProxyParameterAttributes(GH_ProxyParameter owner)
owner (GH_ProxyParameter)

Properties

AllowMessageBalloon

public virtual bool AllowMessageBalloon { get; }
Gets a value indicating whether these attributes allow warning and error balloons to be drawn on top of them.
inherited fromGH_Attributes<T>

Bounds

public virtual RectangleF Bounds { get; set; }
Gets the rectangle that contains the active content of the attributes. Typically the Contents determine the active area for menus, tooltips etc. Attributes are not supposed to draw objects beyond the Bounds.
inherited fromGH_Attributes<T>
Bounds

DocObject

public IGH_DocumentObject DocObject { get; }
Gets the owner object of these attributes.
inherited fromGH_Attributes<T>
DocObject

GetTopLevel

public IGH_Attributes GetTopLevel { get; }
Gets the top-level attributes of the attribute stack these attributes belong to.
inherited fromGH_Attributes<T>
GetTopLevel

HasInputGrip

#
public override bool HasInputGrip { get; }

HasOutputGrip

#
public override bool HasOutputGrip { get; }

InputGrip

public virtual PointF InputGrip { get; }
Gets the input grip location for these attributes. If HasInputGrip equals False, this point is meaningless.
inherited fromGH_Attributes<T>
InputGrip

InstanceGuid

public Guid InstanceGuid { get; }
Gets the instance ID of the document object that owns these attributes.
inherited fromGH_Attributes<T>
InstanceGuid

IsTopLevel

public bool IsTopLevel { get; }
Gets whether these attributes are top_level (i.e. no Parent attributes)
inherited fromGH_Attributes<T>
IsTopLevel

OutputGrip

#
public override PointF OutputGrip { get; }

Owner

public T Owner { get; }
Gets the type-safe owner object of these attributes. This property is identical to the DocObject property.
inherited fromGH_Attributes<T>

Parent

public IGH_Attributes Parent { get; set; }
Gets or sets the parent attributes. Top level attributes do not have parents.
inherited fromGH_Attributes<T>
Parent

PathName

public virtual string PathName { get; }
Get a description of the location of these attributes within the local attribute stack.
inherited fromGH_Attributes<T>
PathName

Pivot

public virtual PointF Pivot { get; set; }
Gets or sets the pivot for these attributes. The pivot controls the general placement of the attributes. If you want to move the attributes, change the pivot location.
inherited fromGH_Attributes<T>
Pivot

Selected

public virtual bool Selected { get; set; }
Gets or sets the selected state of the top-level attributes.
inherited fromGH_Attributes<T>
Selected

TooltipEnabled

public virtual bool TooltipEnabled { get; }
Gets the tooltip enabled value. If False, no further tooltip functions will be called.
inherited fromGH_Attributes<T>
TooltipEnabled

Methods

AppendToAttributeTree

public virtual void AppendToAttributeTree(List<IGH_Attributes> attributes)
Recursively append these attributes and all child attributes to the attribute list.
inherited fromGH_Attributes<T>
attributes (List<IGH_Attributes>)List to append to.

ExpireLayout

public virtual void ExpireLayout()
Expires the entire layout of the attributes. When overridden, implementer must place a call to the base class ExpireLayout().
inherited fromGH_Attributes<T>
ExpireLayout

InvalidateCanvas

public virtual bool InvalidateCanvas(GH_Canvas canvas, GH_CanvasMouseEvent e)
If the mouse location should cause a canvas invalidation then return true. You only need to override this function if you draw objects that are dependant on cursor positions outside the bounds of the attributes.
inherited fromGH_Attributes<T>
canvas (GH_Canvas)Canvas to potentially invalidate.
e (GH_CanvasMouseEvent)Event arguments for canvas mousemove.
True if the canvas ought to be invalidated.
InvalidateCanvas

IsMenuRegion

public virtual bool IsMenuRegion(PointF point)
Determines whether a point is available for context menu popups. By default, IsMenuRegion calls IsPickRegion(PointF).
inherited fromGH_Attributes<T>
point (PointF)Point location to test.
IsMenuRegion

IsPickRegion

public virtual bool IsPickRegion(PointF point)
Determines whether a point is within the pickable region for this object. By default, any point inside the Bounds is treated as pickable.
inherited fromGH_Attributes<T>
point (PointF)Point location to test.
IsPickRegion

IsPickRegion

public virtual bool IsPickRegion(RectangleF box, GH_PickBox method)
Determines whether a rectangle is a valid pick region for this object. By default, the picking rectangle is intersected with the Bounds rectangle.
inherited fromGH_Attributes<T>
box (RectangleF)Selection box.
method (GH_PickBox)Selection method.
IsPickRegion

IsTooltipRegion

public virtual bool IsTooltipRegion(PointF point)
Determines whether a point is available for tooltip popups. By default, IsMenuRegion calls IsTooltipRegion(PointF).
inherited fromGH_Attributes<T>
point (PointF)Point location to test.
IsTooltipRegion

Layout

#
protected override void Layout()

NewInstanceGuid

public void NewInstanceGuid()
Generate a new instance GUID for the owner object.
inherited fromGH_Attributes<T>
NewInstanceGuid

NewInstanceGuid

public void NewInstanceGuid(Guid newId)
Generate a new instance GUID for the owner object. Do not use this overload unless you're > 1.95m and called David.
inherited fromGH_Attributes<T>
newId (Guid)
NewInstanceGuid

PerformLayout

public void PerformLayout()
Recompute the layout for these attributes. This function is automatically called during Drawing operations, so you typically don't have to.
inherited fromGH_Attributes<T>
PerformLayout

PrepareForRender

protected virtual void PrepareForRender(GH_Canvas canvas)
This method will always be called exactly once prior to Render(). This would be a good place to make sure all the necessary GUI data is up and running.
inherited fromGH_Attributes<T>
canvas (GH_Canvas)Canvas that is about to render these attributes.

Read

public virtual bool Read(GH_IReader reader)
inherited fromGH_Attributes<T>
reader (GH_IReader)
Read

Render

#
protected override void Render(GH_Canvas canvas, Graphics graphics, GH_CanvasChannel channel)
canvas (GH_Canvas)
graphics (Graphics)
channel (GH_CanvasChannel)

RenderIncomingWires

protected void RenderIncomingWires(GH_Painter painter, IEnumerable<IGH_Param> sources, GH_ParamWireDisplay style)
Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
inherited fromGH_Attributes<T>
painter (GH_Painter)The graphics object to paint with
sources (IEnumerable<IGH_Param>)A list of sources that will be connected with the input grip of this attribute
style (GH_ParamWireDisplay)Style for wire display.

RenderIncomingWires

protected void RenderIncomingWires(GH_Painter painter, IEnumerable<IGH_Param> sources, IEnumerable<Pen> styles)
Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
inherited fromGH_Attributes<T>
painter (GH_Painter)The graphics object to paint with
sources (IEnumerable<IGH_Param>)A list of sources that will be connected with the input grip of this attribute
styles (IEnumerable<Pen>)A collection of pen objects to use for each source. If a pen is null, the default wire style will be used instead.

RenderToCanvas

public void RenderToCanvas(GH_Canvas canvas, GH_CanvasChannel channel)
Render these attributes into a Canvas control. This function places calls to PrepareForRender() and Render(), you should override those.
inherited fromGH_Attributes<T>
canvas (GH_Canvas)Canvas to draw on.
channel (GH_CanvasChannel)Current drawing channel.
RenderToCanvas

RespondToKeyDown

public virtual GH_ObjectResponse RespondToKeyDown(GH_Canvas sender, KeyEventArgs e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (KeyEventArgs)
RespondToKeyDown

RespondToKeyUp

public virtual GH_ObjectResponse RespondToKeyUp(GH_Canvas sender, KeyEventArgs e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (KeyEventArgs)
RespondToKeyUp

RespondToMouseDoubleClick

public virtual GH_ObjectResponse RespondToMouseDoubleClick(GH_Canvas sender, GH_CanvasMouseEvent e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (GH_CanvasMouseEvent)

RespondToMouseDown

public virtual GH_ObjectResponse RespondToMouseDown(GH_Canvas sender, GH_CanvasMouseEvent e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (GH_CanvasMouseEvent)
RespondToMouseDown

RespondToMouseMove

public virtual GH_ObjectResponse RespondToMouseMove(GH_Canvas sender, GH_CanvasMouseEvent e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (GH_CanvasMouseEvent)
RespondToMouseMove

RespondToMouseUp

public virtual GH_ObjectResponse RespondToMouseUp(GH_Canvas sender, GH_CanvasMouseEvent e)
inherited fromGH_Attributes<T>
sender (GH_Canvas)
e (GH_CanvasMouseEvent)
RespondToMouseUp

SetupTooltip

public virtual void SetupTooltip(PointF point, GH_TooltipDisplayEventArgs e)
Populates the Grasshopper tooltip with all relevant data. If this function returns True, it is assumed that all possible fields have been filled out and the tooltip is ready for display.
inherited fromGH_Attributes<T>
point (PointF)The pixel coordinate on the canvas of the cursor.
e (GH_TooltipDisplayEventArgs)Tooltip event arguments.
SetupTooltip

Write

public virtual bool Write(GH_IWriter writer)
inherited fromGH_Attributes<T>
writer (GH_IWriter)
Write