Click or drag to resize

GH_SwitcherComponent Class

Base class for components having multiple evaluation units/contexts.
Inheritance Hierarchy
SystemObject
  GH_InstanceDescription
    GH_DocumentObject
      GH_ActiveObject
        GH_Component
          Karamba.GHopper.Utilities.UIWidgetsGH_SwitcherComponent
            More...

Namespace:  Karamba.GHopper.Utilities.UIWidgets
Assembly:  Karamba3D (in Karamba3D.dll) Version: 2.2.0.5 (2.2.0.5)
Syntax
public abstract class GH_SwitcherComponent : GH_Component

The GH_SwitcherComponent type exposes the following members.

Constructors
  NameDescription
Protected methodGH_SwitcherComponent
Initializes a new instance of the GH_SwitcherComponent class. Create a new switcher component.
Top
Properties
  NameDescription
Public propertyActiveUnit
Get active evaluation unit.
Public propertyAttributes (Inherited from GH_DocumentObject.)
Public propertyCategory (Inherited from GH_InstanceDescription.)
Public propertyClippingBox (Inherited from GH_Component.)
Public propertyComponentGuid (Inherited from GH_DocumentObject.)
Protected propertyDefaultEvaluationUnit
Get the default evaluation unit. Default in null. If the unit does not exist and the unit cannot be unitless, the first registered unit will be used instead.
Public propertyDescription (Inherited from GH_InstanceDescription.)
Public propertyEvalUnits
Get evaluation units.
Public propertyExposure (Inherited from GH_DocumentObject.)
Public propertyHasCategory (Inherited from GH_InstanceDescription.)
Public propertyHasSubCategory (Inherited from GH_InstanceDescription.)
Protected propertyHelpDescription (Inherited from GH_Component.)
Public propertyHidden (Inherited from GH_Component.)
Protected propertyIcon (Inherited from GH_DocumentObject.)
Public propertyIcon_24x24 (Inherited from GH_DocumentObject.)
Public propertyIcon_24x24_Locked (Inherited from GH_DocumentObject.)
Public propertyIconCapableUI (Inherited from GH_ActiveObject.)
Public propertyIconDisplayMode (Inherited from GH_DocumentObject.)
Public propertyInConstructor (Inherited from GH_Component.)
Public propertyInstanceDescription (Inherited from GH_Component.)
Public propertyInstanceGuid (Inherited from GH_InstanceDescription.)
Public propertyIsBakeCapable (Inherited from GH_Component.)
Public propertyIsDataProvider (Inherited from GH_Component.)
Public propertyIsPreviewCapable (Inherited from GH_Component.)
Public propertyIsValidPrincipalParameterIndex (Inherited from GH_Component.)
Public propertyKeywords (Inherited from GH_InstanceDescription.)
Public propertyLocked (Inherited from GH_Component.)
Public propertyMessage (Inherited from GH_Component.)
Public propertyMutableNickName (Inherited from GH_ActiveObject.)
Public propertyName (Inherited from GH_InstanceDescription.)
Public propertyNickName (Inherited from GH_InstanceDescription.)
Public propertyObsolete (Inherited from GH_DocumentObject.)
Public propertyParams (Inherited from GH_Component.)
Public propertyPhase (Inherited from GH_ActiveObject.)
Public propertyPrincipalParameterIndex (Inherited from GH_Component.)
Public propertyProcessorTime (Inherited from GH_Component.)
Public propertyRunCount (Inherited from GH_Component.)
Public propertyRuntimeMessageLevel (Inherited from GH_Component.)
Public propertyStaticData
Get cached component data.
Public propertySubCategory (Inherited from GH_InstanceDescription.)
Public propertyUnitlessExistence
Determines whether the switcher can exists without an active evaluation unit. Default is false(exactly one unit must be active at any given time).
Public propertyUnitMenuHeader
Get evaluation unit menu selection header. If this field is null or the empty string, a default header tag will be created.
Public propertyUnitMenuName
Get evaluation unit selection-menu name.
Top
Methods
  NameDescription
