GH_Material.GH_Material_Proxy
GH_GooProxy<1>Constructors
Properties
Diffuse
#[Description("Colour of the diffuse channel")]
[Category("Channels")]
[RefreshProperties(RefreshProperties.All)]
public Color Diffuse { get; set; }
Emission
#[Description("Colour of the emission channel")]
[Category("Channels")]
[RefreshProperties(RefreshProperties.All)]
public Color Emission { get; set; }
IsParsable
Gets a value indicating whether or not the type can be instantiated from a String.
Implements: IsParsable
IsRDKMaterial
#[Description("True if the shader is an RDK Reference")]
[Category("Properties")]
[DisplayName("RDK Reference")]
public bool IsRDKMaterial { get; }
ProxyOwner
Gets the piece of Grasshopper data that spawned this proxy.
Implements: ProxyOwner
Shine
#[Description("Shinyness of the material")]
[Category("Properties")]
[RefreshProperties(RefreshProperties.All)]
public double Shine { get; set; }
Specular
#[Description("Colour of the specular highlight")]
[Category("Channels")]
[RefreshProperties(RefreshProperties.All)]
public Color Specular { get; set; }
Transparency
#[Description("Amount of transparency ({0.0 = opaque} to {1.0 = transparent})")]
[Category("Properties")]
[RefreshProperties(RefreshProperties.All)]
public double Transparency { get; set; }
TypeDescription
[Description("Description of target data type")]
[Category("Misc")]
public string TypeDescription { get; }
TypeName
UserString
Gets or sets the user-defined string that describes this proxy. This only really makes sense if the Proxy is Parsable.
Returns: The UserString value or the value of FormatInstance() if UserString has not been assigned.
Implements: UserString
Valid
Gets a value indicating whether this proxy represents valid data.
Implements: Valid
Methods
Construct
public virtual void Construct()
Override this method to supply a custom UI during proxy construction.
Implements: Construct
FormatInstance
Returns a String description of the current value.
Remarks: If the implementation IsParsable(), then this representation must be in parsable format.
Implements: FormatInstance
FromString
If IsParsable(), then attempts to convert the string to a generic type value
Parameters:
| in (string) | The String to parse. |
Returns: True on success, false on failure. This method should not throw exceptions.
Implements: FromString
MutateString
Munge a string to remove obvious errors on account of the user.
Parameters:
| in (string) |
Implements: MutateString
Parameters:
| number (double) |
Parameters:
| text (string) |
ToString
Overrides: Object.ToString