Click or drag to resize

Component_MaterialProps Class

GH-component that sets the characteristic parameters of a material.
GH-component that modifies the properties of elements on the fly or creates an element modifier.
Inheritance Hierarchy
SystemObject
  GH_InstanceDescription
    GH_DocumentObject
      GH_ActiveObject
        GH_Component
          Karamba.GHopper.Utilities.UIWidgetsGH_SwitcherComponent
            Karamba.GHopper.MaterialsComponent_MaterialProps

Namespace:  Karamba.GHopper.Materials
Assembly:  Karamba3D (in Karamba3D.dll) Version: 2.2.0.5 (2.2.0.5)
Syntax
public class Component_MaterialProps : GH_SwitcherComponent

The Component_MaterialProps type exposes the following members.

Constructors
  NameDescription
Public methodComponent_MaterialProps
Initializes a new instance of the Component_MaterialProps class
Top
Properties
  NameDescription
Public propertyActiveUnit
Get active evaluation unit.
(Inherited from GH_SwitcherComponent.)
Public propertyAttributes (Inherited from GH_DocumentObject.)
Public propertyCategory (Inherited from GH_InstanceDescription.)
Public propertyClippingBox (Inherited from GH_Component.)
Public propertyComponentGuid (Overrides GH_DocumentObject.ComponentGuid.)
Protected propertyDefaultEvaluationUnit
Set components default/initial evaluation unit.
(Overrides GH_SwitcherComponentDefaultEvaluationUnit.)
Public propertyDescription (Inherited from GH_InstanceDescription.)
Public propertyEvalUnits
Get evaluation units.
(Inherited from GH_SwitcherComponent.)
Public propertyExposure (Overrides GH_DocumentObject.Exposure.)
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 (Overrides GH_DocumentObject.Icon.)
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.
(Inherited from GH_SwitcherComponent.)
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).
(Inherited from GH_SwitcherComponent.)
Public propertyUnitMenuHeader
Get evaluation unit menu selection header. If this field is null or the empty string, a default header tag will be created.
(Inherited from GH_SwitcherComponent.)
Public propertyUnitMenuName
Get evaluation unit selection-menu name.
(Overrides GH_SwitcherComponentUnitMenuName.)
Top
Methods
  NameDescription
Public methodAddedToDocument (Inherited from GH_Component.)
Public methodAddRuntimeMessage (Inherited from GH_ActiveObject.)
Protected methodAfterSolveInstance (Inherited from GH_Component.)
Protected methodAppendAdditionalComponentMenuItems (Overrides GH_Component.AppendAdditionalComponentMenuItems(ToolStripDropDown).)
Public methodAppendAdditionalMenuItems
Add evaluation units to context menu.
(Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
Protected methodBeforeSolveInstance(EvaluationUnit) (Overrides GH_SwitcherComponentBeforeSolveInstance(EvaluationUnit).)
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.
(Inherited from GH_SwitcherComponent.)
Public methodCollectData (Inherited from GH_Component.)
Public methodComputeData (Inherited from GH_Component.)
Public methodCopyFrom (Inherited from GH_InstanceDescription.)
Public methodCreateAttributes
Create switcher attributes.
(Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
Protected methodDrawViewportWires(IGH_PreviewArgs, EvaluationUnit) (Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
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.
(Overrides GH_SwitcherComponentOnComponentLoaded.)
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.
(Inherited from GH_SwitcherComponent.)
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 (Inherited from GH_SwitcherComponent.)
Public methodRead
Read switcher component data.
(Inherited from GH_SwitcherComponent.)
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 (Overrides GH_SwitcherComponentRegisterEvaluationUnits(EvaluationUnitManager).)
Protected methodRegisterInputParams (Overrides GH_Component.RegisterInputParams(GH_InputParamManager).)
Protected methodRegisterOutputParams (Overrides GH_Component.RegisterOutputParams(GH_OutputParamManager).)
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.
(Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
Protected methodSolveInstance(IGH_DataAccess, EvaluationUnit)
Override this method to solve instance of compontent with given active unit.
(Overrides GH_SwitcherComponentSolveInstance(IGH_DataAccess, EvaluationUnit).)
Public methodSwitchUnit(String, Boolean, Boolean)
Switch to unit with given name. If no unit with given name exists, nothing happens (old state remains).
(Inherited from GH_SwitcherComponent.)
Protected methodSwitchUnit(EvaluationUnit, Boolean, Boolean)
Switch to supplied unit.
(Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
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.
(Inherited from GH_SwitcherComponent.)
Protected fieldevalUnits
Evaluation unit manager.
(Inherited from GH_SwitcherComponent.)
Protected fieldm_attributes (Inherited from GH_DocumentObject.)
Protected fieldstaticData
Runtime component data.
(Inherited from GH_SwitcherComponent.)
Top
See Also