IGH_Goo

References
public interface IGH_Goo : GH_ISerializable
Base interface for all Data inside Grasshopper. Every parameter must implement a type of Goo.

Properties

IsValid

#
Gets a value indicating whether or not the current value is valid.
bool IsValid { get; }

IsValidWhyNot

#
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
string IsValidWhyNot { get; }

TypeDescription

#
Gets a description of the type of the implementation.
string TypeDescription { get; }

TypeName

#
Gets the name of the type of the implementation.
string TypeName { get; }

Methods

CastFrom

#
Attempt a cast from generic object
bool CastFrom(
source
Reference to source of cast.
)
Remarks: If False, the contents of this instance are not to be trusted.
True on success, false on failure.

CastTo<T>

#
Attempt a cast to type T
bool CastTo<T>(
ref T
target
Pointer to target of cast.
)
Remarks: If false, the target instance contents are not guaranteed to be valid.
True on success, false on failure.

Duplicate

#
Make a complete duplicate of this instance. No shallow copies.
IGH_Goo Duplicate()
Remarks: Classes which implement this interface should also provide type specific Duplicate methods

EmitProxy

#
Create a new proxy for this instance. Return Null if this class does not support proxies.
IGH_GooProxy EmitProxy()

Read

This method is called whenever the instance is required to deserialize itself.
bool Read(
reader
Reader object to deserialize from.
)
inherited fromGH_ISerializable
True on success, false on failure.

ScriptVariable

#
This function will be called when the local IGH_Goo instance disapears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
object ScriptVariable()
The object that represents this IGH_Goo instance in a script.

ToString

#
Creates a string description of the current instance value
string ToString()

Write

This method is called whenever the instance is required to serialize itself.
bool Write(
writer
Writer object to serialize with.
)
inherited fromGH_ISerializable
True on success, false on failure.