Operator Reference

create_drawing_object_circle_sectorT_create_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sector (Operator)

create_drawing_object_circle_sectorT_create_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sector — Create a circle sector which can be modified interactively.

Signature

create_drawing_object_circle_sector( : : Row, Column, Radius, StartAngle, EndAngle : DrawID)

Herror T_create_drawing_object_circle_sector(const Htuple Row, const Htuple Column, const Htuple Radius, const Htuple StartAngle, const Htuple EndAngle, Htuple* DrawID)

void CreateDrawingObjectCircleSector(const HTuple& Row, const HTuple& Column, const HTuple& Radius, const HTuple& StartAngle, const HTuple& EndAngle, HTuple* DrawID)

void HDrawingObject::CreateDrawingObjectCircleSector(double Row, double Column, double Radius, double StartAngle, double EndAngle)

static void HOperatorSet.CreateDrawingObjectCircleSector(HTuple row, HTuple column, HTuple radius, HTuple startAngle, HTuple endAngle, out HTuple drawID)

void HDrawingObject.CreateDrawingObjectCircleSector(double row, double column, double radius, double startAngle, double endAngle)

def create_drawing_object_circle_sector(row: float, column: float, radius: float, start_angle: float, end_angle: float) -> HHandle

Description

create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sector creates a circle sector region which can be modified interactively in a HALCON window by the user. The circle sector is defined by the coordinates RowRowRowrowrow and ColumnColumnColumncolumncolumn of the center point, the RadiusRadiusRadiusradiusradius, and the start and end angle StartAngleStartAngleStartAnglestartAnglestart_angle and EndAngleEndAngleEndAngleendAngleend_angle.

These parameters can be queried any time with get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParamsget_drawing_object_params, as well as its corresponding HALCON object with get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconicget_drawing_object_iconic.

In addition to those parameters, every drawing object has a number of parameters which determine the appearance of the object in the HALCON window. See set_drawing_object_paramsset_drawing_object_paramsSetDrawingObjectParamsSetDrawingObjectParamsset_drawing_object_params for details on the number and meaning of those parameters.

In order to enable the interactive modification with the drawing object, the object must be attached to an existing window. See attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowattach_drawing_object_to_window for further details. Once attached, the circle is editable by the user through interaction with the window. There are three possible transformations for a circle sector object: resizing, displacement and changing the arc angle. The RadiusRadiusRadiusradiusradius of the circle can be modified by dragging the circular arc. By clicking on the center, the circle sector can be moved across the HALCON window. The angle arc can be modified by dragging the handles of the circle sector.

In contrast to the operator draw_circledraw_circleDrawCircleDrawCircledraw_circle, this interaction does not block the calling 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.

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

RowRowRowrowrow (input_control)  coordinates.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Row coordinate of the center.

Default: 100

ColumnColumnColumncolumncolumn (input_control)  coordinates.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Column coordinate of the center.

Default: 100

RadiusRadiusRadiusradiusradius (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Radius of the circle.

Default: 80

StartAngleStartAngleStartAnglestartAnglestart_angle (input_control)  angle.rad HTuplefloatHTupleHtuple (real) (double) (double) (double)

Start angle of the arc.

Default: 0

EndAngleEndAngleEndAngleendAngleend_angle (input_control)  angle.rad HTuplefloatHTupleHtuple (real) (double) (double) (double)

End angle of the arc.

Default: 3.14159

DrawIDDrawIDDrawIDdrawIDdraw_id (output_control)  drawing_object HDrawingObject, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the drawing object.

Result

If the parameter values are correct the operator create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sector returns the value 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowopen_window

Possible Successors

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowattach_drawing_object_to_window, get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParamsget_drawing_object_params, get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconicget_drawing_object_iconic

Alternatives

draw_rectangle1_moddraw_rectangle1_modDrawRectangle1ModDrawRectangle1Moddraw_rectangle1_mod, draw_rectangle2draw_rectangle2DrawRectangle2DrawRectangle2draw_rectangle2, draw_regiondraw_regionDrawRegionDrawRegiondraw_region, create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCirclecreate_drawing_object_circle, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sector

See also

create_drawing_object_rectangle1create_drawing_object_rectangle1CreateDrawingObjectRectangle1CreateDrawingObjectRectangle1create_drawing_object_rectangle1, create_drawing_object_rectangle2create_drawing_object_rectangle2CreateDrawingObjectRectangle2CreateDrawingObjectRectangle2create_drawing_object_rectangle2, create_drawing_object_ellipsecreate_drawing_object_ellipseCreateDrawingObjectEllipseCreateDrawingObjectEllipsecreate_drawing_object_ellipse, create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCirclecreate_drawing_object_circle, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sector, create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXldcreate_drawing_object_xld, create_drawing_object_linecreate_drawing_object_lineCreateDrawingObjectLineCreateDrawingObjectLinecreate_drawing_object_line

Module

Foundation