ClassesClassesClassesClasses | | | | Operators

create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSector (Operator)

Name

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

Signature

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

Herror create_drawing_object_circle_sector(double Row, double Column, double Radius, double StartAngle, double EndAngle, Hlong* 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)

Herror create_drawing_object_circle_sector(const HTuple& Row, const HTuple& Column, const HTuple& Radius, const HTuple& StartAngle, const HTuple& EndAngle, Hlong* DrawID)

void HDrawingObject::CreateDrawingObjectCircleSector(const HTuple& Row, const HTuple& Column, const HTuple& Radius, const HTuple& StartAngle, const HTuple& EndAngle)

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)

void HOperatorSetX.CreateDrawingObjectCircleSector(
[in] VARIANT Row, [in] VARIANT Column, [in] VARIANT Radius, [in] VARIANT StartAngle, [in] VARIANT EndAngle, [out] VARIANT* DrawID)

void HDrawingObjectX.CreateDrawingObjectCircleSector(
[in] double Row, [in] double Column, [in] double Radius, [in] double StartAngle, [in] 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)

Description

create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSector 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 RowRowRowRowRowrow and ColumnColumnColumnColumnColumncolumn of the center point, the RadiusRadiusRadiusRadiusRadiusradius, and the start and end angle StartAngleStartAngleStartAngleStartAngleStartAnglestartAngle and EndAngleEndAngleEndAngleEndAngleEndAngleendAngle.

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

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_paramsSetDrawingObjectParamsset_drawing_object_paramsSetDrawingObjectParamsSetDrawingObjectParams 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_windowAttachDrawingObjectToWindowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindow 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 RadiusRadiusRadiusRadiusRadiusradius 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_circleDrawCircledraw_circleDrawCircleDrawCircle, this interaction does not block the calling thread.

Note that since internal structures are allocated during create_drawing_object_circle_sectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorcreate_drawing_object_circle_sectorCreateDrawingObjectCircleSectorCreateDrawingObjectCircleSector and the following operators the drawing object should be explicitly freed if it is no longer needed.

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

RowRowRowRowRowrow (input_control)  coordinates.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Row coordinate of the center.

Default value: 100

ColumnColumnColumnColumnColumncolumn (input_control)  coordinates.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Column coordinate of the center.

Default value: 100

RadiusRadiusRadiusRadiusRadiusradius (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Radius of the circle.

Default value: 80

StartAngleStartAngleStartAngleStartAngleStartAnglestartAngle (input_control)  angle.rad HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Start angle of the arc.

Default value: 0

EndAngleEndAngleEndAngleEndAngleEndAngleendAngle (input_control)  angle.rad HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

End angle of the arc.

Default value: 3.14159

DrawIDDrawIDDrawIDDrawIDDrawIDdrawID (output_control)  drawing_object HDrawingObject, HTupleHTupleHDrawingObject, HTupleHDrawingObjectX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the drawing object.

Result

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

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Possible Successors

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindow, get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParams, get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconic

Alternatives

draw_rectangle1_moddraw_rectangle1_modDrawRectangle1Moddraw_rectangle1_modDrawRectangle1ModDrawRectangle1Mod, draw_rectangle2draw_rectangle2DrawRectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion, create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCirclecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircle, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSector

See also

create_drawing_object_rectangle1create_drawing_object_rectangle1CreateDrawingObjectRectangle1create_drawing_object_rectangle1CreateDrawingObjectRectangle1CreateDrawingObjectRectangle1, create_drawing_object_rectangle2create_drawing_object_rectangle2CreateDrawingObjectRectangle2create_drawing_object_rectangle2CreateDrawingObjectRectangle2CreateDrawingObjectRectangle2, create_drawing_object_ellipsecreate_drawing_object_ellipseCreateDrawingObjectEllipsecreate_drawing_object_ellipseCreateDrawingObjectEllipseCreateDrawingObjectEllipse, create_drawing_object_circlecreate_drawing_object_circleCreateDrawingObjectCirclecreate_drawing_object_circleCreateDrawingObjectCircleCreateDrawingObjectCircle, create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSector, create_drawing_object_xldcreate_drawing_object_xldCreateDrawingObjectXldcreate_drawing_object_xldCreateDrawingObjectXldCreateDrawingObjectXld, create_drawing_object_linecreate_drawing_object_lineCreateDrawingObjectLinecreate_drawing_object_lineCreateDrawingObjectLineCreateDrawingObjectLine

Module

Foundation


ClassesClassesClassesClasses | | | | Operators