DecomposeBaseList¶
-
MLModule¶ genre Fieldsauthor MeVis Medical Solutions AGpackage MeVisLab/Standarddll MLBasedefinition MLBase.def see also ComposeBaseList,ExtractObjectFromList,SaveBase,LoadBasekeywords object,split,subtract,divide
Purpose¶
The module DecomposeBaseList is the counterpart to ComposeBaseList. It allows for extracting objects previously composed to (using ComposeBaseList) from ml.BaseList structures identifying them via name, type, or ID.
A similar module is ExtractObjectFromList, but it can only extract objects from “ordinary” lists that can only hold objects of a single type.
Usage¶
Connect a ml.BaseList object to the input and specify search parameters for the object you want to extract. Verify that the output is valid and connect the left output to the operator where the object is needed.
Input Fields¶
inList¶
-
name:inList, type:MLBase, deprecated name:inputBaseList¶ The module has one Base input that must be connected to a BaseList object. If the input object has incorrect type, the field
Input List Validwill be shown as being disabled and the operator will not work.
Output Fields¶
The module has two Base outputs. The outObject holds the extracted object or a NULL pointer if the search was unsuccessful. The outList always contains a BaseList object holding the rest of the elements from the input list.
Note that this is not the filtered list but simply the input list without the extracted object.
Parameter Fields¶
Field Index¶
Filter by ID: Bool |
Look for (nameToFind): String |
Filter by Name: Bool |
Look for (typeToFind): String |
Filter by Type: Bool |
Number of Elements in Input List: Integer |
Global List Index: Integer |
objectFound: Bool |
Index in Filtered List (starting with 1, negative for reversed order): Integer |
Output Valid: Bool |
Input List Valid: Bool |
|
Items Found: Integer |
|
Look for (idToFind): Integer |
Visible Fields¶
Filter by ID¶
Filter by Name¶
Filter by Type¶
Look for (idToFind)¶
-
name:idToFind, type:Integer, default:0¶ If
Filter by IDis checked, the object with the given ID is filtered.
Look for (nameToFind)¶
-
name:nameToFind, type:String¶ If
Filter by Nameis checked, the objects with the given name (substring, case-sensitive) is filtered.
Look for (typeToFind)¶
-
name:typeToFind, type:String¶ If
Filter by Typeis checked, the objects with the given type (substring, case-sensitive) is filtered.
Index in Filtered List (starting with 1, negative for reversed order)¶
-
name:posToFind, type:Integer, default:1¶ Sets a positive integer k to obtain the element at position k in the filtered list (starting with 1!). Enter a negative integer -k to obtain the element at position (sizeOfFilteredList - k + 1).
For example, to always obtain the last element of the filtered list, you have to specify -1 here.
Global List Index¶
-
name:outPos, type:Integer, persistent:no¶ Shows the position of the output object with reference to the input list. Like
Index in Filtered List (starting with 1, negative for reversed order), this index starts with 1.
Number of Elements in Input List¶
-
name:inputSize, type:Integer, persistent:no¶ Shows the number of elements in the input list.
Input List Valid¶
-
name:inputValid, type:Bool, persistent:no¶ Shows whether the input list is valid.