HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Drawing ClassesClassesClasses | | | Operators

draw_point_moddraw_point_moddraw_point_modDrawPointModDrawPointMod (Operator)

Name

draw_point_moddraw_point_moddraw_point_modDrawPointModDrawPointMod — Draw a point.

Signature

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

Herror draw_point_mod(const Hlong WindowHandle, double RowIn, double ColumnIn, double* Row, double* Column)

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

Herror draw_point_mod(const HTuple& WindowHandle, const HTuple& RowIn, const HTuple& ColumnIn, double* Row, double* Column)

double HWindow::DrawPointMod(const HTuple& RowIn, const HTuple& ColumnIn, HTuple* Column) const

void HOperatorSetX.DrawPointMod(
[in] VARIANT WindowHandle, [in] VARIANT RowIn, [in] VARIANT ColumnIn, [out] VARIANT* Row, [out] VARIANT* Column)

double HWindowX.DrawPointMod(
[in] double RowIn, [in] double ColumnIn, [out] double* Column)

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)

Description

draw_point_moddraw_point_moddraw_point_modDrawPointModDrawPointMod 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 RowInRowInRowInRowInrowIn and ColumnInColumnInColumnInColumnIncolumnIn. While keeping the button pressed you may “drag” the point in any direction. Pressing the right mousebutton terminates the procedure.

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

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window identifier.

RowInRowInRowInRowInrowIn (input_control)  point.y HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Row index of the point.

ColumnInColumnInColumnInColumnIncolumnIn (input_control)  point.x HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Column index of the point.

RowRowRowRowrow (output_control)  point.y HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Row index of the point.

ColumnColumnColumnColumncolumn (output_control)  point.x HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)

Column index of the point.

Example (HDevelop)

get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Width-1,Height-1)
read_image(Image,'monkey')
disp_image(Image,WindowHandle)
draw_point_mod(WindowHandle,Height/2,Width/2,Row1,Column1)
disp_line(WindowHandle,Row1-2,Column1,Row1+2,Column1)
disp_line(WindowHandle,Row1,Column1-2,Row1,Column1+2)
disp_image(Image,WindowHandle)

Example (C)

get_system("width",Width) ;
get_system("height",Height) ;
set_part(WindowHandle,0,0,Width-1,Height-1) ;
read_image(&Image,"monkey") ;
disp_image(Image,WindowHandle) ;
draw_point_mod(WindowHandle,Height/2,Width/2,&Row1,&Column1) ;
disp_line(WindowHandle,Row1-2,Column1,Row1+2,Column1) ;
disp_line(WindowHandle,Row1,Column1-2,Row1,Column1+2) ;
disp_image(Image,WindowHandle) ;

Example (HDevelop)

get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Width-1,Height-1)
read_image(Image,'monkey')
disp_image(Image,WindowHandle)
draw_point_mod(WindowHandle,Height/2,Width/2,Row1,Column1)
disp_line(WindowHandle,Row1-2,Column1,Row1+2,Column1)
disp_line(WindowHandle,Row1,Column1-2,Row1,Column1+2)
disp_image(Image,WindowHandle)

Example (HDevelop)

get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Width-1,Height-1)
read_image(Image,'monkey')
disp_image(Image,WindowHandle)
draw_point_mod(WindowHandle,Height/2,Width/2,Row1,Column1)
disp_line(WindowHandle,Row1-2,Column1,Row1+2,Column1)
disp_line(WindowHandle,Row1,Column1-2,Row1,Column1+2)
disp_image(Image,WindowHandle)

Example (HDevelop)

get_system('width',Width)
get_system('height',Height)
set_part(WindowHandle,0,0,Width-1,Height-1)
read_image(Image,'monkey')
disp_image(Image,WindowHandle)
draw_point_mod(WindowHandle,Height/2,Width/2,Row1,Column1)
disp_line(WindowHandle,Row1-2,Column1,Row1+2,Column1)
disp_line(WindowHandle,Row1,Column1-2,Row1,Column1+2)
disp_image(Image,WindowHandle)

Result

draw_point_moddraw_point_moddraw_point_modDrawPointModDrawPointMod 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_windowopen_windowOpenWindowOpenWindow

Possible Successors

reduce_domainreduce_domainreduce_domainReduceDomainReduceDomain, disp_linedisp_linedisp_lineDispLineDispLine, set_coloredset_coloredset_coloredSetColoredSetColored, set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawset_drawSetDrawSetDraw, set_insertset_insertset_insertSetInsertSetInsert

See also

draw_pointdraw_pointdraw_pointDrawPointDrawPoint, draw_circledraw_circledraw_circleDrawCircleDrawCircle, draw_ellipsedraw_ellipsedraw_ellipseDrawEllipseDrawEllipse, set_insertset_insertset_insertSetInsertSetInsert

Module

Foundation


Table of Contents / Graphics / Drawing ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH