Skip to main content

MgraInquireList

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Inquire information about a 2D graphics list or a graphic contained within the 2D graphics list.

Syntax

AIL_INT MgraInquireList(
AIL_ID GraListId, //in
AIL_INT LabelOrIndex, //in
AIL_INT SubIndex, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function inquires information about a specified 2D graphics list, or a graphic contained within the 2D graphics list.

Note: Unlike most other functions that modify an Aurora Imaging Library object, you can call this function concurrently from multiple threads on the same Aurora Imaging Library 2D graphics list (GraListId) without using an M_MUTEX object, as long as all the other parameters of the concurrent calls do not also share data.

Parameters

GraListId (in, AIL_ID)

Specifies the identifier of the 2D graphics list about which to inquire information. The 2D graphics list must have been previously allocated on the required system using MgraAllocList.

LabelOrIndex (in, AIL_INT)

Specifies the graphic about which to inquire, or specifies to inquire about the 2D graphics list itself. This parameter should be set to one of the following values:

For specifying the graphic or the 2D graphics list

ValueDescription
M_GRAPHIC_INDEXSpecifies the index of an existing graphic about which to inquire.
M_GRAPHIC_LABELSpecifies the label of an existing graphic about which to inquire.
M_LISTInquires information about the 2D graphics list itself.

SubIndex (in, AIL_INT)

Specifies the index of the sub-element of the graphic about which to inquire. If this information is not required or supported, set this parameter to M_DEFAULT.

For specifying the index of a graphic's sub-element

ValueDescription
M_DEFAULTSpecifies to inquire about the graphic itself (instead of just a sub-element).
0 <= Value <= M_NUMBER_OF_SUB_ELEMENTSSpecifies the index of the sub-element of the graphic about which to inquire. The following table lists all the graphics for which you can inquire information about their individual sub-elements and outlines how sub-indices are assigned for each of these.
Graphics typesIndex of sub-element values
Dots (created using MgraDots).The indices, starting from 0, are assigned to each dot in order of creation.
A single line (created using MgraLine or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_LINE).0 is assigned to the specified start point, and 1 is assigned to the specified end point of the line.
Sets of finite length lines (created using MgraLines with M_LINE_LIST).The indices, starting from 0, are assigned to the specified start point and end point of each line, in order of creation. For example, the start point of the first line has an index of 0 and the end point has an index of 1, and the start point of the second line has an index of 2 and the end point has an index of 3.
Sets of infinite lines (created using MgraLines with M_INFINITE_LINES).The indices, starting from 0, are assigned to the first and second specified point of each line, in order of creation. For example, the first specified point of the first line has an index of 0 and its second specified point has an index of 1, and the first specified point of the second line has an index of 2 and its second specified point has an index of 3.
A polygon (created using MgraLines with M_POLYGON or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_POLYGON).The indices, starting from 0, are assigned to each polygon vertex in order of creation.
A polyline (created using MgraLines with M_POLYLINE or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_POLYLINE).The indices, starting from 0, are assigned to each polyline point in order of creation.

InquireType (in, AIL_INT64)

Specifies the setting to inquire.

UserVarPtr *(out, void)

Specifies the address in which to write the requested information. Since the MgraInquireList function also returns the requested information, you can set this parameter to M_NULL.

Parameter Associations

For inquiring about a setting of a 2D graphics list itself

To inquire about a setting of a 2D graphics list, the InquireType parameter should be set to one of the following values. In this case, you must set the LabelOrIndex parameter to M_LIST and the SubIndex parameter to M_DEFAULT.


M_ANGLE_SNAPPING_VALUE

Inquires the value to use as a multiple when rotating the graphic. This value only applies when using M_MODE_ROTATE with M_ANGLE_SNAPPING.

ValueDescription
M_DEFAULT
1.0 <= Value <= 180.0 (default)Specifies the value to use as a multiple, in degrees.

M_EASY_SELECTION

Inquires whether Aurora Imaging Library allows for the easy selection of graphics on the display.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies that Aurora Imaging Library does not allow for the easy selection of graphics on the display.
M_ENABLESpecifies that Aurora Imaging Library allows for the easy selection of graphics on the display.

M_INTERACTIVE_ANNOTATIONS_COLOR

Inquires the color of the selection box and handles when in interactive mode.

ValueDescription
M_RGB888Specifies an RGB value when drawing in an 8-bit, 3-band buffer.
M_COLOR_BLACKSpecifies the color black.
M_COLOR_BLUESpecifies the color blue.
M_COLOR_BRIGHT_GRAYSpecifies the color bright gray.
M_COLOR_CYANSpecifies the color cyan.
M_COLOR_DARK_BLUESpecifies the color dark blue.
M_COLOR_DARK_CYANSpecifies the color dark cyan.
M_COLOR_DARK_GREENSpecifies the color dark green.
M_COLOR_DARK_MAGENTASpecifies the color dark magenta.
M_COLOR_DARK_REDSpecifies the color dark red.
M_COLOR_DARK_YELLOWSpecifies the color dark yellow.
M_COLOR_GRAYSpecifies the color gray.
M_COLOR_GREENSpecifies the color green.
M_COLOR_LIGHT_BLUESpecifies the color light blue.
M_COLOR_LIGHT_GRAYSpecifies the color light gray.
M_COLOR_LIGHT_GREENSpecifies the color light green.
M_COLOR_LIGHT_WHITESpecifies the color light white.
M_COLOR_MAGENTASpecifies the color magenta.
M_COLOR_REDSpecifies the color red.
M_COLOR_WHITESpecifies the color white.
M_COLOR_YELLOWSpecifies the color yellow.
ValueSpecifies a grayscale value.
Byte-encoded RGB valueSpecifies an encoded RGB value. To verify if the value is a byte-encoded RGB value, use theM_IS_RGB888 macro. To retrieve the R, G, and B bands, use the M_RGB888_R, M_RGB888_G, and M_RGB888_B macros.

M_INTERACTIVE_GRAPHIC_STATE

Inquires the current state of interactivity of the 2D graphics list.

ValueDescription
(see M_INTERACTIVE_GRAPHIC_STATE)

M_LAST_LABEL

Inquires the label that was automatically assigned to the last graphic added to the list in the current thread. This label value will never change, even if the order of the graphics in the list changes. After adding a graphic to the 2D graphics list, you should use this inquire type to establish the label assigned to it. This label can be used as a means of identifying the graphic independently from its index, which might change if a graphic is deleted from the list. > Note: You cannot retrieve the label value of the last added graphic if it has been deleted or moved to another 2D graphics list. If a graphic was added to the list from a different thread, the value returned will be that of the last graphic added to the list from the current thread; it will not return the label value of graphics added from a separate thread. This can be problematic when using MgraInteractive to add graphics to the list interactively, since the graphics might be added from a separate thread. In this case, use MgraGetHookInfo with M_GRAPHIC_LABEL_VALUE. See Creating and modifying graphics interactively for an example of how to inquire the label of a graphic added interactively.

ValueDescription
M_NO_LABELSpecifies the last-added graphic is no longer in the list or no graphics have been added to the list.
ValueSpecifies the label of the last-added graphic in the list.

M_MODE_RESIZE

Inquires the interactive behavior when resizing the graphic using its selection box.

ValueDescription
M_DEFAULT
M_FIXED_CENTERSpecifies that all sides of the selection box move symmetrically, and the center does not move, when resizing the graphic.
M_FIXED_CORNER (default)Specifies that the center moves, and the opposite corner does not move, when resizing the graphic.

M_MODE_RESIZE_ALT

Inquires the interactive behavior when resizing the graphic using its selection box and pressing the Alt key.

ValueDescription
M_DEFAULT
M_DISABLESpecifies that pressing the Alt key does not affect how to resize the graphic.
M_FIXED_ASPECT_RATIOSpecifies that the aspect ratio of the graphic remains constant, when resizing the graphic while pressing the Alt key.
M_FIXED_CENTERSpecifies that all sides of the selection box move symmetrically, and the center does not move, when resizing the graphic while pressing the Alt key.
M_FIXED_CORNERSpecifies that the center moves, and the opposite corner does not move, when resizing the graphic while pressing the Alt key.
M_NO_CONSTRAINTSpecifies that the aspect ratio of the graphic can change, when resizing it while pressing the Alt key.
M_SQUARE_ASPECT_RATIO (default)Specifies that the aspect ratio of the graphic will be 1:1 (square), when resizing it while pressing the Alt key.

M_MODE_RESIZE_CTRL

Inquires the interactive behavior when resizing the graphic using its selection box and pressing the Ctrl key.

ValueDescription
M_DEFAULT
M_DISABLESpecifies that pressing the Ctrl key does not affect how to resize the graphic.
M_FIXED_ASPECT_RATIOSpecifies that the aspect ratio of the graphic remains constant, when resizing the graphic while pressing the Ctrl key.
M_FIXED_CENTER (default)Specifies that all sides of the selection box move symmetrically, and the center does not move, when resizing the graphic while pressing the Ctrl key.
M_FIXED_CORNERSpecifies that the center moves, and the opposite corner does not move, when resizing the graphic while pressing the Ctrl key.
M_NO_CONSTRAINTSpecifies that the aspect ratio of the graphic can change, when resizing it while pressing the Ctrl key.
M_SQUARE_ASPECT_RATIOSpecifies that the aspect ratio of the graphic will be 1:1 (square), when resizing it while pressing the Ctrl key.

M_MODE_RESIZE_SECONDARY_DIMENSION

Inquires the interactive behavior when changing the graphic's secondary dimension during its creation.

ValueDescription
M_DEFAULT
M_ONE_SIDED (default)Specifies to establish the graphic's secondary dimension on one side of a previously established part.
M_SYMMETRICSpecifies to establish the graphic's secondary dimension symmetrically on both sides of a previously established part.

M_MODE_RESIZE_SECONDARY_DIMENSION_ALT

Inquires the interactive behavior when changing the graphic's secondary dimension during its creation, and pressing the Alt key.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies that pressing the Alt key does not affect how to establish the graphic's secondary dimension when defining it interactively on the display.
M_ONE_SIDEDSpecifies to establish the graphic's secondary dimension on one side of a previously established part, while pressing the Alt key.
M_SYMMETRICSpecifies to establish the graphic's secondary dimension symmetrically on both sides of a previously established part, while pressing the Alt key.

M_MODE_RESIZE_SECONDARY_DIMENSION_CTRL

Inquires the interactive behavior when changing the graphic's secondary dimension during its creation, and pressing the Ctrl key.

ValueDescription
M_DEFAULT
M_DISABLESpecifies that pressing the Ctrl key does not affect how to establish the graphic's secondary dimension when defining it interactively on the display.
M_ONE_SIDEDSpecifies to establish the graphic's secondary dimension on one side of a previously established part, while pressing the Ctrl key.
M_SYMMETRIC (default)Specifies to establish the graphic's secondary dimension symmetrically on both sides of a previously established part, while pressing the Ctrl key.

M_MODE_RESIZE_SECONDARY_DIMENSION_SHIFT

Inquires the interactive behavior when changing the graphic's secondary dimension during its creation, and pressing the Shift key.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies that pressing the Shift key does not affect how to establish the graphic's secondary dimension when defining it interactively on the display.
M_ONE_SIDEDSpecifies to establish the graphic's secondary dimension on one side of a previously established part, while pressing the Shift key.
M_SYMMETRICSpecifies to establish the graphic's secondary dimension symmetrically on both sides of a previously established part, while pressing the Shift key.

M_MODE_RESIZE_SHIFT

Inquires the interactive behavior when resizing the graphic using its selection box and pressing the Shift key.

ValueDescription
M_DEFAULT
M_DISABLESpecifies that pressing the Shift key does not affect how to resize the graphic.
M_FIXED_ASPECT_RATIO (default)Specifies that the aspect ratio of the graphic remains constant, when resizing the graphic while pressing the Shift key.
M_FIXED_CENTERSpecifies that all sides of the selection box move symmetrically, and the center does not move, when resizing the graphic while pressing the Shift key.
M_FIXED_CORNERSpecifies that the center moves, and the opposite corner does not move, when resizing the graphic while pressing the Shift key.
M_NO_CONSTRAINTSpecifies that the aspect ratio of the graphic can change, when resizing it while pressing the Shift key.
M_SQUARE_ASPECT_RATIOSpecifies that the aspect ratio of the graphic will be 1:1 (square), when resizing it while pressing the Shift key.

M_MODE_ROTATE

Inquires the interactive behavior when rotating the graphic using its selection box.

ValueDescription
M_DEFAULT
M_ANGLE_SNAPPINGSpecifies to rotate the graphic by snapping it to an angle that is a multiple of the value set by M_ANGLE_SNAPPING_VALUE.
M_NO_CONSTRAINT (default)Specifies to rotate the graphic freely.

M_MODE_ROTATE_ALT

Inquires the interactive behavior when rotating the graphic using its selection box and pressing the Alt key.

ValueDescription
M_DEFAULT
M_ANGLE_SNAPPING (default)Specifies to rotate the graphic by snapping it to an angle that is a multiple of the value set by M_ANGLE_SNAPPING_VALUE, when rotating it while pressing the Alt key.
M_DISABLESpecifies that pressing the Alt key does not affect how to rotate the graphic.
M_NO_CONSTRAINTSpecifies to rotate the graphic freely, when rotating it while pressing the Alt key.

M_MODE_ROTATE_CTRL

Inquires the interactive behavior when rotating the graphic using its selection box and pressing the Ctrl key.

ValueDescription
M_DEFAULT
M_ANGLE_SNAPPINGSpecifies to rotate the graphic by snapping it to an angle that is a multiple of the value set by M_ANGLE_SNAPPING_VALUE, when rotating it while pressing the Ctrl key.
M_DISABLE (default)Specifies that pressing the Ctrl key does not affect how to rotate the graphic.
M_NO_CONSTRAINTSpecifies to rotate the graphic freely, when rotating it while pressing the Ctrl key.

M_MODE_ROTATE_SHIFT

Inquires the interactive behavior when rotating the graphic using its selection box and pressing the Shift key.

ValueDescription
M_DEFAULT
M_ANGLE_SNAPPINGSpecifies to rotate the graphic by snapping it to an angle that is a multiple of the value set by M_ANGLE_SNAPPING_VALUE, when rotating it while pressing the Shift key.
M_DISABLE (default)Specifies that pressing the Shift key does not affect how to rotate the graphic.
M_NO_CONSTRAINTSpecifies to rotate the graphic freely, when rotating it while pressing the Shift key.

M_MODE_TRANSLATE

Inquires the interactive behavior when moving (translating) the graphic.

ValueDescription
M_DEFAULT
M_AXIS_ALIGNEDSpecifies to move the graphic along the X- and Y-axes.
M_NO_CONSTRAINT (default)Specifies to move the graphic freely.

M_MODE_TRANSLATE_ALT

Inquires the interactive behavior when moving (translating) the graphic and pressing the Alt key.

ValueDescription
M_DEFAULT
M_AXIS_ALIGNEDSpecifies to move the graphic along the X- and Y-axes, when moving it while pressing the Alt key.
M_DISABLE (default)Specifies that pressing the Alt key does not affect how to move the graphic.
M_NO_CONSTRAINTSpecifies to move the graphic freely, when moving it while pressing the Alt key.

M_MODE_TRANSLATE_CTRL

Inquires the interactive behavior when moving (translating) the graphic and pressing the Ctrl key.

ValueDescription
M_DEFAULT
M_AXIS_ALIGNEDSpecifies to move the graphic along the X- and Y-axes, when moving it while pressing the Ctrl key.
M_DISABLE (default)Specifies that pressing the Ctrl key does not affect how to move the graphic.
M_NO_CONSTRAINTSpecifies to move the graphic freely, when moving it while pressing the Ctrl key.

M_MODE_TRANSLATE_SHIFT

Inquires the interactive behavior when moving (translating) the graphic and pressing the Shift key.

ValueDescription
M_DEFAULT
M_AXIS_ALIGNED (default)Specifies to move the graphic along the X- and Y-axes, when moving it while pressing the Shift key.
M_DISABLESpecifies that pressing the Shift key does not affect how to move the graphic.
M_NO_CONSTRAINTSpecifies to move the graphic freely, when moving it while pressing the Shift key.

M_MULTIPLE_SELECTION

Inquires whether interactive multiple selection is permitted.

ValueDescription
M_DISABLESpecifies that interactive multiple selection is not permitted.
M_ENABLE (default)Specifies that interactive multiple selection is permitted.

M_MULTIPLE_SELECTION_KEY

Inquires the keyboard key that you can press to select multiple graphics with your mouse on the display.

ValueDescription
M_DEFAULT
M_KEY_ALTSpecifies that you can press the Alt key to select (or deselect) multiple graphics.
M_KEY_CTRL (default)Specifies that you can press the Ctrl key to select (or deselect) multiple graphics.
M_KEY_SHIFTSpecifies that you can press the Shift key to select (or deselect) multiple graphics.

M_NUMBER_OF_GRAPHICS

Inquires the number of graphics in the list.

ValueDescription
Value >= 0Specifies the number of graphics.

M_OWNER_SYSTEM

Inquires the identifier of the system on which the 2D graphics list was allocated.

ValueDescription
M_DEFAULT_HOSTSpecifies the default Host system of the current Aurora Imaging Library application.
System identifierSpecifies a valid system identifier, previously allocated using MsysAlloc.

M_OWNER_SYSTEM_TYPE

Inquires the type of system on which the 2D graphics list was allocated.

ValueDescription
M_SYSTEM_CLARITY_UHD_TYPESpecifies an Aurora Imaging Library Clarity UHD system.
M_SYSTEM_CONCORD_POE_TYPESpecifies an Aurora Imaging Library Concord POE system.
M_SYSTEM_GENTL_TYPESpecifies an Aurora Imaging Library GenTL system.
M_SYSTEM_GEVIQ_TYPESpecifies an Aurora Imaging Library GevIQ system.
M_SYSTEM_GIGE_VISION_TYPESpecifies an Aurora Imaging Library GigE Vision system.
M_SYSTEM_HOST_TYPESpecifies the Host.
M_SYSTEM_INDIO_TYPESpecifies an Aurora Imaging Library Indio system.
M_SYSTEM_IRIS_GTX_TYPESpecifies an Aurora Imaging Library Iris GTX system.
M_SYSTEM_RADIENTEVCL_TYPESpecifies an Aurora Imaging Library Radient eV-CL system.
M_SYSTEM_RAPIXOCL_TYPESpecifies an Aurora Imaging Library Rapixo Pro CL system.
M_SYSTEM_RAPIXOCOF_TYPESpecifies an Aurora Imaging Library Rapixo CoF system.
M_SYSTEM_RAPIXOCXP_TYPESpecifies an Aurora Imaging Library Rapixo CXP system.
M_SYSTEM_USB3_VISION_TYPESpecifies an Aurora Imaging Library USB3 Vision system.
M_SYSTEM_V4L2_TYPESpecifies an Aurora Imaging Library Video4Linux2 system.

M_SELECTED_COLOR

Inquires the color of the selected graphics in interactive mode.

ValueDescription
M_RGB888Specifies an RGB value when drawing in an 8-bit, 3-band buffer.
M_COLOR_BLACKSpecifies the color black.
M_COLOR_BLUESpecifies the color blue.
M_COLOR_BRIGHT_GRAYSpecifies the color bright gray.
M_COLOR_CYANSpecifies the color cyan.
M_COLOR_DARK_BLUESpecifies the color dark blue.
M_COLOR_DARK_CYANSpecifies the color dark cyan.
M_COLOR_DARK_GREENSpecifies the color dark green.
M_COLOR_DARK_MAGENTASpecifies the color dark magenta.
M_COLOR_DARK_REDSpecifies the color dark red.
M_COLOR_DARK_YELLOWSpecifies the color dark yellow.
M_COLOR_GRAYSpecifies the color gray.
M_COLOR_GREENSpecifies the color green.
M_COLOR_LIGHT_BLUESpecifies the color light blue.
M_COLOR_LIGHT_GRAYSpecifies the color light gray.
M_COLOR_LIGHT_GREENSpecifies the color light green.
M_COLOR_LIGHT_WHITESpecifies the color light white.
M_COLOR_MAGENTASpecifies the color magenta.
M_COLOR_REDSpecifies the color red.
M_COLOR_WHITESpecifies the color white.
M_COLOR_YELLOWSpecifies the color yellow.
ValueSpecifies a grayscale value.
Byte-encoded RGB valueSpecifies an encoded RGB value. To verify if the value is a byte-encoded RGB value, use theM_IS_RGB888 macro. To retrieve the R, G, and B bands, use the M_RGB888_R, M_RGB888_G, and M_RGB888_B macros.

M_SELECTION_RADIUS

Inquires the size of the selection-radius when in interactive mode.

ValueDescription
Value >= 1.0 (default)Specifies the size of the selection-radius, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

Combination Constants — For inquiring the aspect ratio when resizing the graphic

Optional.

Usage: You can add one of the following values to the above-mentioned values to get the aspect ratio used when resizing the graphic.

The following values will not modify the graphic's aspect ratio if it is set to 1 using MgraControlList with M_CONSTRAIN_ASPECT_RATIO.

ValueDescription
M_FIXED_ASPECT_RATIOSpecifies that the aspect ratio of the graphic remains constant when resizing it.
M_NO_CONSTRAINT (default)Specifies that the aspect ratio of the graphic can change when resizing it.
M_SQUARE_ASPECT_RATIOSpecifies that the aspect ratio of the graphic will be 1:1 (square) when resizing it.

For inquiring about a general graphic setting

To inquire about a general graphic setting, the InquireType parameter should be set to one of the following values. You can set the LabelOrIndex parameter to the label or index of a graphic in the list, and the SubIndex parameter to M_DEFAULT. Unless otherwise specified, these affect all types of graphics.


M_COLOR

Inquires the foreground color of the graphic.

ValueDescription
M_RGB888Specifies an RGB value when drawing in an 8-bit, 3-band buffer.
M_COLOR_BLACKSpecifies the color black.
M_COLOR_BLUESpecifies the color blue.
M_COLOR_BRIGHT_GRAYSpecifies the color bright gray.
M_COLOR_CYANSpecifies the color cyan.
M_COLOR_DARK_BLUESpecifies the color dark blue.
M_COLOR_DARK_CYANSpecifies the color dark cyan.
M_COLOR_DARK_GREENSpecifies the color dark green.
M_COLOR_DARK_MAGENTASpecifies the color dark magenta.
M_COLOR_DARK_REDSpecifies the color dark red.
M_COLOR_DARK_YELLOWSpecifies the color dark yellow.
M_COLOR_GRAYSpecifies the color gray.
M_COLOR_GREENSpecifies the color green.
M_COLOR_LIGHT_BLUESpecifies the color light blue.
M_COLOR_LIGHT_GRAYSpecifies the color light gray.
M_COLOR_LIGHT_GREENSpecifies the color light green.
M_COLOR_LIGHT_WHITESpecifies the color light white.
M_COLOR_MAGENTASpecifies the color magenta.
M_COLOR_REDSpecifies the color red.
M_COLOR_WHITESpecifies the color white.
M_COLOR_YELLOWSpecifies the color yellow.
ValueSpecifies a grayscale value.
Byte-encoded RGB valueSpecifies an encoded RGB value. To verify if the value is a byte-encoded RGB value, use theM_IS_RGB888 macro. To retrieve the R, G, and B bands, use the M_RGB888_R, M_RGB888_G, and M_RGB888_B macros.

M_DRAW_DIRECTION

Inquires how to draw (render) an arrow pointing in the direction with which a graphic was defined.

ValueDescription
(see M_DRAW_DIRECTION)

M_DRAW_OFFSET_X

Inquires the offset subtracted from the source X-coordinates.

ValueDescription
M_DEFAULT
Value (default)Specifies the X-coordinate offset to subtract, in pixels.

M_DRAW_OFFSET_Y

Inquires the offset subtracted from the source Y-coordinates.

ValueDescription
M_DEFAULT
Value (default)Specifies the Y-coordinate offset to subtract, in pixels.

M_DRAW_ZOOM_X

Inquires the scale factor in the X-direction.

ValueDescription
M_DEFAULT
Value > 0 (default)Specifies the scaling factor in the X-direction.

M_DRAW_ZOOM_Y

Inquires the scale factor in the Y-direction.

ValueDescription
M_DEFAULT
Value > 0 (default)Specifies the scaling factor in the Y-direction.

M_FIXTURE

Inquires the camera calibration information used when rendering (drawing or displaying) a graphic defined in world units, when both source camera calibration information and destination camera calibration information are available to interpret positioning and dimensioning information. If with respect to that of the source camera calibration information (M_USE_SOURCE_FIRST), positions and dimensions are transformed from this relative coordinate system to the absolute coordinate system; then, since it is assumed that there is only one absolute coordinate system, these positions and dimensions are transformed from the absolute coordinate system to the pixel coordinate system, using the destination camera calibration information.

ValueDescription
M_USE_DESTINATION_FIRSTSpecifies that the camera calibration information of the destination is used when rendering the graphic.
M_USE_SOURCE_FIRSTSpecifies that the camera calibration information of the graphic, set with M_GRAPHIC_SOURCE_CALIBRATION, is used when rendering the graphic.

M_GRAPHIC_CONVERSION_MODE

Inquires how the shape of a graphic, defined in world units, is converted to pixels (rendered).

ValueDescription
M_PRESERVE_SHAPE_AVERAGESpecifies to render the graphic so that its shape is preserved even if it means not respecting the camera calibration information exactly.
M_RESHAPE_FOLLOWING_DISTORTIONSpecifies that all points along the contour of the graphic will be converted using the camera calibration information, following any non-linear distortion.
M_RESHAPE_FROM_POINTSSpecifies that only a few key points or features will be converted using the camera calibration information; from these points, the rest of the graphic will be rendered respecting the shape of the graphic.

M_GRAPHIC_SOURCE_CALIBRATION

Inquires the identifier of the camera calibration information used to interpret positioning and dimensioning information of a graphic defined in world units.

ValueDescription
M_NULLSpecifies that no source camera calibration information is available to interpret positioning and dimensioning information of a graphic defined in world units.
Aurora Imaging Library identifierSpecifies the identifier of a camera calibration context, image buffer or processing or analysis module result buffer, whose camera calibration information to use.
Aurora Imaging Library IdentifierSpecifies the identifier of the internal camera calibration context that will be used.

M_GRAPHIC_TYPE

Inquires the type of the graphic.

ValueDescription
M_GRAPHIC_TYPE_ARCSpecifies an arc (created using MgraArc, MgraArcFill, MgraArcAngle, or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_ARC).
M_GRAPHIC_TYPE_COLLECTIONSpecifies a drawing created using the M...Draw function of a processing or analysis module, like MmodDraw or MmeasDraw.
M_GRAPHIC_TYPE_DOTSpecifies a dot (created using MgraDot or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_DOT).
M_GRAPHIC_TYPE_DOTSSpecifies dots (created using MgraDots).
M_GRAPHIC_TYPE_INFINITE_LINESSpecifies infinite lines (created using MgraLines with M_INFINITE_LINES).
M_GRAPHIC_TYPE_LINESpecifies a line (created using MgraLine or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_LINE).
M_GRAPHIC_TYPE_LINESSpecifies lines (created using MgraLines with M_LINE_LIST).
M_GRAPHIC_TYPE_POLYGONSpecifies a polygon (created using MgraLines with M_POLYGON or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_POLYGON).
M_GRAPHIC_TYPE_POLYLINESpecifies a polyline (created using MgraLines with M_POLYLINE or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_POLYLINE).
M_GRAPHIC_TYPE_RECTSpecifies a rectangle (created using MgraRect, MgraRectFill, MgraRectAngle, or user-defined using MgraInteractive set to M_GRAPHIC_TYPE_RECT).
M_GRAPHIC_TYPE_TEXTSpecifies text (created using MgraText).

M_INDEX_VALUE

Inquires the index associated with the graphic. In this case, the LabelOrIndex parameter must be set to the label of the required graphic.

ValueDescription
M_INVALIDSpecifies that the graphic label is invalid. This is returned if the specified label is not associated with a graphic.
Value >= 0Specifies the index value associated with the specified graphic.

M_INPUT_UNITS

Inquires the units with which to interpret the graphic's position and dimensional information, for graphics already added to the 2D graphics list.

ValueDescription
M_DISPLAYSpecifies to interpret the values in pixel units that, unlike M_PIXEL, are not altered when the display is panned or zoomed.
M_PIXELSpecifies to interpret the values in pixel units, with respect to the pixel coordinate system.
M_WORLDSpecifies to interpret the values in world units, with respect to the relative coordinate system.

M_LABEL_VALUE

Inquires the label that was automatically associated with the graphic when it was added to the list. This label value will never change, even if the order of the graphics in the list changes.

ValueDescription
Value > 0Specifies the label value that was automatically associated with the specified graphic.

M_LINE_THICKNESS

Inquires the thickness of the lines and diameter of the dots.

ValueDescription
Value >= 1 (default)Specifies the thickness of the lines and diameter of the dots, in pixels.

M_NUMBER_OF_SUB_ELEMENTS

Inquires the number of sub-elements (position-points) within the specified graphic. Note that in this case the SubIndex parameter must be set to M_DEFAULT.

ValueDescription
Value >= 0Specifies the number of sub-elements. This value can only be greater than zero for the following graphics: dots, line, lines, polylines, infinite lines, and polygons. For example, a line contains two sub-elements (position points).

To inquire 2D graphics context settings that affect the interactivity of a graphic, drawn in a 2D graphics list associated with a display when interactive mode is enabled (MdispControl with M_GRAPHIC_LIST_INTERACTIVE set to M_ENABLE), the InquireType parameter should be set to one of the following values. You can set the LabelOrIndex parameter to the label or index of a specific graphic, and the SubIndex parameter must be set to M_DEFAULT.


M_EDITABLE

Inquires whether a graphic can be edited via user interaction in an interactive display. If a graphic is not visible or if it is not selectable, it is not editable and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be edited via user interaction.
M_ENABLESpecifies that the graphic can be edited via user interaction.

M_GRAPHIC_SELECTED

Inquires whether the graphic is selected.

ValueDescription
M_FALSESpecifies that the graphic is not selected.
M_TRUESpecifies that the graphic is selected.

M_RESIZABLE

Inquires whether a graphic can be resized via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not resizeable and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be resized via user interaction and the resize handles will not be displayed if a graphic is selected.
M_ENABLESpecifies that the graphic can be resized via user interaction by clicking and dragging one of the resize handle.

M_ROTATABLE

Inquires whether a graphic can be rotated via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not rotatable and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be rotated via user interaction and the rotate handle will not be displayed if a graphic is selected.
M_ENABLESpecifies that the graphic can be rotated via user interaction by clicking and dragging the rotation handle.

M_SELECTABLE

Inquires whether a graphic in a 2D graphics list can be selected via user interaction in an interactive display. If a graphic is not visible, it is not selectable and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be selected via user interaction.
M_ENABLESpecifies that the graphic can be selected by clicking on it.

M_SPECIFIC_FEATURES_EDITABLE

Inquires whether a graphic can be modified via user interaction in an interactive display using handles that are specific to its graphic type. If a graphic is not visible, not selectable, or not editable, it cannot be modified using its type-specific handles and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be modified via user interaction and its specific feature handles will not be displayed if a graphic is selected.
M_ENABLESpecifies that the graphic can be modified via user interaction by clicking and dragging one of the type-specific handles.

M_TRANSLATABLE

Inquires whether a graphic can be moved (translated) via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not movable and this setting is ignored.

ValueDescription
M_DISABLESpecifies that the graphic cannot be moved via user interaction.
M_ENABLESpecifies that the graphic can be moved via user interaction by clicking and dragging the graphic, its selection box, or its center handle.

M_VISIBLE

Inquires whether a graphic is rendered on the display.

ValueDescription
M_FALSESpecifies that the graphic is not rendered.
M_TRUESpecifies that the graphic is rendered.

For inquiring about a setting specific to text

To inquire about a setting specific to text in the 2D graphics list, the InquireType parameter should be set to one of the following values. You must set the LabelOrIndex parameter to the label or index of text, and the SubIndex parameter to M_DEFAULT. Inquiring one of the following settings for graphics that are not text will generate an error.


M_BACKCOLOR

Inquires the background color of the text.

ValueDescription
M_RGB888Specifies an RGB value when drawing in an 8-bit, 3-band buffer.
M_COLOR_BLACKSpecifies the color black.
M_COLOR_BLUESpecifies the color blue.
M_COLOR_BRIGHT_GRAYSpecifies the color bright gray.
M_COLOR_CYANSpecifies the color cyan.
M_COLOR_DARK_BLUESpecifies the color dark blue.
M_COLOR_DARK_CYANSpecifies the color dark cyan.
M_COLOR_DARK_GREENSpecifies the color dark green.
M_COLOR_DARK_MAGENTASpecifies the color dark magenta.
M_COLOR_DARK_REDSpecifies the color dark red.
M_COLOR_DARK_YELLOWSpecifies the color dark yellow.
M_COLOR_GRAYSpecifies the color gray.
M_COLOR_GREENSpecifies the color green.
M_COLOR_LIGHT_BLUESpecifies the color light blue.
M_COLOR_LIGHT_GRAYSpecifies the color light gray.
M_COLOR_LIGHT_GREENSpecifies the color light green.
M_COLOR_LIGHT_WHITESpecifies the color light white.
M_COLOR_MAGENTASpecifies the color magenta.
M_COLOR_REDSpecifies the color red.
M_COLOR_WHITESpecifies the color white.
M_COLOR_YELLOWSpecifies the color yellow.
ValueSpecifies a grayscale value.
Byte-encoded RGB valueSpecifies an encoded RGB value. To verify if the value is a byte-encoded RGB value, use theM_IS_RGB888 macro. To retrieve the R, G, and B bands, use the M_RGB888_R, M_RGB888_G, and M_RGB888_B macros.

M_BACKGROUND_MODE

Inquires whether the text's background is filled.

ValueDescription
M_OPAQUESpecifies that the background will be filled with the current background color before drawing text.
M_TRANSPARENTSpecifies not to change the background before drawing text.

M_FONT

Inquires the font of the characters in the text.

ValueDescription
M_FONT_DEFAULTSame as M_FONT_DEFAULT_SMALL.
M_FONT_DEFAULT_LARGESpecifies a large bitmap font, where each character is drawn in a 16x32 pixel area.
M_FONT_DEFAULT_MEDIUMSpecifies a medium bitmap font, where each character is drawn in a 12x24 pixel area.
M_FONT_DEFAULT_SMALLSpecifies a small bitmap font, where each character is drawn in a 8x16 pixel area.
M_FONT_DEFAULT_TTFSpecifies the default TrueType font of your operating system.
"FontFamily:Weight:Slant"Specifies the font according to the following format, Family:Weight:Slant.
"FontFile"Specifies a full path to a TrueType file name.
M_FONT_TTFSpecifies a TrueType font. This value is returned when using MgraControlList with M_FONT.

M_FONT_AUTO_SELECT

Inquires whether Aurora Imaging Library will search for a suitable font to draw text if the currently selected font is a TrueType font that does not support the character code.

ValueDescription
M_DISABLESpecifies that Aurora Imaging Library will not search for a suitable font.
M_ENABLESpecifies that Aurora Imaging Library will search for a suitable font.

M_FONT_SIZE

Inquires the size in which text is drawn for a TrueType font.

ValueDescription
Value >= 1Specifies the text's font size, in points.

M_FONT_X_SCALE

Inquires the bitmap font's horizontal scaling factor.

ValueDescription
Value > 0Specifies the factor with which to multiply the width of the font characters.

M_FONT_Y_SCALE

Inquires the bitmap font's vertical scaling factor.

ValueDescription
Value > 0Specifies the factor with which to multiply the height of the font characters.

M_TEXT_ALIGN_HORIZONTAL

Inquires the horizontal alignment of the text.

ValueDescription
M_CENTERSpecifies that the text is horizontally centered.
M_LEFTSpecifies that the text is left-aligned.
M_RIGHTSpecifies that the text is right-aligned.

M_TEXT_ALIGN_VERTICAL

Inquires the vertical alignment of the text.

ValueDescription
M_BOTTOMSpecifies that the text is bottom-aligned.
M_CENTERSpecifies that the text is vertically centered.
M_TOPSpecifies that the text is top-aligned.

M_TEXT_BORDER

Inquires how borders are drawn around the text. Note that a combination of the values below can be returned. Bitwise operators must be used to verify the presence of a specific border.

ValueDescription
M_BOTTOMSpecifies that a line is drawn underneath the text.
M_LEFTSpecifies that a line is drawn to the left of the text.
M_NONESpecifies that no border is drawn around the text.
M_RIGHTSpecifies that a line is drawn to the right of the text.
M_TOPSpecifies that a line is drawn above the text.

M_TEXT_DIRECTION

Inquires the direction text is drawn when using a TrueType font.

ValueDescription
M_LEFT_TO_RIGHTSpecifies that text will be drawn from left to right.
M_RIGHT_TO_LEFTSpecifies that text will be drawn from right to left.

Combination Constants — For inquiring the color value used (for 16- or 32-bit color buffers)

Optional.

Usage: You can add one of the following values to the above-mentioned values to get the color used for a 16-bit or 32-bit color buffer.

You must inquire each color band (R,G, and B) separately.

ValueDescription
M_BLUEInquires the blue color band.
M_GREENInquires the green color band.
M_REDInquires the red color band.

For inquiring about a setting regarding the position and dimensional information of a graphic

To inquire about the position and dimensional information settings of a graphic (typically set when the graphic is added to the list), the InquireType parameter should be set to one of the following values. You must set the LabelOrIndex parameter to the label or index of a graphic that supports that setting. Unless otherwise specified, the SubIndex parameter should be set to M_DEFAULT.


M_ANGLE

Inquires the angle of the graphic. An angle interpreted with respect to the pixel coordinate system is always measured counter-clockwise. For information on the angle's direction of rotation when interpreting the angle with respect to the relative coordinate system, see Angle convention in Aurora Imaging Library. You can inquire this value for all graphics except a single dot (MgraDot), multiple dots (MgraDots), text (MgraText), and drawings created using a processing or analysis module draw function (M...Draw). Inquiring this value for any of the unsupported types of graphics will generate an error.

ValueDescription
-360.0 <= Value <= 360.0Specifies the angle, in degrees, relative to the input coordinate system specified using M_INPUT_UNITS.

M_ANGLE_END

Inquires the angle at which to stop drawing the arc.

ValueDescription
ValueSpecifies the end angle, in degrees, relative to the input coordinate system specified using M_INPUT_UNITS.

M_ANGLE_START

Inquires the angle at which to start drawing the arc.

ValueDescription
ValueSpecifies the start angle, in degrees, relative to the input coordinate system specified using M_INPUT_UNITS.

M_ARC_STYLE

Inquires whether to draw an arc or a sector.

ValueDescription
M_CONTOURSpecifies that the arc (the curve between the specified start and end angles) is drawn without lines extending from the center of the ellipse to the start and end points of the arc.
M_SECTORSpecifies that a sector is drawn with lines extending from the center of the ellipse to the start and end points of the arc, unless the specified start and end angles form a closed curve.

M_CENTER_X

Inquires the X-coordinate of a graphic's center. Except for rectangles, M_CENTER_X returns the same value as M_POSITION_X. For rectangles, M_CENTER_X and M_POSITION_X can have different values, depending on how Aurora Imaging Library interprets the rectangle's position (which is established with M_POSITION_TYPE). Use M_CENTER_X to be sure you are inquiring about the center position of any graphic.

ValueDescription
ValueSpecifies the X-coordinate of a graphic's center.

M_CENTER_Y

Inquires the Y-coordinate of a graphic's center. Except for rectangles, M_CENTER_Y returns the same value as M_POSITION_Y. For rectangles, M_CENTER_Y and M_POSITION_Y can have different values, depending on how Aurora Imaging Library interprets the rectangle's position (which is established with M_POSITION_TYPE). Use M_CENTER_Y to be sure you are inquiring about the center position of any graphic.

ValueDescription
ValueSpecifies the Y-coordinate of a graphic's center.

M_CONSTRAIN_ASPECT_RATIO

Inquires whether the width and height are forced to be equal. You can inquire this value for arcs (MgraArc, MgraArcFill, and MgraArcAngle) and rectangles (MgraRect, MgraRectFill, and MgraRectAngle). Inquiring this value for any other type of graphic will generate an Aurora Imaging Library error.

ValueDescription
M_DISABLESpecifies that the width and height of a graphic are not forced to be equal.
1.0Specifies that the width and height of a graphic are forced to be equal.

M_CORNER_BOTTOM_LEFT_X

Inquires the X-coordinate of the bottom-left corner of the graphic's selection box.

ValueDescription
ValueSpecifies the X-coordinate of the selection box's bottom-left corner.

M_CORNER_BOTTOM_LEFT_Y

Inquires the Y-coordinate of the bottom-left corner of the graphic's selection box.

ValueDescription
ValueSpecifies the Y-coordinate of the selection box's bottom-left corner.

M_CORNER_BOTTOM_RIGHT_X

Inquires the X-coordinate of the bottom-right corner of the graphic's selection box.

ValueDescription
ValueSpecifies the X-coordinate of the selection box's bottom-right corner.

M_CORNER_BOTTOM_RIGHT_Y

Inquires the Y-coordinate of the bottom-right corner of the graphic's selection box.

ValueDescription
ValueSpecifies the Y-coordinate of the selection box's bottom-right corner.

M_CORNER_TOP_LEFT_X

Inquires the X-coordinate of the top-left corner of the graphic's selection box.

ValueDescription
ValueSpecifies the X-coordinate of the selection box's top-left corner.

M_CORNER_TOP_LEFT_Y

Inquires the Y-coordinate of the top-left corner of the graphic's selection box.

ValueDescription
ValueSpecifies the Y-coordinate of the selection box's top-left corner.

M_CORNER_TOP_RIGHT_X

Inquires the X-coordinate of the top-right corner of the graphic's selection box.

ValueDescription
ValueSpecifies the X-coordinate of the selection box's top-right corner.

M_CORNER_TOP_RIGHT_Y

Inquires the Y-coordinate of the top-right corner of the graphic's selection box.

ValueDescription
ValueSpecifies the Y-coordinate of the selection box's top-right corner.

M_FILLED

Inquires whether the graphic is filled. You can inquire this value for arcs (MgraArc, MgraArcFill, and MgraArcAngle), polygons (MgraLines with M_POLYGON), and rectangles (MgraRect, MgraRectFill, and MgraRectAngle). Inquiring this value for any other type of graphic will generate an error.

ValueDescription
M_FALSESpecifies that the graphic is not filled.
M_TRUESpecifies that the graphic is filled.

M_POSITION_TYPE

Inquires how to interpret M_POSITION_X and M_POSITION_Y.

ValueDescription
M_CENTER_AND_DIMENSIONSpecifies to interpret M_POSITION_X and M_POSITION_Y as the rectangle's center.
M_CORNER_AND_DIMENSIONSpecifies to interpret M_POSITION_X and M_POSITION_Y as the rectangle's top-left corner.

M_POSITION_X

Inquires the specified X-position of a graphic or of one of its sub-elements. This value is set whenever a graphic is defined, either programmatically or interactively. The point returned for the position of a graphic is its center for arcs, sets of dots, a single line, sets of finite-length lines, sets of infinite lines, polygons, and polylines. The point returned for the position of text is dependent upon M_TEXT_ALIGN_HORIZONTAL and M_TEXT_ALIGN_VERTICAL. The point returned for the position of a rectangle is its center or its top-left corner, dependent upon the setting of M_POSITION_TYPE.

ValueDescription
ValueSpecifies the X-position.

M_POSITION_Y

Inquires the specified Y-position of a graphic or of one of its sub-elements. This value is set whenever a graphic is defined, either programmatically or interactively. The point returned for the position of a graphic is its center for arcs, sets of dots, a single line, sets of finite-length lines, sets of infinite lines, polygons, and polylines. The point returned for the position of text is dependent upon M_TEXT_ALIGN_HORIZONTAL and M_TEXT_ALIGN_VERTICAL. The point returned for the position of a rectangle is its center or its top-left corner, dependent upon the setting of M_POSITION_TYPE.

ValueDescription
ValueSpecifies the Y-position.

M_RADIUS_X

Inquires the radius of the arc, in the X-direction.

ValueDescription
Value >= 0Specifies the radius.

M_RADIUS_Y

Inquires the radius of the arc, in the Y-direction.

ValueDescription
Value >= 0Specifies the radius.

M_RECTANGLE_HEIGHT

Inquires the height of the rectangle.

ValueDescription
ValueSpecifies the height.

M_RECTANGLE_WIDTH

Inquires the width of a rectangle.

ValueDescription
ValueSpecifies the width.

For inquiring about general keyboard key settings to interactively modify graphics

To inquire about general settings for using keyboard keys to interactively modify graphics, the InquireType parameter should be set to one of the following values. These settings apply to the 2D graphics list itself. In this case, you must set the LabelOrIndex parameter to M_LIST and the SubIndex parameter to M_DEFAULT.


M_ACTION_KEYS

Inquires whether the 2D graphics list allows you to interactively modify its graphics by pressing keys on the keyboard (keyboard events).

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies that the 2D graphics list ignores keyboard events.
M_ENABLESpecifies that the 2D graphics list allows keyboard events to interactively modify its graphics.

M_ACTION_MODIFIER_SPEED

Inquires the combination keyboard key that you can press to select an alternate speed to rotate, resize, or translate interactively selected graphics with the keyboard.

ValueDescription
M_DEFAULT
M_KEY_ALTSpecifies to use the Alt key to select an alternate speed.
M_KEY_CTRL (default)Specifies to use the Ctrl key to select an alternate speed.
M_KEY_SHIFTSpecifies to use the Shift key to select an alternate speed.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_RESIZE_INCREMENT

Inquires the value with which to increase or decrease the width or height of the interactively selected graphic for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the increment, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

M_ACTION_RESIZE_INCREMENT_ALTERNATE

Inquires an alternate value with which to increase or decrease the width or height of the interactively selected graphic for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the increment, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

M_ACTION_ROTATE_INCREMENT

Inquires the angle with which to rotate the interactively selected graphic for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the angle, in degrees.

M_ACTION_ROTATE_INCREMENT_ALTERNATE

Inquires an alternate angle with which to rotate the interactively selected graphic for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the angle, in degrees.

M_ACTION_TRANSLATE_AXES

Inquires the axes along which Aurora Imaging Library translates a graphic that is in world units, when the translation is done using the keyboard.

ValueDescription
M_DEFAULT
M_ACCORDING_TO_CALIBRATIONSpecifies to convert the translation increment to world units using the calibration's average pixel size in the translation direction, then apply it along the world axes.
M_PIXEL (default)Specifies to apply the translation increment to the graphic position, along the image axes, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

M_ACTION_TRANSLATE_INCREMENT

Inquires the value with which to translate (move) the interactively selected graphics for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the increment, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

M_ACTION_TRANSLATE_INCREMENT_ALTERNATE

Inquires an alternate value with which to translate (move) the interactively selected graphics for a single key press.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the increment, in display units (these are pixel units that remain unaltered when you pan or zoom the display).

For inquiring about explicit keyboard keys to interactively modify graphics

To inquire about explicit keyboard keys to interactively modify graphics, the InquireType parameter should be set to one of the following values. These settings apply to the 2D graphics list itself. In this case, you must set the LabelOrIndex parameter to M_LIST and the SubIndex parameter to M_DEFAULT.


M_ACTION_KEY_CANCEL

Inquires the keyboard keys that you can press to cancel the interactive graphic modification you are currently performing.

ValueDescription
M_DEFAULT
M_NONE (default)Specifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_DELETE

Inquires the keyboard keys that you can press to delete the interactively selected graphics.

ValueDescription
M_DEFAULT
M_NONE (default)Specifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_RESIZE_HEIGHT_DOWN

Inquires the keyboard keys that you can press to reduce the height of the interactively selected graphics.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_DOWN + M_KEY_SHIFT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_RESIZE_HEIGHT_UP

Inquires the keyboard keys that you can press to increase the height of the interactively selected graphics.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_UP + M_KEY_SHIFT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_RESIZE_WIDTH_DOWN

Inquires the keyboard keys that you can press to reduce the width of the interactively selected graphics.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_LEFT + M_KEY_SHIFT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_RESIZE_WIDTH_UP

Inquires the keyboard keys that you can press to increase the width of the interactively selected graphics.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_RIGHT + M_KEY_SHIFT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_ROTATE_CLOCKWISE

Inquires the keyboard keys that you can press to rotate the interactively selected graphics clockwise.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_RIGHT + M_KEY_ALT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_ROTATE_COUNTER_CLOCKWISE

Inquires the keyboard keys that you can press to rotate the interactively selected graphics counter-clockwise.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_LEFT + M_KEY_ALT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_TRANSLATE_DOWN

Inquires the keyboard keys that you can press to translate (move) the interactively selected graphics down.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_DOWN.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_TRANSLATE_LEFT

Inquires the keyboard keys that you can press to translate (move) the interactively selected graphics left.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_LEFT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_TRANSLATE_RIGHT

Inquires the keyboard keys that you can press to translate (move) the interactively selected graphics right.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_RIGHT.
M_NONESpecifies that there are no keyboard keys for this action setting.

M_ACTION_KEY_TRANSLATE_UP

Inquires the keyboard keys that you can press to translate (move) the interactively selected graphics up.

ValueDescription
M_DEFAULTSame as M_KEY_ARROW_UP.
M_NONESpecifies that there are no keyboard keys for this action setting.

Combination Constants — For inquiring about additional keyboard keys (the values you get back with the

Optional.

Usage: You can add one or more of the following values to the above-mentioned values to get additional keyboard keys that were explicitly specified (the values you get back with the UserVarPtr parameter might be combined).

Note: You do not add the following values to the above mentioned values. One or more of the following values might be combined with the value returned (UserVarPtr) when the InquireType parameter is set to one of the above mentioned values.

ValueDescription
M_KEY_ALTSpecifies the Alt key.
M_KEY_CTRLSpecifies the Ctrl key.
M_KEY_SHIFTSpecifies the Shift key.

Combination Constants — For specifying the data type

Optional.

Usage: You can add one of the following values to the above-mentioned values to cast the requested information to a required data type.

M_TYPE_AIL_DOUBLE

Casts the requested information to an AIL_DOUBLE.

M_TYPE_AIL_ID

Casts the requested information to an AIL_ID. Note that M_TYPE_AIL_ID should only be used with M_OWNER_SYSTEM and M_GRAPHIC_SOURCE_CALIBRATION.

M_TYPE_AIL_INT

Casts the requested information to an AIL_INT.

M_TYPE_AIL_INT32

Casts the requested information to an AIL_INT32.

M_TYPE_AIL_INT64

Casts the requested information to an AIL_INT64.

Return Value

Type: AIL_INT

The returned value is the requested information, cast to an AIL_INT. If the requested information does not fit into an AIL_INT, this function will return M_NULLor truncate the information.

If SubIndex is set to M_DEFAULT, this setting is inquired for the entire graphic. If a sub-element is specified, this setting is inquired for a single point within the graphic.

You can inquire this value for arcs (MgraArc, MgraArcFill, and MgraArcAngle). Inquiring this value for any other type of graphic will generate an error.

You can inquire this value for rectangles (MgraRect, MgraRectFill, and MgraRectAngle). Inquiring this value for any other type of graphic will generate an error.

You can inquire this value for all graphics except drawings created using a processing or analysis module draw function (M...Draw). Inquiring this value on an unsupported graphic will generate an error.

You can inquire this value for all graphics except text (MgraText), and drawings created using a processing or analysis module draw function (M...Draw). Inquiring this value for any of the unsupported types of graphics will generate an error.

You can inquire this value for arcs (MgraArc, MgraArcFill, and MgraArcAngle), dots (MgraDots), lines (MgraLines with M_LINE_LIST), polygons (MgraLines with M_POLYGON), polylines (MgraLines with M_POLYLINE), and rectangles (MgraRect, MgraRectFill, and MgraRectAngle). Inquiring this value for any other type of graphic will generate an error.

Copyright © 2026 Zebra Technologies.