remove_objremove_objRemoveObjRemoveObjremove_obj (Operator)
Name
remove_objremove_objRemoveObjRemoveObjremove_obj — Entferne Objekte aus einem ikonischen Objekt-Tupel.
Signatur
def remove_obj(objects: HObject, index: MaybeSequence[int]) -> HObject
Beschreibung
remove_objremove_objRemoveObjRemoveObjRemoveObjremove_obj entfernt die von IndexIndexIndexIndexindexindex referenzierten Objekte dem
Objekt-Tupel ObjectsObjectsObjectsObjectsobjectsobjects und gibt die verbleibenden Objekte in dem Tupel
ObjectsReducedObjectsReducedObjectsReducedObjectsReducedobjectsReducedobjects_reduced zurück.
IndexIndexIndexIndexindexindex bestimmt die Indizes der Elemente, die entfernt werden sollen.
Dabei ist zu beachten, dass die Indizes anders als bei Steuerungs-Tupeln bei
Objekt-Tupeln mit 1 beginnen. Duplikate und Indizes außerhalb des Bereiches
werden ignoriert.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
ObjectsObjectsObjectsObjectsobjectsobjects (input_object) object(-array) → objectHObjectHObjectHObjectHobject
Eingabe Objekt-Tupel.
ObjectsReducedObjectsReducedObjectsReducedObjectsReducedobjectsReducedobjects_reduced (output_object) object(-array) → objectHObjectHObjectHObjectHobject *
Verbleibende Objekt-Tupel.
IndexIndexIndexIndexindexindex (input_control) number(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Indizes der zu entfernenden Objekte.
Beispiel (HDevelop)
gen_empty_obj (Images)
for Index := 1 to 10 by 1
gen_image_const (Image, 'byte', Index, Index)
concat_obj (Images, Image, Images)
endfor
remove_obj (Images, Images, [7, 4])
Alternativen
select_objselect_objSelectObjSelectObjSelectObjselect_obj
Siehe auch
count_objcount_objCountObjCountObjCountObjcount_obj,
select_objselect_objSelectObjSelectObjSelectObjselect_obj,
copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj,
insert_objinsert_objInsertObjInsertObjInsertObjinsert_obj
Modul
Foundation