Skip to content

ModelDataParam.T.

Public Class

Inheritance Hierarchy

System.Object
Grasshopper.Kernel.GH_InstanceDescription
Grasshopper.Kernel.GH_DocumentObject
Grasshopper.Kernel.GH_ActiveObject
Grasshopper.Kernel.GH_Param.T.
Grasshopper.Rhinoceros.Params.ModelDataParam.T.

Namespace: Grasshopper.Rhinoceros.Params

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public abstract class ModelDataParam<T> : GH_Param<T>
where T : class, IGH_ModelData

T

The ModelDataParam.T. type exposes the following members.

Constructors

Name

Description


Protected method

Initializes a new instance of the ModelDataParam.T. class


Properties

Name

Description


Public Property

Gets or sets the Access level for this parameter.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the attributes that are associated with this object. Only set custom attributes if you know what you are doing.

(Inherited from GH_DocumentObject.)


Public Property

Gets or sets the Category in which this object belongs. If HasCategory() returns false, this field has no meaning.

(Inherited from GH_InstanceDescription.)


Public Property

Returns a consistent ID for this object type. Every object must supply a unique and unchanging ID that is used to identify objects of the same type.

(Inherited from GH_DocumentObject.)


Public Property

Gets or sets the data mapping of this Parameter.

(Inherited from GH_Param.T..)


Public Property

Type is either Void if there are no sources or Remote. Derived classes should expand on this.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the description of the object. This field typically remains fixed during the lifetime of an object.

(Inherited from GH_InstanceDescription.)


Public Property

Gets the exposure of this object in the Graphical User Interface. The default is to expose everywhere.

(Inherited from GH_DocumentObject.)


Public Property

Gets whether or not the Category field has been set.

(Inherited from GH_InstanceDescription.)


Public Property

Gets a value indicating whether or not this parameter maintains proxy sources. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.

(Inherited from GH_Param.T..)


Public Property

Gets whether or not the SubCategory field has been set.

(Inherited from GH_InstanceDescription.)


Protected property

(Overrides

.)


Public Property

The icon associated with this object.

(Inherited from GH_DocumentObject.)


Public Property

The greyscale icon of this object.

(Inherited from GH_DocumentObject.)


Public Property

By default the NickName menu item supports the Icon Mode override toggle. If your UI is not capable of displaying icons, then override this property and return False.

(Inherited from GH_ActiveObject.)


Public Property

Gets the current display mode of the object.

(Inherited from GH_DocumentObject.)


Public Property

Gets the description of this instance. The default description is about the amount and source of the local values.

(Inherited from GH_Param.T..)


Public Property

Gets the ID of this runtime instance.

(Inherited from GH_InstanceDescription.)


Public Property

(Inherited from GH_Param.T..)


Public Property

Gets whether this parameter is a principal parameter. Principal parameters are maintained by components and are not part of the IGH_Param interface.

(Inherited from GH_Param.T..)


Public Property

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.

(Inherited from GH_InstanceDescription.)


Public Property

Gets the parameter kind. The kind is evaluated lazily and cached.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the enabled flag of this object. Disabled objects are ignored during solutions.

(Inherited from GH_ActiveObject.)


Public Property

Gets or sets a value that enables Nick name changes through the menu. The default is TRUE.

(Inherited from GH_ActiveObject.)


Public Property

Gets or sets the name of the object. This field typically remains fixed during the lifetime of an object.

(Inherited from GH_InstanceDescription.)


Public Property

Gets or sets the nickname of the object. This field can be changed by the user.

(Inherited from GH_InstanceDescription.)


Public Property

Gets whether this object is obsolete. Default implementation returns true if the class name contains the string “OBSOLETE” or if this class has been decorated with the ObsoleteAttribute. You are free to override this if you want, but I suggest adding the ObsoleteAttribute instead.

(Inherited from GH_DocumentObject.)


Public Property

Gets or sets whether or not this parameter is considered optional by the owner component. Empty, non-optional parameters prevent the component from being solved.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the solution phase this object is currenly in.

(Inherited from GH_ActiveObject.)


Public Property

(Inherited from GH_Param.T..)


Public Property

Gets the number of proxy sources for this parameter. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.

(Inherited from GH_Param.T..)


Public Property

Gets a list of all the recipients of this parameter. I.e. a recipient has this parameter as one of the sources. The Recipient list is maintained by the parameter, do not modify it yourself.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the data reverse modifier of this parameter.

(Inherited from GH_Param.T..)


Public Property

Returns the worst case flag for the current object

If the object contains at least 1 error, the result is Error.

If the object contains at least 1 warning, the result is Warning.

If the object contains at least 1 message, the result is Remark.

If the object contains no errors, no warnings and no messages, the result is Blank.

(Inherited from GH_ActiveObject.)


