Skip to content

draw_rectangle2_modDrawRectangle2ModDrawRectangle2Moddraw_rectangle2_modT_draw_rectangle2_mod🔗

説明🔗

draw_rectangle2_modDrawRectangle2ModDrawRectangle2Moddraw_rectangle2_modT_draw_rectangle2_mod — 対話方式で任意の方向をもつ短形を描画する。

書式🔗

draw_rectangle2_mod( window WindowHandle, rectangle2.center.y RowIn, rectangle2.center.x ColumnIn, rectangle2.angle.rad PhiIn, rectangle2.hwidth Length1In, rectangle2.hheight Length2In, out rectangle2.center.y Row, out rectangle2.center.x Column, out rectangle2.angle.rad Phi, out rectangle2.hwidth Length1, out rectangle2.hheight Length2 )void DrawRectangle2Mod( const HTuple& WindowHandle, const HTuple& RowIn, const HTuple& ColumnIn, const HTuple& PhiIn, const HTuple& Length1In, const HTuple& Length2In, HTuple* Row, HTuple* Column, HTuple* Phi, HTuple* Length1, HTuple* Length2 )static void HOperatorSet.DrawRectangle2Mod( HTuple windowHandle, HTuple rowIn, HTuple columnIn, HTuple phiIn, HTuple length1In, HTuple length2In, out HTuple row, out HTuple column, out HTuple phi, out HTuple length1, out HTuple length2 )def draw_rectangle2_mod( window_handle: HHandle, row_in: float, column_in: float, phi_in: float, length_1in: float, length_2in: float ) -> Tuple[float, float, float, float, float]

Herror T_draw_rectangle2_mod( const Htuple WindowHandle, const Htuple RowIn, const Htuple ColumnIn, const Htuple PhiIn, const Htuple Length1In, const Htuple Length2In, Htuple* Row, Htuple* Column, Htuple* Phi, Htuple* Length1, Htuple* Length2 )

void HWindow::DrawRectangle2Mod( double RowIn, double ColumnIn, double PhiIn, double Length1In, double Length2In, double* Row, double* Column, double* Phi, double* Length1, double* Length2 ) const

void HWindow.DrawRectangle2Mod( double rowIn, double columnIn, double phiIn, double length1In, double length2In, out double row, out double column, out double phi, out double length1, out double length2 )

説明🔗

draw_rectangle2_modDrawRectangle2Mod は、ウインドウでユーザーが対話的に作成 した矩形のパラメーターを返します。

生成された矩形は、中心座標、第 1 軸と第 2 軸それぞれの 1/2 の長 さ、および第 1 軸が水平軸となす角度によって記述されます。

矩形を作成するために、パラメーター RowInrowInrow_in、 ColumnIncolumnIncolumn_in、PhiInphiInphi_in、Length1Inlength1Inlength_1in、 Length2Inlength2Inlength_2in を指定します。 任意の辺の付近でマウスをクリックしドラッグすると、その方向( Length2length2length_2)に矩形の大きさを修正することができます。第 1 軸 上の矢印をクリックしてドラッグすると方向(Phiphiphi)を変更でき ます。生成された矩形の中央付近でマウスをクリックしドラッグすると、 その矩形を移動することができます。マウスの右ボタンを押すことで処理 を終了します。

処理の終了後、矩形はウインドウ内で見えなくなります。

注意🔗

バッファウインドウで使用する場合、マウスイベントをアプリケーションから提供しつつ、 描画オペレーターは別スレッドで実行する必要があります。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウ ハンドル

RowInrowInrow_in (input_control) rectangle2.center.y → (real)HTuple (double)HTuple (double)floatHtuple (double)

中心の行座標 (インデックス) の初期値

ColumnIncolumnIncolumn_in (input_control) rectangle2.center.x → (real)HTuple (double)HTuple (double)floatHtuple (double)

中心の列座標 (インデックス) の初期値

PhiInphiInphi_in (input_control) rectangle2.angle.rad → (real)HTuple (double)HTuple (double)floatHtuple (double)

水平軸と長軸の成す角度(ラジアン)の初期値

Length1Inlength1Inlength_1in (input_control) rectangle2.hwidth → (real)HTuple (double)HTuple (double)floatHtuple (double)

長軸の初期値

Length2Inlength2Inlength_2in (input_control) rectangle2.hheight → (real)HTuple (double)HTuple (double)floatHtuple (double)

短軸の初期値

Rowrowrow (output_control) rectangle2.center.y → (real)HTuple (double)HTuple (double)floatHtuple (double)

中心の行座標 (インデックス)

Columncolumncolumn (output_control) rectangle2.center.x → (real)HTuple (double)HTuple (double)floatHtuple (double)

中心の列座標 (インデックス)

Phiphiphi (output_control) rectangle2.angle.rad → (real)HTuple (double)HTuple (double)floatHtuple (double)

水平軸と長軸の成す角度(ラジアン)

Length1length1length_1 (output_control) rectangle2.hwidth → (real)HTuple (double)HTuple (double)floatHtuple (double)

長軸

Length2length2length_2 (output_control) rectangle2.hheight → (real)HTuple (double)HTuple (double)floatHtuple (double)

短軸

結果🔗

ウインドウが有効であれば、draw_rectangle2_modDrawRectangle2Mod は値 2 (H_MSG_TRUE) を返します。 必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow

後処理の候補

reduce_domainReduceDomain, disp_regionDispRegion, set_coloredSetColored, set_line_widthSetLineWidth, set_drawSetDraw

他の選択候補

draw_rectangle2DrawRectangle2, draw_rectangle1DrawRectangle1, draw_rectangle2DrawRectangle2, draw_regionDrawRegion

関連項目

gen_rectangle2GenRectangle2, draw_circleDrawCircle, draw_ellipseDrawEllipse

モジュール🔗

Foundation