Skip to content

create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sectorT_create_drawing_object_ellipse_sector🔗

Short description🔗

create_drawing_object_ellipse_sectorcreate_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSectorCreateDrawingObjectEllipseSectorcreate_drawing_object_ellipse_sectorT_create_drawing_object_ellipse_sector — Create an elliptic sector which can be modified interactively.

Signature🔗

create_drawing_object_ellipse_sector( coordinates.y Row, coordinates.x Column, angle.rad Phi, number Radius1, number Radius2, angle.rad StartAngle, angle.rad EndAngle, out drawing_object DrawID )create_drawing_object_ellipse_sector( : : Row, Column, Phi, Radius1, Radius2, StartAngle, EndAngle : DrawID )void CreateDrawingObjectEllipseSector( const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Radius1, const HTuple& Radius2, const HTuple& StartAngle, const HTuple& EndAngle, HTuple* DrawID )static void HOperatorSet.CreateDrawingObjectEllipseSector( HTuple row, HTuple column, HTuple phi, HTuple radius1, HTuple radius2, HTuple startAngle, HTuple endAngle, out HTuple drawID )def create_drawing_object_ellipse_sector( row: float, column: float, phi: float, radius_1: float, radius_2: float, start_angle: float, end_angle: float ) -> HHandle

Herror T_create_drawing_object_ellipse_sector( const Htuple Row, const Htuple Column, const Htuple Phi, const Htuple Radius1, const Htuple Radius2, const Htuple StartAngle, const Htuple EndAngle, Htuple* DrawID )

void HDrawingObject::CreateDrawingObjectEllipseSector( double Row, double Column, double Phi, double Radius1, double Radius2, double StartAngle, double EndAngle )

void HDrawingObject.CreateDrawingObjectEllipseSector( double row, double column, double phi, double radius1, double radius2, double startAngle, double endAngle )

Description🔗

create_drawing_object_ellipse_sectorCreateDrawingObjectEllipseSector creates an ellipse sector which can be modified interactively in a HALCON window by the user. The ellipse sector is defined by the coordinates Rowrowrow and Columncolumncolumn of its center, the lengths of its respective half axis, Radius1radius1radius_1 and Radius2radius2radius_2, the start and end angles of the arc, StartAnglestartAnglestart_angle and EndAngleendAngleend_angle, and its orientation Phiphiphi.

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

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_paramsSetDrawingObjectParams 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_windowAttachDrawingObjectToWindow for further details. Once attached, the ellipse sector is editable by the user through interaction with the window. There are four possible transformations for an ellipse sector object: resizing, displacement, rotation, and changing the arc angle. The ellipse sector can be moved in the HALCON window by dragging the center. The orientation and thus the rotation of the ellipse sector can also be modified by dragging on a vertex handle of the first half axis. The size and angles of the ellipse sector can be modified by dragging close to the vertex handles.

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

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🔗

Rowrowrow (input_control) coordinates.y → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

Row index of the center.

Default: 200200

Columncolumncolumn (input_control) coordinates.x → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

Column index of the center.

Default: 200200

Phiphiphi (input_control) angle.rad → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

Orientation of the first half axis in radians.

Default: 00

Radius1radius1radius_1 (input_control) number → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

First half axis.

Default: 100100

Radius2radius2radius_2 (input_control) number → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

Second half axis.

Default: 6060

StartAnglestartAnglestart_angle (input_control) angle.rad → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

Start angle of the arc.

Default: 00

EndAngleendAngleend_angle (input_control) angle.rad → (real)(real)HTuple (double)HTuple (double)floatHtuple (double)

End angle of the arc.

Default: 3.141593.14159

DrawIDdrawIDdraw_id (output_control) drawing_object → (handle)(handle)HTuple (HHandle)HDrawingObject, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the drawing object.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

open_windowOpenWindow

Possible successors

attach_drawing_object_to_windowAttachDrawingObjectToWindow, get_drawing_object_paramsGetDrawingObjectParams, get_drawing_object_iconicGetDrawingObjectIconic

Alternatives

draw_ellipse_modDrawEllipseMod, draw_ellipseDrawEllipse, draw_regionDrawRegion, create_drawing_object_ellipseCreateDrawingObjectEllipse

See also

gen_ellipse_contour_xldGenEllipseContourXld, create_drawing_object_rectangle1CreateDrawingObjectRectangle1, create_drawing_object_rectangle2CreateDrawingObjectRectangle2, create_drawing_object_ellipseCreateDrawingObjectEllipse, create_drawing_object_xldCreateDrawingObjectXld, create_drawing_object_lineCreateDrawingObjectLine, create_drawing_object_circleCreateDrawingObjectCircle

Module🔗

Foundation