Skip to content

draw_point_modDrawPointModDrawPointModdraw_point_modT_draw_point_modπŸ”—

Short descriptionπŸ”—

draw_point_modDrawPointModDrawPointModdraw_point_modT_draw_point_mod β€” Draw a point.

SignatureπŸ”—

draw_point_mod( window WindowHandle, point.y RowIn, point.x ColumnIn, out point.y Row, out point.x Column )void DrawPointMod( const HTuple& WindowHandle, const HTuple& RowIn, const HTuple& ColumnIn, HTuple* Row, HTuple* Column )static void HOperatorSet.DrawPointMod( HTuple windowHandle, HTuple rowIn, HTuple columnIn, out HTuple row, out HTuple column )def draw_point_mod( window_handle: HHandle, row_in: float, column_in: float ) -> Tuple[float, float]

Herror T_draw_point_mod( const Htuple WindowHandle, const Htuple RowIn, const Htuple ColumnIn, Htuple* Row, Htuple* Column )

void HWindow::DrawPointMod( double RowIn, double ColumnIn, double* Row, double* Column ) const

void HWindow.DrawPointMod( double rowIn, double columnIn, out double row, out double column )

DescriptionπŸ”—

draw_point_modDrawPointMod returns the parameter for a point, which has been created interactively by the user in the window.

To create a point are expected the coordinates RowInrowInrow_in and ColumnIncolumnIncolumn_in. While keeping the button pressed you may β€œdrag” the point in any direction. Pressing the right mouse button terminates the procedure.

After terminating the procedure the point is not visible in the window any longer.

AttentionπŸ”—

If used in a buffer window, mouse events have to be supplied by the application, while the draw operator must be run in another thread.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

RowInrowInrow_in (input_control) point.y β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the point.

ColumnIncolumnIncolumn_in (input_control) point.x β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the point.

Rowrowrow (output_control) point.y β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the point.

Columncolumncolumn (output_control) point.x β†’ (real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the point.

ExampleπŸ”—

(HDevelop)

draw_point_mod (WindowHandle, 100, 100, Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)
(C)
draw_point_mod (WindowHandle, 100, 100, &Row,&Column)\;
gen_cross_contour_xld (&Cross, Row, Column, 6.0, 0.0)\;

ResultπŸ”—

draw_point_modDrawPointMod returns 2 (H_MSG_TRUE) if the window is valid. If necessary, an exception is raised.

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

open_windowOpenWindow

Possible successors

reduce_domainReduceDomain, disp_lineDispLine, set_coloredSetColored, set_line_widthSetLineWidth, set_drawSetDraw

See also

draw_pointDrawPoint, draw_circleDrawCircle, draw_ellipseDrawEllipse

ModuleπŸ”—

Foundation