Public Property

Gets or sets the simplify modifier for this parameter.

(Inherited from GH_Param.T..)


Public Property

Gets the number of sources for this parameter.

(Inherited from GH_Param.T..)


Public Property

Gets a list of source parameters. Do not modify this list, if you wish to add or remove sources, use dedicated functions like AddSource() and RemoveSource() instead.

(Inherited from GH_Param.T..)


Public Property

Gets all the StateTags that are associated with this parameter. A state tag is a visual feedback icon that represents specific internal settings.

(Inherited from GH_Param.T..)


Public Property

Gets or sets the SubCategory in which this object belongs. If HasSubCategory() returns false, this field has no meaning.

(Inherited from GH_InstanceDescription.)


Public Property

Gets the Framework Type descriptor for the stored Data.

(Inherited from GH_Param.T..)


Public Property

(Overrides GH_Param.T..TypeName.)


Public Property

(Inherited from GH_Param.T..)


Public Property

(Inherited from GH_Param.T..)


Public Property

Gets or sets the wire display style for this parameter. Wire display only affects the wires connected to the parameter input.

(Inherited from GH_Param.T..)


Methods

Name

Description


Public Method

This method will be called when an object is added to a document. Override this method if you want to handle such events.

(Inherited from GH_DocumentObject.)


Public Method

Add a new message to this object. Valid message type flags are Warning and Error. If the Message string is empty or zero-length no message is added.

(Inherited from GH_ActiveObject.)


Public Method

Append a new Source parameter to the end of the Sources list. Sources provide this parameter with data at runtime.

(Inherited from GH_Param.T..)


Public Method

Insert a new Source parameter into the Sources list. Sources provide this parameter with data at runtime.

(Inherited from GH_Param.T..)


Public Method

Inserts an item of volatile data into the data structure.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

Override this function if you want to add specific items to the object context menu Default items already included in the menu toolstrip are: 1. Name 2. Preview 3. Warnings 4. Errors

(Inherited from GH_Param.T..)


Public Method

This function is called when a context menu is about to be displayed. Override it to set custom items. GH_ActiveObject will already populate the menu with default items, if you merely wish to insert object-specific menu item, consider overriding AppendAdditionalMenuItems instead.

(Inherited from GH_ActiveObject.)


Protected method

Attempts to convert the Object reference into an instance of T. This method will perform a direct cast if possible or it will call Casting functions on T or Data if they exist. Data will not be duplicated unless a type conversion is required.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

Remove all proxy sources without attempting to relink them.

(Inherited from GH_Param.T..)


Public Method

Destroy all warning and error lists

(Inherited from GH_ActiveObject.)


Public Method

(Inherited from GH_Param.T..)


Protected method

If a parameter has no sources, the CollectVolatileData_Custom() method is called. The basic implementation does nothing, but you can override this method to provide special data instantiation logic.

(Inherited from GH_Param.T..)


Protected method

This method collects volatile data from all the source parameters.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Protected method

This method is called whenever a successful conversion takes place from some source data into local target data. Override it if you wish to keep tabs on conversions.

(Inherited from GH_Param.T..)


Public Method

Copy all fields (except the instance ID) from another instance description.

(Inherited from GH_InstanceDescription.)


Public Method

(Inherited from GH_Param.T..)


Public Method

Convert all proper source parameters into proxy sources.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Protected method

Call this method to erase the existing icon cache. You must call this if you want to change the display icon of an object.

(Inherited from GH_DocumentObject.)


Public Method

This method will be called when the document that owns this object moves into a different context.

(Inherited from GH_DocumentObject.)


Protected method

(Inherited from GH_Param.T..)


Public Method

Call this function when you suspect that the preview has expired for this object. This will cause the display cache to be eradicated.

(Inherited from GH_DocumentObject.)


Public Method

Informs the document that owns this object that the solution has expired. The current object will be set to BLANK as a result. This method is recursive, it will also expire any and all objects which depend on this object. If you want a less destructive expiration, consider using ClearData(). If this object is already Blank, you should consider not expiring it.

(Inherited from GH_ActiveObject.)


Public Method

Invoke the Expiresolution(bool) method on the toplevel object.

(Inherited from GH_Param.T..)


Protected method

Returns “Null” if the data is a null reference, otherwise calls ToString() on the Data instance.

(Inherited from GH_Param.T..)


Protected method

Get a boolean value from the component value table.

(Inherited from GH_DocumentObject.)


Protected method

Get a double value from the component value table.

(Inherited from GH_DocumentObject.)


Protected method

Get a color value from the component value table.

(Inherited from GH_DocumentObject.)


Protected method

Get an integer value from the component value table.

(Inherited from GH_DocumentObject.)


Protected method

Get a string value from the component value table.

(Inherited from GH_DocumentObject.)