Public methodAddedToDocument (Inherited from GH_Component.)
Public methodAddRuntimeMessage (Inherited from GH_ActiveObject.)
Protected methodAfterSolveInstance (Inherited from GH_Component.)
Protected methodAppendAdditionalComponentMenuItems (Inherited from GH_Component.)
Public methodAppendAdditionalMenuItems
Add evaluation units to context menu.
(Overrides GH_Component.AppendAdditionalMenuItems(ToolStripDropDown).)
Public methodAppendMenuItems (Inherited from GH_ActiveObject.)
Protected methodAssignInitCodeToInputParameter (Inherited from GH_Component.)
Public methodBakeGeometry(RhinoDoc, ListGuid) (Inherited from GH_Component.)
Public methodBakeGeometry(RhinoDoc, ObjectAttributes, ListGuid) (Inherited from GH_Component.)
Protected methodBeforeSolveInstance
executed before solve instance.
(Overrides GH_Component.BeforeSolveInstance.)
Protected methodBeforeSolveInstance(EvaluationUnit)
executed before solve instance on the active unit.
Public methodClearData (Inherited from GH_Component.)
Public methodClearRuntimeMessages (Inherited from GH_Component.)
Public methodClearUnit
Clear active evaluation unit. If the component cannot exist without an active evaluation unit, this method does nothing.
Public methodCollectData (Inherited from GH_Component.)
Public methodComputeData (Inherited from GH_Component.)
Public methodCopyFrom (Inherited from GH_InstanceDescription.)
Public methodCreateAttributes
Create switcher attributes.
(Overrides GH_Component.CreateAttributes.)
Public methodDependsOn (Inherited from GH_Component.)
Protected methodDestroyIconCache (Inherited from GH_DocumentObject.)
Public methodDocumentContextChanged (Inherited from GH_Component.)
Public methodDrawViewportMeshes (Inherited from GH_Component.)
Public methodDrawViewportWires(IGH_PreviewArgs)
DrawViewportWires override. Invoke's an extended DrawViewportWires method that contains the active evaluation unit.
(Overrides GH_Component.DrawViewportWires(IGH_PreviewArgs).)
Protected methodDrawViewportWires(IGH_PreviewArgs, EvaluationUnit)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExpireDownStreamObjects (Inherited from GH_Component.)
Public methodExpirePreview (Inherited from GH_DocumentObject.)
Public methodExpireSolution (Inherited from GH_ActiveObject.)
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 methodGenerateDefaultHTML (Inherited from GH_Component.)
Protected methodGenerateParameterHelp (Inherited from GH_Component.)
Protected methodGenerateParameterHelp(IGH_Param) (Inherited from GH_Component.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnit
Get evaluation unit from name.
Protected methodGetValue(String, Boolean) (Inherited from GH_DocumentObject.)
Protected methodGetValue(String, Int32) (Inherited from GH_DocumentObject.)
Protected methodGetValue(String, Double) (Inherited from GH_DocumentObject.)
Protected methodGetValue(String, String) (Inherited from GH_DocumentObject.)
Protected methodGetValue(String, Color) (Inherited from GH_DocumentObject.)
Protected methodHtmlHelp_Source (Inherited from GH_Component.)
Public methodIsolateObject (Inherited from GH_Component.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMenu_AppendBakeItem (Inherited from GH_ActiveObject.)
Protected methodMenu_AppendEnableItem (Inherited from GH_ActiveObject.)
Protected methodMenu_AppendObjectHelp (Inherited from GH_DocumentObject.)
Protected methodMenu_AppendObjectName (Inherited from GH_DocumentObject.)
Protected methodMenu_AppendObjectNameEx (Inherited from GH_DocumentObject.)
Protected methodMenu_AppendPreviewItem (Inherited from GH_ActiveObject.)
Protected methodMenu_AppendPublish (Inherited from GH_DocumentObject.)
Protected methodMenu_AppendRuntimeMessages (Inherited from GH_ActiveObject.)
Public methodMovedBetweenDocuments (Inherited from GH_Component.)
Public methodNewInstanceGuid (Inherited from GH_InstanceDescription.)
Public methodNewInstanceGuid(Guid) (Inherited from GH_InstanceDescription.)
Public methodOnAttributesChanged (Inherited from GH_DocumentObject.)
Protected methodOnComponentLoaded
OnComponentLoaded is called after Component has been loaded f.eg: when component got deserialized. Override in derived class to initialze data wich is depending on widgets.
Protected methodOnComponentReset
OnComponentReset is called when the components output(s) invalidate. This happens, when a "nonoptional" input pulg disconnects or the components values get cleared.
Public methodOnDisplayExpired (Inherited from GH_DocumentObject.)
Public methodOnObjectChanged(GH_ObjectEventType) (Inherited from GH_DocumentObject.)
Public methodOnObjectChanged(String) (Inherited from GH_DocumentObject.)
Public methodOnObjectChanged(GH_ObjectChangedEventArgs) (Inherited from GH_DocumentObject.)
Public methodOnObjectChanged(GH_ObjectEventType, Object) (Inherited from GH_DocumentObject.)
Public methodOnObjectChanged(String, Object) (Inherited from GH_DocumentObject.)
Public methodOnPingDocument (Inherited from GH_DocumentObject.)
Public methodOnPreviewExpired (Inherited from GH_DocumentObject.)
Public methodOnSolutionExpired (Inherited from GH_DocumentObject.)
Protected methodPostConstructor (Overrides GH_Component.PostConstructor.)
Public methodRead
Read switcher component data.
(Overrides GH_Component.Read(GH_IReader).)
Public methodReadFull (Inherited from GH_InstanceDescription.)
Public methodRecordUndoEvent(String) (Inherited from GH_DocumentObject.)
Public methodRecordUndoEvent(GH_UndoRecord) (Inherited from GH_DocumentObject.)
Public methodRecordUndoEvent(String, IGH_UndoAction) (Inherited from GH_DocumentObject.)
Protected methodRegisterEvaluationUnits
Register evaluation units. Override this method to register user defined units.
Protected methodRegisterInputParams (Inherited from GH_Component.)
Protected methodRegisterOutputParams (Inherited from GH_Component.)
Public methodRegisterRemoteIDs (Inherited from GH_Component.)
Public methodRemovedFromDocument (Inherited from GH_Component.)
Public methodRuntimeMessages (Inherited from GH_Component.)
Public methodSDKCompliancy (Inherited from GH_ActiveObject.)
Public methodSetIconOverride (Inherited from GH_DocumentObject.)
Protected methodSetup
Base method for initalizing menus and other attribute depending data. Override in derived class to initialze menus.
Protected methodSetValue(String, Boolean) (Inherited from GH_DocumentObject.)
Protected methodSetValue(String, Int32) (Inherited from GH_DocumentObject.)
Protected methodSetValue(String, Double) (Inherited from GH_DocumentObject.)
Protected methodSetValue(String, String) (Inherited from GH_DocumentObject.)
Protected methodSetValue(String, Color) (Inherited from GH_DocumentObject.)
Protected methodSolveInstance(IGH_DataAccess)
SolveInstance override. Invoke's an extended SolveInstance method that contains the active evaluation unit.
(Overrides GH_Component.SolveInstance(IGH_DataAccess).)
Protected methodSolveInstance(IGH_DataAccess, EvaluationUnit)
Override this method to solve instance of compontent with given active unit.
Public methodSwitchUnit(String, Boolean, Boolean)
Switch to unit with given name. If no unit with given name exists, nothing happens (old state remains).
Protected methodSwitchUnit(EvaluationUnit, Boolean, Boolean)
Switch to supplied unit.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTriggerAutoSave (Inherited from GH_DocumentObject.)
Public methodTriggerAutoSave(GH_AutoSaveTrigger) (Inherited from GH_DocumentObject.)
Public methodTriggerAutoSave(Guid) (Inherited from GH_DocumentObject.)
Public methodTriggerAutoSave(GH_AutoSaveTrigger, Guid) (Inherited from GH_DocumentObject.)
Protected methodValuesChanged (Inherited from GH_DocumentObject.)
Public methodWrite
Write switcher.
(Overrides GH_Component.Write(GH_IWriter).)
Public methodWriteFull (Inherited from GH_InstanceDescription.)
Top
Events
  NameDescription
Public eventAttributesChanged (Inherited from GH_DocumentObject.)
Public eventDisplayExpired (Inherited from GH_DocumentObject.)
Public eventObjectChanged (Inherited from GH_DocumentObject.)
Public eventPingDocument (Inherited from GH_DocumentObject.)
Public eventPreviewExpired (Inherited from GH_DocumentObject.)
Public eventSolutionExpired (Inherited from GH_DocumentObject.)
Top
Fields
  NameDescription
Protected fieldactiveUnit
Currently active unit. The semantics of this field depends on the UnitlessExistence field. if UnitlessExistence is true, this field can be null. Else this field must hold a reference to a valid evaluation unit.
Protected fieldevalUnits
Evaluation unit manager.
Protected fieldm_attributes (Inherited from GH_DocumentObject.)
Protected fieldstaticData
Runtime component data.
Top
See Also
Inheritance Hierarchy
SystemObject
  GH_InstanceDescription
    GH_DocumentObject
      GH_ActiveObject
        GH_Component
          Karamba.GHopper.Utilities.UIWidgetsGH_SwitcherComponent
            Karamba.GHopper.AlgorithmsComponent_BESOBeam
            Karamba.GHopper.AlgorithmsComponent_BESOShell
            Karamba.GHopper.AlgorithmsComponent_NonlinAnalyze
            Karamba.GHopper.AlgorithmsComponent_OptiCroSecEC3
            Karamba.GHopper.AlgorithmsComponent_OptiReinf
            Karamba.GHopper.Algorithms.DeprecatedComponent_BESOBeam_4_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_BESOBeam_5_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_NonlinAnalyze_0_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_OptiCroSecEC3_5_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_OptiCroSecEC3_6_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_OptiCroSecEC3_7_OBSOLETE
            Karamba.GHopper.Algorithms.DeprecatedComponent_OptiReinf_0_OBSOLETE
            Karamba.GHopper.CrossSectionsComponent_CroSec
            Karamba.GHopper.CrossSectionsComponent_CroSec_Disassemble
            Karamba.GHopper.CrossSectionsComponent_CroSec_Modify
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_0_OBSOLETE
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_1_OBSOLETE
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_2_OBSOLETE
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_Disassemble_1_OBSOLETE
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_Modify_0_OBSOLETE
            Karamba.GHopper.CrossSections.DeprecatedComponent_CroSec_Modify_1_OBSOLETE
            Karamba.GHopper.ElementsComponent_DisassembleBeam
            Karamba.GHopper.ElementsComponent_LineToBeam
            Karamba.GHopper.ElementsComponent_LineToBeam_GUI_2_OBSOLETE
            Karamba.GHopper.ElementsComponent_MeshToShell
            Karamba.GHopper.ElementsComponent_MeshToShell_2_OBSOLETE
            Karamba.GHopper.ElementsComponent_ModifyElem
            Karamba.GHopper.ElementsComponent_OrientateElem
            Karamba.GHopper.Elements.DeprecatedComponent_DisassembleBeam_0_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_DisassembleBeam_3_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_LineToBeam_GUI_1_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_ModifyElem_3_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_ModifyElem_4_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_ModifyElem_5_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_ModifyElem_6_OBSOLETE
            Karamba.GHopper.Elements.DeprecatedComponent_OrientateElem_2_OBSOLETE
            Karamba.GHopper.Loads.BeamComponent_BeamLoads
            Karamba.GHopper.Loads.Beam.DeprecatedComponent_BeamLoads_0_OBSOLETE
            Karamba.GHopper.LoadsComponent_Load
            Karamba.GHopper.LoadsComponent_Load_6_OBSOLETE
            Karamba.GHopper.Loads.DeprecatedComponent_Load_1_OBSOLETE
            Karamba.GHopper.Loads.DeprecatedComponent_Load_2_OBSOLETE
            Karamba.GHopper.Loads.DeprecatedComponent_Load_3_OBSOLETE
            Karamba.GHopper.Loads.DeprecatedComponent_Load_4_OBSOLETE
            Karamba.GHopper.Loads.DeprecatedComponent_Load_5_OBSOLETE
            Karamba.GHopper.MaterialsComponent_MaterialProps
            Karamba.GHopper.Materials.DeprecatedComponent_MaterialProps_6_OBSOLETE
            Karamba.GHopper.Materials.DeprecatedComponent_MaterialProps_7_OBSOLETE
            Karamba.GHopper.ResultsComponent_ShellForces
            Karamba.GHopper.ResultsComponent_ShellLineResults
            Karamba.GHopper.ResultsComponent_ShellSection
            Karamba.GHopper.ResultsComponent_ShellVectorResults
            Karamba.GHopper.ResultsComponent_Utilization
            Karamba.GHopper.ResultsComponent_Utilization_2_OBSOLETE
            Karamba.GHopper.Results.DeprecatedComponent_ElementUtilization_GUI_1_OBSOLETE
            Karamba.GHopper.Results.DeprecatedComponent_ShellLineResults_GUI__2_OBSOLETE
            Karamba.GHopper.Results.DeprecatedComponent_ShellLineResults_GUI_1_OBSOLETE
            Karamba.GHopper.Results.DeprecatedComponent_ShellLineResults_GUI_3_OBSOLETE
            Karamba.GHopper.Results.DeprecatedComponent_ShellVectorResults_1_OBSOLETE
            Karamba.GHopper.Utilities.MappingsComponent_Stitch