Skip to main content

M3dmetInquireDraw

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 about a setting of a draw 3D metrology context.

Syntax

AIL_INT64 M3dmetInquireDraw(
AIL_ID DrawContext3dmetId, //in
AIL_INT64 Operation, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function inquires about a specified setting of a draw 3D metrology context. These settings establish which metrology results to draw into the 3D graphics list when calling M3dmetDraw3d and how to draw them.

You can control the draw 3D metrology context settings using M3dmetControlDraw.

Parameters

DrawContext3dmetId (in, AIL_ID)

Specifies the identifier of the draw 3D metrology context to inquire. The draw 3D metrology context must have been previously allocated on the required system using M3dmetAlloc with M_DRAW_3D_CONTEXT.

Operation (in, AIL_INT64)

Specifies the draw operation about which to inquire.

InquireType (in, AIL_INT64)

Specifies the type of setting about which to inquire.

UserVarPtr *(out, void)

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

Parameter Associations

For inquiring a draw 3D metrology context

The following Operation and InquireType parameter settings are available to inquire about draw 3D metrology contexts settings.


M_DRAW_VOLUME_ELEMENTS

Inquires whether and how to draw the volume elements used to compute the volume, independent of whether the elements contributed positively or negatively to the volume.

M_ACTIVE

Inquires whether to draw the graphic(s).

ValueDescription
(see M_ACTIVE)

M_APPEARANCE

Inquires whether to draw the graphic(s) as a solid surface, wireframe, or points.

ValueDescription
(see M_APPEARANCE)

M_COLOR

Inquires the color with which to draw the graphic(s).

ValueDescription
(see M_COLOR)
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_OPACITY

Inquires the opacity with which to draw the graphic(s).

ValueDescription
(see M_OPACITY)

M_THICKNESS

Inquires the thickness with which to draw the graphic(s).

ValueDescription
(see M_THICKNESS)

M_VOLUME_ELEMENT_APPEARANCE

Inquires whether to draw the volume element(s) as a surface or volume.

ValueDescription
(see M_VOLUME_ELEMENT_APPEARANCE)

M_DRAW_VOLUME_NEGATIVE_ELEMENTS

Inquires whether and how to draw the volume elements that contributed negatively to the volume computation; these elements decreased the volume.

M_ACTIVE

Inquires whether to draw the graphic(s).

ValueDescription
(see M_ACTIVE)

M_APPEARANCE

Inquires whether to draw the graphic(s) as a solid surface, wireframe, or points.

ValueDescription
(see M_APPEARANCE)

M_COLOR

Inquires the color with which to draw the graphic(s).

ValueDescription
(see M_COLOR)
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_OPACITY

Inquires the opacity with which to draw the graphic(s).

ValueDescription
(see M_OPACITY)

M_THICKNESS

Inquires the thickness with which to draw the graphic(s).

ValueDescription
(see M_THICKNESS)

M_VOLUME_ELEMENT_APPEARANCE

Inquires whether to draw the volume element(s) as a surface or volume.

ValueDescription
(see M_VOLUME_ELEMENT_APPEARANCE)

M_DRAW_VOLUME_POSITIVE_ELEMENTS

Inquires wwhether and how to draw the volume elements that contributed positively to the volume computation; these elements increased the volume.

M_ACTIVE

inquires whether to draw the graphic(s).

ValueDescription
(see M_ACTIVE)

M_APPEARANCE

Inquires whether to draw the graphic(s) as a solid surface, wireframe, or points.

ValueDescription
(see M_APPEARANCE)

M_COLOR

Inquires the color with which to draw the graphic(s).

ValueDescription
(see M_COLOR)
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_OPACITY

Inquires the opacity with which to draw the graphic(s).

ValueDescription
(see M_OPACITY)

M_THICKNESS

inquires the thickness with which to draw the graphic(s).

ValueDescription
(see M_THICKNESS)

M_VOLUME_ELEMENT_APPEARANCE

Inquires whether to draw the volume element(s) as a surface or volume.

ValueDescription
(see M_VOLUME_ELEMENT_APPEARANCE)

M_GLOBAL_DRAW_SETTINGS

Inquires a global draw 3D metrology context setting.

M_VOLUME_ELEMENT_INDEX

Inquires the index of the volume element to draw.

ValueDescription
(see M_VOLUME_ELEMENT_INDEX)

Combination Constants — For inquiring about the default value

Optional.

Usage: You can add one of the following values to the above-mentioned values to get information about the default value of an inquire type, regardless of the current value of the inquire type.

M_DEFAULT

Inquires the default value of the specified inquire type.

M_IS_SET_TO_DEFAULT

Inquires whether the specified inquire type is set to its default value.

ValueDescription
M_FALSESpecifies that the inquire type is not set to its default value.
M_TRUESpecifies that the inquire type is set to its default value.

Combination Constants — For inquiring whether an inquire type has a default value or whether it is supported

Optional.

Usage: You can add one of the following values to the above-mentioned values to determine whether an inquire type has a default value or whether it is supported.

M_HAS_DEFAULT

Inquires whether the specified inquire type has a default value.

ValueDescription
M_FALSESpecifies that the inquire type does not have a default value.
M_TRUESpecifies that the inquire type has a default value.

M_SUPPORTED

Inquires whether the specified inquire type is supported.

ValueDescription
M_FALSESpecifies that the inquire type is not supported.
M_TRUESpecifies that the inquire type is supported.

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 the required data type.

M_TYPE_AIL_DOUBLE

Casts the requested information to an AIL_DOUBLE.

M_TYPE_AIL_FLOAT

Casts the requested information to an AIL_FLOAT.

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_INT64

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

Copyright © 2026 Zebra Technologies.