disp_rectangle2DispRectangle2DispRectangle2disp_rectangle2T_disp_rectangle2
説明
disp_rectangle2DispRectangle2DispRectangle2disp_rectangle2T_disp_rectangle2 — 任意の方向を持つ短形を表示する。
書式
disp_rectangle2( window WindowHandle, rectangle2.center.y CenterRow, rectangle2.center.x CenterCol, rectangle2.angle.rad Phi, rectangle2.hwidth Length1, rectangle2.hheight Length2 )void DispRectangle2( const HTuple& WindowHandle, const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2 )static void HOperatorSet.DispRectangle2( HTuple windowHandle, HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2 )def disp_rectangle2( window_handle: HHandle, center_row: MaybeSequence[Union[int, float]], center_col: MaybeSequence[Union[int, float]], phi: MaybeSequence[Union[int, float]], length_1: MaybeSequence[Union[int, float]], length_2: MaybeSequence[Union[int, float]] ) -> None
Herror T_disp_rectangle2( const Htuple WindowHandle, const Htuple CenterRow, const Htuple CenterCol, const Htuple Phi, const Htuple Length1, const Htuple Length2 )
void HWindow::DispRectangle2( const HTuple& CenterRow, const HTuple& CenterCol, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2 ) const
void HWindow::DispRectangle2( double CenterRow, double CenterCol, double Phi, double Length1, double Length2 ) const
void HWindow.DispRectangle2( HTuple centerRow, HTuple centerCol, HTuple phi, HTuple length1, HTuple length2 )
void HWindow.DispRectangle2( double centerRow, double centerCol, double phi, double length1, double length2 )
説明
disp_rectangle2DispRectangle2 は出力ウインドウ内で 1 つまたは複数の任意の方向を
持つ矩形を表示します。矩形は中心 (CenterRowcenterRowcenter_row,CenterColcenterColcenter_col)、
方向 Phiphiphi(単位はラジアン)と辺の長さの 1/2 である Length1length1length_1
と Length2length2length_2 によって記述されます。領域の表示を制御するために使用
されるオペレーター(例えば、set_drawSetDraw, set_graySetGray,
set_drawSetDraw)は矩形の表示のためにも使用することができます。tupleパラメーター
を用いて、1 回の呼び出しで複数の矩形を描くこともできます。色の使用に
関しては、set_colorSetColor を参照してください。
注意
矩形の中心はウインドウ境界内になければなりません。
実行情報
実行情報
パラメーター
WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)
ウインドウハンドル
CenterRowcenterRowcenter_row (input_control) rectangle2.center.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
中心の行座標
初期値: 4848
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ CenterRow ≤ 511 (lin)
最小増分: 1
推奨増分: 10
CenterColcenterColcenter_col (input_control) rectangle2.center.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
中心の列座標
初期値: 6464
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ CenterCol ≤ 511 (lin)
最小増分: 1
推奨増分: 10
Phiphiphi (input_control) rectangle2.angle.rad(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
矩形の方向(単位はラジアン)
初期値: 0.00.0
推奨値: 0.0, 0.785398, 1.570796, 3.1415926, 6.2831850.0, 0.785398, 1.570796, 3.1415926, 6.283185
値域: 0.0 ≤ Phi ≤ 6.283185 (lin)
最小増分: 0.01
推奨増分: 0.1
Length1length1length_1 (input_control) rectangle2.hwidth(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
矩形長辺の長さの半分
初期値: 4848
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Length1 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
Length2length2length_2 (input_control) rectangle2.hheight(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)
矩形短辺の長さの半分
初期値: 3232
推奨値: 0, 64, 128, 256, 5110, 64, 128, 256, 511
値域: 0 ≤ Length2 ≤ 511 (lin)
最小増分: 1
推奨増分: 10
制限: Length2 < Length1
例
(HDevelop)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
elliptic_axis(MyRegion,Ra,Rb,Phi)
area_center(MyRegion,_,Row,Column)
disp_rectangle2(WindowHandle,Row,Column,Phi,Ra,Rb)
結果
パラメーターが正しいならば、disp_rectangle2DispRectangle2 は値 2 (H_MSG_TRUE) を返します。
そうでなければ、例外処理が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
open_windowOpenWindow, set_rgbSetRgb, set_lutSetLut, set_hsiSetHsi, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth
他の選択候補
disp_regionDispRegion, gen_rectangle2GenRectangle2, disp_rectangle1DispRectangle1, set_shapeSetShape
関連項目
open_windowOpenWindow, disp_regionDispRegion, set_colorSetColor, set_drawSetDraw, set_line_widthSetLineWidth
モジュール
Foundation