IGH_DataAccess
ReferencesProvides access to component parameters, in order to retrieve and assign data during solutions.
Properties
Methods
AbortComponentSolution
#void AbortComponentSolution()
Call this method if you wish to stop solving this component.
BlitData<Q>
#Creates a direct copy of an existing data structure. The existing generic instance must of the exact same type as the target parameter.
Parameters:
| paramIndex (int) | Index of output parameter. |
| tree (GH_Structure<Q>) | Parameter whose data to blit |
| overwrite (bool) | If true, any existing data will be removed. |
DisableGapLogic
#void DisableGapLogic()
Call this function if you want to disable the gap null logic for the current iteration.
DisableGapLogic
#Call this function if you want to disable the gap null logic for a specific output parameter.
Parameters:
| paramIndex (int) | Index of output parameter to disable. |
GetData<T>
#Retrieve data from an input parameter during GH_Component.SolveInstance().
Parameters:
| index (int) | |
| destination (ref T) |
Returns: True on success, false on failure.
GetData<T>
#Retrieve data from an input parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Parameters:
| name (string) | |
| destination (ref T) |
Returns: True on success, false on failure.
GetDataList<T>
#Retrieve an entire list of data from an input parameter during GH_Component.SolveInstance().
GetDataList<T>
#Retrieve an entire list of data from an input parameter during GH_Component.SolveInstance().
GetDataTree<T>
#Retrieve an entire data tree from an input parameter during GH_Component.SolveInstance().
Parameters:
| index (int) | |
| tree (ref GH_Structure<T>) |
Returns: True on success, false on failure.
GetDataTree<T>
#Retrieve an entire data tree from an input parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Parameters:
| name (string) | |
| tree (ref GH_Structure<T>) |
Returns: True on success, false on failure.
ParameterTargetIndex
#Get the target index for the specified output parameter.
Parameters:
| paramIndex (int) | Index of output parameter. |
ParameterTargetPath
#Get the target path for the specified output parameter.
Parameters:
| paramIndex (int) | Index of output parameter. |
SetData
#Expert user function. Stores data in an output parameter during GH_Component.SolveInstance(). Use this function only for setting individual data items. If you want to set lists of data, you *must* call SetDataList() instead.
Parameters:
| paramIndex (int) | Index of the output parameter at which to store the data. |
| data (object) | Data to store. Data will be converted if necessary, but it will not be duplicated automatically. |
| itemIndexOverride (int) | Typically the item index is a result of Data matching logic. If you want to override the item index, then call this function. |
SetData
#Stores data in an output parameter during GH_Component.SolveInstance(). Use this function only for setting individual data items. If you want to set lists of data, you *must* call SetDataList() instead.
SetData
#Stores data in an output parameter during GH_Component.SolveInstance().
SetDataList
#Expert user function. Stores a list of data in an output parameter during GH_Component.SolveInstance().
Parameters:
| paramIndex (int) | Index of the output parameter at which to store the list. |
| data (IEnumerable) | Data to store. Data will be converted if necessary, but it will not be duplicated automatically. |
| listIndexOverride (int) | Typically the branch index is a result of Data matching logic. If you want to override the branch index, then call this function. |
SetDataList
#Stores a list of data in an output parameter during GH_Component.SolveInstance().
Parameters:
| paramIndex (int) | Index of the output parameter at which to store the list. |
| data (IEnumerable) | Data to store. Data will be converted if necessary, but it will not be duplicated automatically. |
SetDataList
#Stores data in an output parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Parameters:
| paramName (string) | Name of the parameter at which to store the data. |
| data (IEnumerable) | Data to store. Data will be converted if necessary, but it will not be duplicated automatically. |
SetDataTree
#Folds a utility tree representation into this tree.
Parameters:
| paramIndex (int) | Index of output parameter to merge with. |
| tree (IGH_DataTree) | Tree to merge |
SetDataTree
#Folds a utility tree representation into this tree.
Parameters:
| paramIndex (int) | Index of output parameter to merge with. |
| tree (IGH_Structure) | Tree to merge |
Util_CountNonNullRefs<T>
#Count all object references in L
Parameters:
| L (List<T>) | List to parse |
Returns: Number of proper objects in L
Util_CountNullRefs<T>
#Count all null references in L
Parameters:
| L (List<T>) | List to parse |
Returns: Number of nulls in L
Util_EnsureNonNullCount<T>
#Tests a list to see if it contains sufficient non-null references.