Protected method

HtmlHelp_Source

Return a String which contains HTML formatted source for the help topic. If you want to pass a URL that points to a remote page, then prefix the URL with a GOTO: tag, like so: GOTO:http://www.YourWebAddressHere.com

(Inherited from GH_DocumentObject.)


Protected method

(Overrides GH_Param.T..InstantiateT..)


Public Method

(Inherited from GH_Param.T..)


Protected method

Append the default Bake menu item.

(Inherited from GH_ActiveObject.)


Protected method

(Inherited from GH_Param.T..)


Protected method

Append the default Enable/Disable menu item.

(Inherited from GH_ActiveObject.)


Protected method

(Inherited from GH_Param.T..)


Protected method

(Inherited from GH_Param.T..)


Protected method

Appends the default object Help menu item.

(Inherited from GH_DocumentObject.)


Protected method

Appends the old-fashioned object name menu item. If you also want the Display mode toggle then use Menu_AppendObjectNameEx()

(Inherited from GH_DocumentObject.)


Protected method

Appends the default object name + display mode menu item.

(Inherited from GH_DocumentObject.)


Protected method

Append the default Show/Hide preview menu item.

(Inherited from GH_ActiveObject.)


Protected method

(Inherited from GH_Param.T..)


Protected method

Appends the default item for publishing to RCP. This menu will only appear if the current class implement IRcpAwareObject

(Inherited from GH_DocumentObject.)


Protected method

(Inherited from GH_Param.T..)


Protected method

Append the default warnings and errors menu items.

(Inherited from GH_ActiveObject.)


Protected method

(Inherited from GH_Param.T..)


Protected method

(Inherited from GH_Param.T..)


Public Method

This method will be called when an object is moved from one document to another. Override this method if you want to handle such events.

(Inherited from GH_DocumentObject.)


Public Method

Generate a new random instance GUID

(Inherited from GH_InstanceDescription.)


Public Method

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.

(Inherited from GH_InstanceDescription.)


Public Method

Raises the AttributesChanged event on the toplevel object.

(Inherited from GH_DocumentObject.)


Public Method

Raises the DisplayExpired event on the toplevel object.

(Inherited from GH_DocumentObject.)


Public Method

(Inherited from GH_DocumentObject.)


Public Method

(Inherited from GH_DocumentObject.)


Public Method

(Inherited from GH_DocumentObject.)


Public Method

(Inherited from GH_DocumentObject.)


Public Method

(Inherited from GH_DocumentObject.)


Public Method

Raise the PingDocument Event on the toplevel object and try to find the document which owns this object.

(Inherited from GH_DocumentObject.)


Public Method

Raises the PreviewExpired event on the toplevel object.

(Inherited from GH_DocumentObject.)


Public Method

Raises the SolutionExpired event on the toplevel object. You probably want to call ExpireSolution() instead of this method directly.

(Inherited from GH_DocumentObject.)


Protected method

Once volatile data has been collected this method will be calles. The basic implementation does nothing, but you can add code here to post-process or analyze the volatile data.

(Inherited from GH_Param.T..)


Protected method

Implement this function if you’re certain that you’ll be confronted with very common casts. For example, GH_Point has a preferred cast from Rhino.Geometry.Point3d and GH_Number has a preferred cast from System.Double.

(Inherited from GH_Param.T..)


Protected method

This function can be used to iterate over all items in the Volatile data tree and collect the union clipping box of all non-null items that implement Preview.IGH_PreviewData. This function requires a lot of TypeOf and DirectCasting, so if you’re worried about performance you should consider doing this yourself.

(Inherited from GH_Param.T..)


Protected method

This function can be used to iterate over all items in the Volatile data tree and call DrawViewportWires on each item that implements Preview.IGH_PreviewData. This function requires a lot of TypeOf and DirectCasting, so if you’re worried about performance you should consider doing this yourself.

(Inherited from GH_Param.T..)


Protected method

This function can be used to iterate over all items in the Volatile data tree and call DrawViewportWires on each item that implements Preview.IGH_PreviewData. This function requires a lot of TypeOf and DirectCasting, so if you’re worried about performance you should consider doing this yourself.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

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.

(Inherited from GH_InstanceDescription.)


Public Method

Record an entire undo record.

(Inherited from GH_DocumentObject.)


Public Method

Record a generic object change undo event.

(Inherited from GH_DocumentObject.)


Public Method

Record a specific object change undo event.

(Inherited from GH_DocumentObject.)


Public Method

Override this function if you want object changes in the Rhino document to trigger a new solution.

(Inherited from GH_ActiveObject.)


Protected method

Utility function which treats all data in the Volatile cache as IGH_GeometricGoo and registers all referenced objects. Call this function from within RegisterRemoteIDs() if you are absolutely sure that all the items in volatiledata implement IGH_GeometricGoo.

