ClassesClassesClassesClasses | | | | Operators

create_drawing_object_textcreate_drawing_object_textCreateDrawingObjectTextcreate_drawing_object_textCreateDrawingObjectTextCreateDrawingObjectText (Operator)

Name

create_drawing_object_textcreate_drawing_object_textCreateDrawingObjectTextcreate_drawing_object_textCreateDrawingObjectTextCreateDrawingObjectText — Create a text object which can be moved interactively.

Signature

create_drawing_object_text( : : Row, Column, String : DrawID)

Herror create_drawing_object_text(const Hlong Row, const Hlong Column, const char* String, Hlong* DrawID)

Herror T_create_drawing_object_text(const Htuple Row, const Htuple Column, const Htuple String, Htuple* DrawID)

Herror create_drawing_object_text(const HTuple& Row, const HTuple& Column, const HTuple& String, Hlong* DrawID)

void HDrawingObject::CreateDrawingObjectText(const HTuple& Row, const HTuple& Column, const HTuple& String)

void CreateDrawingObjectText(const HTuple& Row, const HTuple& Column, const HTuple& String, HTuple* DrawID)

void HDrawingObject::CreateDrawingObjectText(Hlong Row, Hlong Column, const HString& String)

void HDrawingObject::CreateDrawingObjectText(Hlong Row, Hlong Column, const char* String)

void HOperatorSetX.CreateDrawingObjectText(
[in] VARIANT Row, [in] VARIANT Column, [in] VARIANT String, [out] VARIANT* DrawID)

void HDrawingObjectX.CreateDrawingObjectText(
[in] Hlong Row, [in] Hlong Column, [in] BSTR String)

static void HOperatorSet.CreateDrawingObjectText(HTuple row, HTuple column, HTuple stringVal, out HTuple drawID)

void HDrawingObject.CreateDrawingObjectText(int row, int column, string stringVal)

Description

create_drawing_object_textcreate_drawing_object_textCreateDrawingObjectTextcreate_drawing_object_textCreateDrawingObjectTextCreateDrawingObjectText creates a text object which can be moved interactively across a HALCON window. The coordinates RowRowRowRowRowrow and ColumnColumnColumnColumnColumncolumn define the position of the text.

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 text 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. The text will be displayed with the current font settings of the HALCON window by default. However, the font setting can be adjusted with set_drawing_object_paramsset_drawing_object_paramsSetDrawingObjectParamsset_drawing_object_paramsSetDrawingObjectParamsSetDrawingObjectParams. Once attached, the text can be moved by the user through interaction with the window.

Note that since internal structures are allocated during create_drawing_object_textcreate_drawing_object_textCreateDrawingObjectTextcreate_drawing_object_textCreateDrawingObjectTextCreateDrawingObjectText 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)  point.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row coordinate of the text position.

Default value: 12

ColumnColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column coordinate of the text position.

Default value: 12

StringStringStringStringStringstringVal (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Character string to be displayed.

Default value: 'Text' "Text" "Text" "Text" "Text" "Text"

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_textcreate_drawing_object_textCreateDrawingObjectTextcreate_drawing_object_textCreateDrawingObjectTextCreateDrawingObjectText returns the value 2 (H_MSG_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, set_drawing_object_paramsset_drawing_object_paramsSetDrawingObjectParamsset_drawing_object_paramsSetDrawingObjectParamsSetDrawingObjectParams

Alternatives

write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString

See also

write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString, attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindow

Module

Foundation


ClassesClassesClassesClasses | | | | Operators