remove_objRemoveObjRemoveObjremove_objremove_obj
説明
remove_objRemoveObjRemoveObjremove_objremove_obj — アイコンオブジェクト配列からオブジェクトを削除する。
書式
remove_obj( object Objects, out object ObjectsReduced, number Index )void RemoveObj( const HObject& Objects, HObject* ObjectsReduced, const HTuple& Index )static void HOperatorSet.RemoveObj( HObject objects, out HObject objectsReduced, HTuple index )def remove_obj( objects: HObject, index: MaybeSequence[int] ) -> HObject
Herror remove_obj( const Hobject Objects, Hobject* ObjectsReduced, const Hlong Index )
Herror T_remove_obj( const Hobject Objects, Hobject* ObjectsReduced, const Htuple Index )
HObject HObject::RemoveObj( const HTuple& Index ) const
HObject HObject::RemoveObj( Hlong Index ) const
HImage HImage::RemoveObj( const HTuple& Index ) const
HImage HImage::RemoveObj( Hlong Index ) const
HRegion HRegion::RemoveObj( const HTuple& Index ) const
HRegion HRegion::RemoveObj( Hlong Index ) const
HXLD HXLD::RemoveObj( const HTuple& Index ) const
HXLD HXLD::RemoveObj( Hlong Index ) const
HXLDCont HXLDCont::RemoveObj( const HTuple& Index ) const
HXLDCont HXLDCont::RemoveObj( Hlong Index ) const
HXLDPoly HXLDPoly::RemoveObj( const HTuple& Index ) const
HXLDPoly HXLDPoly::RemoveObj( Hlong Index ) const
HXLDPara HXLDPara::RemoveObj( const HTuple& Index ) const
HXLDPara HXLDPara::RemoveObj( Hlong Index ) const
HXLDModPara HXLDModPara::RemoveObj( const HTuple& Index ) const
HXLDModPara HXLDModPara::RemoveObj( Hlong Index ) const
HXLDExtPara HXLDExtPara::RemoveObj( const HTuple& Index ) const
HXLDExtPara HXLDExtPara::RemoveObj( Hlong Index ) const
HObject HObject.RemoveObj( HTuple index )
HObject HObject.RemoveObj( int index )
HImage HImage.RemoveObj( HTuple index )
HImage HImage.RemoveObj( int index )
HRegion HRegion.RemoveObj( HTuple index )
HRegion HRegion.RemoveObj( int index )
HXLD HXLD.RemoveObj( HTuple index )
HXLD HXLD.RemoveObj( int index )
HXLDCont HXLDCont.RemoveObj( HTuple index )
HXLDCont HXLDCont.RemoveObj( int index )
HXLDPoly HXLDPoly.RemoveObj( HTuple index )
HXLDPoly HXLDPoly.RemoveObj( int index )
HXLDPara HXLDPara.RemoveObj( HTuple index )
HXLDPara HXLDPara.RemoveObj( int index )
HXLDModPara HXLDModPara.RemoveObj( HTuple index )
HXLDModPara HXLDModPara.RemoveObj( int index )
HXLDExtPara HXLDExtPara.RemoveObj( HTuple index )
HXLDExtPara HXLDExtPara.RemoveObj( int index )
説明
remove_objRemoveObjはオブジェクト配列ObjectsobjectsobjectsからIndexindexindex番目によって参照される
要素を削除し、オブジェクト配列ObjectsReducedobjectsReducedobjects_reducedを返します。
Indexindexindexは除去する要素のインデックスを指定します。
tuple配列と比較して、
オブジェクト配列の要素は1から始まることに注意してください。つまり、最初の配列要素は
インデックス1になります。重複や範囲外のインデックスは無視されます。
実行情報
実行情報
パラメーター
Objectsobjectsobjects (input_object) object(-array) → objectHObjectHObjectHObjectHobject
入力オブジェクト配列
ObjectsReducedobjectsReducedobjects_reduced (output_object) object(-array) → objectHObjectHObjectHObjectHobject *
残ったオブジェクト配列
Indexindexindex (input_control) number(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)
取り除くオブジェクトのインデックス
例
(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])
他のオペレーターとの組み合わせ
組み合わせ
他の選択候補
select_objSelectObj
関連項目
count_objCountObj, select_objSelectObj, copy_objCopyObj, insert_objInsertObj
モジュール
Foundation