Skip to content

ComponentFunctionInfo

Public Class

Defines the base class for a function representing a component. This class is abstract.

Inheritance Hierarchy

System.Object
Rhino.NodeInCode.ComponentFunctionInfo

Namespace: Rhino.NodeInCode

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public abstract class ComponentFunctionInfo

The ComponentFunctionInfo type exposes the following members.

Constructors

Name

Description


Protected Method

Instantiates a new instance of the function class. This is not meant for public consumption.


Properties

Name

Description


Public Property

The unique identifier of the Grasshopper component. It is the original developer’s responsibility to ensure that this ID is unique.


Public Property

Returns a delegate that can be directly invoked using a list of arguments. This flattens trees.


Public Property

Returns a delegate that can be directly invoked using a list of arguments. This flattens trees.


Public Property

Returns a delegate that can be directly invoked using a list of arguments. This considers trees and simplifies single-output components.


Public Property

Returns a delegate that can be directly invoked using a list of arguments. This considers trees and simplifies single-output components.


Public Property

The function description.


Public Property

Returns the name of the component prefixed by, if existing, the namespace.


Public Property

Shows the full name of the component, including optional periods. Removes spaces and common operator signs.


Public Property

The function input parameter descriptions.


Public Property

The function input parameter names.


Public Property

Indications for each function input parameter whether it is optional.


Public Property

The function input type names.


Public Property

Determines if the component is a default one.


Public Property

The function name.


Public Property

The function namespace.


Public Property

Grasshopper returns several items in general. This property returns the output descriptions.


Public Property

Grasshopper returns several items in general. This property returns the output names.


Public Property

Grasshopper returns several items in general. This property returns the output type names.


Methods

Name

Description


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method
Evaluate

Evaluates the component with a set of arguments. There needs to be an argument for each input param, and each output param gives an entry in the output array.


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Runs Evaluate(IEnumerable, Boolean, .String..) with keepTree equal to false, and raises an exception on the first warning.


Public Method

Runs Evaluate(IEnumerable, Boolean, .String..) with keepTree equal to true and raises an exception on the first warning.


Public Method

Runs Evaluate(IEnumerable, Boolean, .String..) with keepTree equal to true, and discards warnings (this is a dangerous operation!).


Public Method

Runs Evaluate(IEnumerable, Boolean, .String..) with keepTree equal to false, then simplifies output with SimplifyTreeOutput(.Object., .String., Boolean) and discards warnings (this is a dangerous operation!).


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Returns a string representing this function.

(Overrides Object.ToString..)