(Inherited from GH_Param.T..)


Public Method

Attempt to replace all proxy sources with real sources. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.

(Inherited from GH_Param.T..)


Public Method

Remove all sources from this parameter.

(Inherited from GH_Param.T..)


Public Method

This method will be called when an object is removed from a document. Override this method if you want to handle such events.

(Inherited from GH_DocumentObject.)


Public Method

Remove all post-process effects. Note to implementors, you must call the base method if you override this function.

(Inherited from GH_Param.T..)


Public Method

Remove the specified source from this parameter.

(Inherited from GH_Param.T..)


Public Method

Remove the specified source from this parameter.

(Inherited from GH_Param.T..)


Protected method

Obsolete.

This function has been emptied because it is Obsolete.

(Inherited from GH_Param.T..)


Public Method

Replace an existing source with a new one. If the old_source does not exist in this parameter, nothing happens.

(Inherited from GH_Param.T..)


Public Method

Replace an existing source with a new one. If the old_source does not exist in this parameter, nothing happens.

(Inherited from GH_Param.T..)


Public Method

Gets the list of cached runtime messages that were recorded during solver-time processes.

(Inherited from GH_ActiveObject.)


Public Method

Test whether this object is compliant with a given Rhino version.

(Inherited from GH_ActiveObject.)


Public Method

Set a new custom icon override for this object.

(Inherited from GH_DocumentObject.)


Public Method

Set the principal parameter state.

(Inherited from GH_Param.T..)


Protected method

Set a named value. This value will be serialized with the component.

(Inherited from GH_DocumentObject.)


Protected method

Set a named value. This value will be serialized with the component.

(Inherited from GH_DocumentObject.)


Protected method

Set a named value. This value will be serialized with the component.

(Inherited from GH_DocumentObject.)


Protected method

Set a named value. This value will be serialized with the component.

(Inherited from GH_DocumentObject.)


Protected method

Set a named value. This value will be serialized with the component.

(Inherited from GH_DocumentObject.)


Public Method

Triggers the AutoSave function on the owner document with the object_changed flag.

(Inherited from GH_DocumentObject.)


Public Method

Triggers the AutoSave function on the owner document with a custom flag.

(Inherited from GH_DocumentObject.)


Public Method

Triggers the AutoSave function on the owner document with the object_changed flag.

(Inherited from GH_DocumentObject.)


Public Method

Triggers the AutoSave function on the owner document with a custom flag.

(Inherited from GH_DocumentObject.)


Protected method

Override this method if you want to respond to changes to the value table. The base implementation is empty, so you don’t have to call it.

(Inherited from GH_DocumentObject.)


Protected method

This method is called to populate the Tooltip data description field.

(Inherited from GH_Param.T..)


Public Method

(Inherited from GH_Param.T..)


Public Method

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.

(Inherited from GH_InstanceDescription.)


Events

Name

Description


Public Event

Raised whenever the number or kind of attributes changes. This event is handled by GH_Documents who subsequently wipe their attribute caches.

(Inherited from GH_DocumentObject.)


Public Event

Raised whenever the display (on the Canvas) of a certain object becomes invalid.

(Inherited from GH_DocumentObject.)


Public Event

(Inherited from GH_DocumentObject.)


Public Event

Raised whenever an object needs to know which GH_Document it belongs to.

(Inherited from GH_DocumentObject.)


Public Event

Raised whenever the display (in the Rhino viewports) of a certain object becomes invalid.

(Inherited from GH_DocumentObject.)


Public Event

Raised whenever the solution of a certain object becomes invalid.

(Inherited from GH_DocumentObject.)


Fields

Name

Description


Protected field

m_attributes

(Inherited from GH_DocumentObject.)


Protected field

m_data

Contains the runtime data for this parameter, also known as “Volatile” data.

(Inherited from GH_Param.T..)


Inheritance Hierarchy

System.Object
Grasshopper.Kernel.GH_InstanceDescription
Grasshopper.Kernel.GH_DocumentObject
Grasshopper.Kernel.GH_ActiveObject
Grasshopper.Kernel.GH_Param.T.
Grasshopper.Rhinoceros.Params.ModelDataParam.T.
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationArrowSettings
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationDimensionSettings
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationLeaderSettings
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationTextSettings
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationToleranceSettings
Grasshopper.Rhinoceros.Annotations.Params.Param_AnnotationUnitsSettings
Grasshopper.Rhinoceros.Display.Params.Param_ObjectDisplay
Grasshopper.Rhinoceros.Display.Params.Param_ObjectVisibility
Grasshopper.Rhinoceros.Drafting.Params.Param_ObjectDrafting
Grasshopper.Rhinoceros.Render.Params.Param_ObjectRender