insert_objInsertObjInsertObjinsert_objinsert_obj
説明
insert_objInsertObjInsertObjinsert_objinsert_obj — アイコンオブジェクト配列の中にオブジェクトを挿入する
書式
insert_obj( object Objects, object ObjectsInsert, out object ObjectsExtended, number Index )void InsertObj( const HObject& Objects, const HObject& ObjectsInsert, HObject* ObjectsExtended, const HTuple& Index )static void HOperatorSet.InsertObj( HObject objects, HObject objectsInsert, out HObject objectsExtended, HTuple index )def insert_obj( objects: HObject, objects_insert: HObject, index: int ) -> HObject
Herror insert_obj( const Hobject Objects, const Hobject ObjectsInsert, Hobject* ObjectsExtended, const Hlong Index )
Herror T_insert_obj( const Hobject Objects, const Hobject ObjectsInsert, Hobject* ObjectsExtended, const Htuple Index )
HObject HObject::InsertObj( const HObject& ObjectsInsert, Hlong Index ) const
HImage HImage::InsertObj( const HImage& ObjectsInsert, Hlong Index ) const
HRegion HRegion::InsertObj( const HRegion& ObjectsInsert, Hlong Index ) const
HXLD HXLD::InsertObj( const HXLD& ObjectsInsert, Hlong Index ) const
HXLDCont HXLDCont::InsertObj( const HXLDCont& ObjectsInsert, Hlong Index ) const
HXLDPoly HXLDPoly::InsertObj( const HXLDPoly& ObjectsInsert, Hlong Index ) const
HXLDPara HXLDPara::InsertObj( const HXLDPara& ObjectsInsert, Hlong Index ) const
HXLDModPara HXLDModPara::InsertObj( const HXLDModPara& ObjectsInsert, Hlong Index ) const
HXLDExtPara HXLDExtPara::InsertObj( const HXLDExtPara& ObjectsInsert, Hlong Index ) const
HObject HObject.InsertObj( HObject objectsInsert, int index )
HImage HImage.InsertObj( HImage objectsInsert, int index )
HRegion HRegion.InsertObj( HRegion objectsInsert, int index )
HXLD HXLD.InsertObj( HXLD objectsInsert, int index )
HXLDCont HXLDCont.InsertObj( HXLDCont objectsInsert, int index )
HXLDPoly HXLDPoly.InsertObj( HXLDPoly objectsInsert, int index )
HXLDPara HXLDPara.InsertObj( HXLDPara objectsInsert, int index )
HXLDModPara HXLDModPara.InsertObj( HXLDModPara objectsInsert, int index )
HXLDExtPara HXLDExtPara.InsertObj( HXLDExtPara objectsInsert, int index )
説明
insert_objInsertObjはオブジェクト配列ObjectsobjectsobjectsのIndexindexindex番目へObjectsInsertobjectsInsertobjects_insert
の要素を挿入し、ObjectsExtendedobjectsExtendedobjects_extendedを返します。
Indexindexindexは1つの整数値でなければなりません。tuple配列と比較して、
オブジェクト配列の要素は1から始まることに注意してください。ObjectsExtendedobjectsExtendedobjects_extended
の長さはObjectsobjectsobjectsとObjectsInsertobjectsInsertobjects_insertの長さの合計になります。
ObjectsobjectsobjectsやObjectsInsertobjectsInsertobjects_insertは画像や領域、XLDを混ぜることが出来ます。
実行情報
実行情報
パラメーター
Objectsobjectsobjects (input_object) object(-array) → objectHObjectHObjectHObjectHobject
アイコン変数配列
ObjectsInsertobjectsInsertobjects_insert (input_object) object(-array) → objectHObjectHObjectHObjectHobject
入力するオブジェクト配列
ObjectsExtendedobjectsExtendedobjects_extended (output_object) object(-array) → objectHObjectHObjectHObjectHobject *
延長されたオブジェクト配列
Indexindexindex (input_control) number → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
挿入するオブジェクトのインデックス
例
(HDevelop)
gen_image_const (Image1, 'byte', 1, 1)
gen_image_const (Image3, 'byte', 3, 3)
concat_obj (Image1, Image3, Images)
gen_image_const (Image, 'byte', 2, 2)
insert_obj (Images, Image, Images, 2)
複雑性
典型的な実行時の複雑性は\(O(|\textrm{Objects}| + |\textrm{ObjectsInsert}|)\)です。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
count_objCountObj
後処理の候補
count_objCountObj
他の選択候補
concat_objConcatObj
関連項目
count_objCountObj, select_objSelectObj, copy_objCopyObj, remove_objRemoveObj
モジュール
Foundation