Click or drag to resize

GH_SwitcherComponentAttributes Class

Switcher component grasshopper attributes.
Inheritance Hierarchy
SystemObject
  GH_AttributesIGH_Component
    GH_ComponentAttributes
      Karamba.GHopper.Utilities.UIWidgetsGH_SwitcherComponentAttributes

Namespace:  Karamba.GHopper.Utilities.UIWidgets
Assembly:  Karamba3D (in Karamba3D.dll) Version: 2.2.0.5 (2.2.0.5)
Syntax
public class GH_SwitcherComponentAttributes : GH_ComponentAttributes

The GH_SwitcherComponentAttributes type exposes the following members.

Constructors
  NameDescription
Public methodGH_SwitcherComponentAttributes
Initializes a new instance of the GH_SwitcherComponentAttributes class. Create a new switcher attribute.
Top
Properties
  NameDescription
Public propertyAllowMessageBalloon (Inherited from GH_AttributesIGH_Component.)
Public propertyBounds (Inherited from GH_AttributesIGH_Component.)
Public propertyContentBox (Inherited from GH_ComponentAttributes.)
Public propertyDocObject (Inherited from GH_AttributesIGH_Component.)
Public propertyGetTopLevel (Inherited from GH_AttributesIGH_Component.)
Public propertyHasInputGrip (Inherited from GH_ComponentAttributes.)
Public propertyHasOutputGrip (Inherited from GH_ComponentAttributes.)
Public propertyInputGrip (Inherited from GH_AttributesIGH_Component.)
Public propertyInstanceGuid (Inherited from GH_AttributesIGH_Component.)
Public propertyIsTopLevel (Inherited from GH_AttributesIGH_Component.)
Public propertyMinWidth
Minimum attribute width.
Public propertyOutputGrip (Inherited from GH_AttributesIGH_Component.)
Public propertyOwner (Inherited from GH_AttributesIGH_Component.)
Public propertyParent (Inherited from GH_AttributesIGH_Component.)
Public propertyPathName (Inherited from GH_ComponentAttributes.)
Public propertyPivot (Inherited from GH_AttributesIGH_Component.)
Public propertySelected (Inherited from GH_AttributesIGH_Component.)
Public propertyTooltipEnabled (Inherited from GH_AttributesIGH_Component.)
Top
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 (Inherited from GH_ComponentAttributes.)
Public methodIsMenuRegion (Inherited from GH_AttributesIGH_Component.)
Public methodIsPickRegion(PointF) (Inherited from GH_ComponentAttributes.)
Public methodIsPickRegion(RectangleF, GH_PickBox) (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 (Inherited from GH_AttributesIGH_Component.)
Public methodNewInstanceGuid(Guid) (Inherited from GH_AttributesIGH_Component.)
Public methodOnSwitchUnit
Is called when the owner component's evaluation context has changed.
Public methodPerformLayout (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 (Overrides GH_ComponentAttributes.Render(GH_Canvas, Graphics, GH_CanvasChannel).)
Protected methodRenderComponentCapsule(GH_Canvas, Graphics) (Inherited from GH_ComponentAttributes.)
Protected methodRenderComponentCapsule(GH_Canvas, Graphics, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) (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) (Inherited from GH_AttributesIGH_Component.)
Protected methodRenderIncomingWires(GH_Painter, IEnumerableIGH_Param, IEnumerablePen) (Inherited from GH_AttributesIGH_Component.)
Public methodRenderToCanvas (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
Fields
  NameDescription
Protected fieldcollection
Default menu collection. Will be shared by all evaluation units.
Protected fieldm_innerBounds (Inherited from GH_ComponentAttributes.)
Protected fieldunitMenuCollection
Unit dropdown menu.
Top
See Also