Operator Reference

draw_point_modT_draw_point_modDrawPointModDrawPointModdraw_point_mod (Operator)

draw_point_modT_draw_point_modDrawPointModDrawPointModdraw_point_mod — Draw a point.

Signature

draw_point_mod( : : WindowHandle, RowIn, ColumnIn : Row, Column)

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

void DrawPointMod(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

static void HOperatorSet.DrawPointMod(HTuple windowHandle, HTuple rowIn, HTuple columnIn, out HTuple row, out HTuple column)

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

def draw_point_mod(window_handle: HHandle, row_in: float, column_in: float) -> Tuple[float, float]

Description

draw_point_moddraw_point_modDrawPointModDrawPointModdraw_point_mod 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 RowInRowInRowInrowInrow_in and ColumnInColumnInColumnIncolumnIncolumn_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

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

WindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

RowInRowInRowInrowInrow_in (input_control)  point.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Row index of the point.

ColumnInColumnInColumnIncolumnIncolumn_in (input_control)  point.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Column index of the point.

RowRowRowrowrow (output_control)  point.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Row index of the point.

ColumnColumnColumncolumncolumn (output_control)  point.x HTuplefloatHTupleHtuple (real) (double) (double) (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)

Example (C)

draw_point_mod (WindowHandle, 100, 100, &Row,&Column);
gen_cross_contour_xld (&Cross, Row, Column, 6.0, 0.0);

Example (HDevelop)

draw_point_mod (WindowHandle, 100, 100, Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)

Example (HDevelop)

draw_point_mod (WindowHandle, 100, 100, Row,Column)
gen_cross_contour_xld (Cross, Row, Column, 6, 0)

Result

draw_point_moddraw_point_modDrawPointModDrawPointModdraw_point_mod returns 2 ( H_MSG_TRUE) , if the window is valid and the needed drawing mode is available. If necessary, an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowopen_window

Possible Successors

reduce_domainreduce_domainReduceDomainReduceDomainreduce_domain, disp_linedisp_lineDispLineDispLinedisp_line, set_coloredset_coloredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width, set_drawset_drawSetDrawSetDrawset_draw, set_insertset_insertSetInsertSetInsertset_insert

See also

draw_pointdraw_pointDrawPointDrawPointdraw_point, draw_circledraw_circleDrawCircleDrawCircledraw_circle, draw_ellipsedraw_ellipseDrawEllipseDrawEllipsedraw_ellipse, set_insertset_insertSetInsertSetInsertset_insert

Module

Foundation