Click or drag to resize

GH_SwitcherComponentAttributes Methods

The GH_SwitcherComponentAttributes type exposes the following members.

Methods
  NameDescription
Public methodAddMenu
Add menu to attribue.
Public methodAppendToAttributeTree (Inherited from GH_ComponentAttributes.)
Protected methodCreateUnitDropDown
Create evaluation unit drop down menu. The Menu will be created iff the the number of evaluation units is > 1 or |units| == 1 AND the component can be unitless. Otherwise, the menu has no functionality.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExpireLayout (Inherited from GH_ComponentAttributes.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFixLayout
Public methodGetActiveTooltip
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeUnitParameters
Initialize switcher's parameters. This method creates new linked_parameter_attributes for all parameters which do not already have one.
Public methodInvalidateCanvas
The canvas must be invalidated when the mouse is near enough and this component has variable parameters.
(Inherited from GH_ComponentAttributes.)
Public methodIsMenuRegion
Determines whether a point is available for context menu popups. By default, IsMenuRegion calls IsPickRegion(PointF).
(Inherited from GH_AttributesIGH_Component.)
Public methodIsPickRegion(PointF)
Determines whether a point is within the pickable region for this object. By default, any point inside the Bounds is treated as pickable.
(Inherited from GH_AttributesIGH_Component.)
Public methodIsPickRegion(RectangleF, GH_PickBox)
Determines whether a rectangle is a valid pick region for this object. By default, the picking rectangle is intersected with the Bounds rectangle.
(Inherited from GH_AttributesIGH_Component.)
Public methodIsTooltipRegion (Overrides GH_Attributes.IsTooltipRegion(PointF).)
Protected methodLayout (Overrides GH_ComponentAttributes.Layout.)
Protected methodLayoutBaseComponent
Layout base component.
Public methodLayoutBounds2
Public methodLayoutComponentBox2
Public methodLayoutExtBounds
Public methodLayoutInputParams2
Layout input parameters.
Protected methodLayoutMenu
Public methodLayoutMenuInputs
Public methodLayoutMenuOutputs
Public methodLayoutOutputParams2
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNewInstanceGuid
Generate a new instance GUID for the owner object.
(Inherited from GH_AttributesIGH_Component.)
Public methodNewInstanceGuid(Guid)
Generate a new instance GUID for the owner object. Do not use this overload unless you're > 1.95m and called David.
(Inherited from GH_AttributesIGH_Component.)
Public methodOnSwitchUnit
Is called when the owner component's evaluation context has changed.
Public methodPerformLayout
Recompute the layout for these attributes. This function is automatically called during Drawing operations, so you typically don't have to.
(Inherited from GH_AttributesIGH_Component.)
Protected methodPrepareForRender
Prepare attribute for rendering.
(Overrides GH_Attributes.PrepareForRender(GH_Canvas).)
Public methodRead
Read attributes.
(Overrides GH_Attributes.Read(GH_IReader).)
Protected methodRender
Render widget flag.
(Overrides GH_ComponentAttributes.Render(GH_Canvas, Graphics, GH_CanvasChannel).)
Protected methodRenderComponentCapsule(GH_Canvas, Graphics)
Utility function, draws the complete component capsule including all parameter data.
(Inherited from GH_ComponentAttributes.)
Protected methodRenderComponentCapsule(GH_Canvas, Graphics, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Utility function, draws the component capsule including all specified elements.
(Inherited from GH_ComponentAttributes.)
Protected methodRenderComponentCapsule2(GH_Canvas, Graphics)
Protected methodRenderComponentCapsule2(GH_Canvas, Graphics, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Public methodStatic memberRenderComponentParameters2
Protected methodRenderIncomingWires(GH_Painter, IEnumerableIGH_Param, GH_ParamWireDisplay)
Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
(Inherited from GH_AttributesIGH_Component.)
Protected methodRenderIncomingWires(GH_Painter, IEnumerableIGH_Param, IEnumerablePen)
Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
(Inherited from GH_AttributesIGH_Component.)
Public methodRenderToCanvas
Render these attributes into a Canvas control. This function places calls to PrepareForRender() and Render(), you should override those.
(Inherited from GH_AttributesIGH_Component.)
Protected methodRenderVariableParameterUI (Inherited from GH_ComponentAttributes.)
Public methodRespondToKeyDown (Overrides GH_Attributes.RespondToKeyDown(GH_Canvas, KeyEventArgs).)
Public methodRespondToKeyUp (Inherited from GH_AttributesIGH_Component.)
Public methodRespondToMouseDoubleClick (Overrides GH_Attributes.RespondToMouseDoubleClick(GH_Canvas, GH_CanvasMouseEvent).)
Public methodRespondToMouseDown (Overrides GH_ComponentAttributes.RespondToMouseDown(GH_Canvas, GH_CanvasMouseEvent).)
Public methodRespondToMouseMove (Overrides GH_Attributes.RespondToMouseMove(GH_Canvas, GH_CanvasMouseEvent).)
Public methodRespondToMouseUp (Overrides GH_Attributes.RespondToMouseUp(GH_Canvas, GH_CanvasMouseEvent).)
Public methodSetupTooltip (Overrides GH_ComponentAttributes.SetupTooltip(PointF, GH_TooltipDisplayEventArgs).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Write attributes.
(Overrides GH_Attributes.Write(GH_IWriter).)
Top
See Also