Attributes for the Cluster Object.

Constructors

GH_ClusterAttributes

#
public GH_ClusterAttributes(GH_Cluster owner)
owner (GH_Cluster)

Fields

m_innerBounds

protected RectangleF m_innerBounds
Represents the Rectangle that contains the component black box.
inherited fromGH_ComponentAttributes

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

ContentBox

public RectangleF ContentBox { get; }
Gets the bounds of the component area of the attributes.
inherited fromGH_ComponentAttributes

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; }
inherited fromGH_ComponentAttributes

HasOutputGrip

public override bool HasOutputGrip { get; }
inherited fromGH_ComponentAttributes

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 virtual PointF OutputGrip { get; }
Gets the output grip location for these attributes. If HasOutputGrip equals False, this point is meaningless.
inherited fromGH_Attributes<T>
OutputGrip

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 override string PathName { get; }
inherited fromGH_ComponentAttributes

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 override void AppendToAttributeTree(List<IGH_Attributes> attributes)
inherited fromGH_ComponentAttributes

ExpireLayout

public override void ExpireLayout()
inherited fromGH_ComponentAttributes

InvalidateCanvas

public override bool InvalidateCanvas(GH_Canvas canvas, GH_CanvasMouseEvent e)
The canvas must be invalidated when the mouse is near enough and this component has variable parameters.
inherited fromGH_ComponentAttributes

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 override bool IsPickRegion(PointF point)
inherited fromGH_ComponentAttributes
point (PointF)

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()
inherited fromGH_ComponentAttributes

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)

RenderComponentCapsule

protected void RenderComponentCapsule(GH_Canvas canvas, Graphics graphics, bool drawComponentBaseBox, bool drawComponentNameBox, bool drawJaggedEdges, bool drawParameterGrips, bool drawParameterNames, bool drawZuiElements)
Utility function, draws the component capsule including all specified elements.
inherited fromGH_ComponentAttributes
canvas (GH_Canvas)Canvas to draw into.
graphics (Graphics)Graphics object to draw with.
drawComponentBaseBox (bool)If true, will draw the component background box.
drawComponentNameBox (bool)If true, will draw component nickname/icon element.
drawJaggedEdges (bool)If true, parameterless sides will have jagged edges drawn on them.
drawParameterGrips (bool)If true, will draw parameter grips.
drawParameterNames (bool)If true, will draw parameter nicknames.
drawZuiElements (bool)If true, will draw ZUI variable parameter interface.

RenderComponentCapsule

protected void RenderComponentCapsule(GH_Canvas canvas, Graphics graphics)
Utility function, draws the complete component capsule including all parameter data.
inherited fromGH_ComponentAttributes
canvas (GH_Canvas)Canvas to draw into.
graphics (Graphics)Graphics object to draw with.

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

RenderVariableParameterUI

protected void RenderVariableParameterUI(GH_Canvas canvas, Graphics graphics)
inherited fromGH_ComponentAttributes
canvas (GH_Canvas)
graphics (Graphics)

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 override GH_ObjectResponse RespondToMouseDoubleClick(GH_Canvas sender, GH_CanvasMouseEvent e)

RespondToMouseDown

public override GH_ObjectResponse RespondToMouseDown(GH_Canvas sender, GH_CanvasMouseEvent e)
inherited fromGH_ComponentAttributes

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 override void SetupTooltip(PointF point, GH_TooltipDisplayEventArgs e)

Write

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