GH_InstanceDescription
References- GH_Param<T>
Nothing matches.
Base implementation of IGH_InstanceDescription. Consider deriving from this class rather than implementing IGH_InstanceDescription from scratch.
Constructors
GH_InstanceDescription
#Create a new instance.
GH_InstanceDescription
#Create a new instance. This constructor is maintained for legacy purposes, use the constructor overload that includes SubCategories!.
[EditorBrowsable(EditorBrowsableState.Never)]
public GH_InstanceDescription()
name,
Name of instance description.
nickName,
Nickname of instance description.
description,
Descirptive text of instance description.
category
Category of instance description. If you supply a name containing a dot, subcategory will be inferred.
Properties
Category
#Gets or sets the Category in which this object belongs. If HasCategory() returns false, this field has no meaning.
Implements: Category
Description
#Gets or sets the description of the object. This field typically remains fixed during the lifetime of an object.
Implements: Description
InstanceDescription
#Gets a description of the current state of the object. This field is usually the same as the Description() field, but it might be variable when overridden.
Implements: InstanceDescription
Keywords
#Gets a list of additional keywords that describe the object. Typically this list is empty but you can override this property to aid in object searches.
Implements: Keywords
Name
#Gets or sets the name of the object. This field typically remains fixed during the lifetime of an object.
Implements: Name
NickName
#Gets or sets the nickname of the object. This field can be changed by the user.
Implements: NickName
SubCategory
#Gets or sets the SubCategory in which this object belongs. If HasSubCategory() returns false, this field has no meaning.
Implements: SubCategory
Methods
NewInstanceGuid
#Generate a new random instance GUID
public void NewInstanceGuid()
Implements: NewInstanceGuid
NewInstanceGuid
#Set the instance ID to be a specific GUID. This is very dangerous, only use this function if you're 6"4' and your first name is David.
Implements: NewInstanceGuid
Read
#Default deserialization. Only retrieves Name, NickName, Description and InstanceGuid fields. If you want to retrieve additional fields use ReadFull() instead. However, ReadFull() will only work if the archive was written using WriteFull().
Returns: Always True.
Implements: Read
ReadFull
#GH_InstanceDescription does not by default serialize all fields. Use this function to read all fields from the archive. This method is compatible with the default Write()/Read() operations.
Returns: True on success, false on failure.
Write
#Default serialization. Only stores Name, NickName, Description and InstanceGuid fields. If you want to store additional fields use WriteFull() instead.
Returns: Always True.
Implements: Write
WriteFull
#GH_InstanceDescription does not by default serialize all fields. Use this function to write all fields to the archive. This method is compatible with the default Write()/Read() operations.
Returns: True on success, false on failure.