IGH_Goo
References- GH_Goo<T>
Nothing matches.
Base interface for all Data inside Grasshopper. Every parameter must implement a type of Goo.
Properties
Methods
CastFrom
#Attempt a cast from generic object
Remarks: If False, the contents of this instance are not to be trusted.
Parameters:
| source (object) | Reference to source of cast. |
Returns: True on success, false on failure.
CastTo<T>
#Attempt a cast to type T
Remarks: If false, the target instance contents are not guaranteed to be valid.
Parameters:
| target (ref T) | Pointer to target of cast. |
Returns: True on success, false on failure.
Duplicate
#Make a complete duplicate of this instance. No shallow copies.
Remarks: Classes which implement this interface should also provide type specific Duplicate methods
Read
This method is called whenever the instance is required to deserialize itself.
Parameters:
| reader (GH_IReader) | Reader object to deserialize from. |
Returns: 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.
Returns: The object that represents this IGH_Goo instance in a script.
Write
This method is called whenever the instance is required to serialize itself.
Parameters:
| writer (GH_IWriter) | Writer object to serialize with. |
Returns: True on success, false on failure.