| MIL 10 Reference
| Customize Help
| Save Settings

MmodDefine



See also
Availability
Not available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Partially supported on:
Partially supported on Matrox Solios eA/XA
Partially supported on Matrox Solios ecl/xcl/ev-cl

Fully supported on:
Fully supported on Host system
Fully supported on Matrox CronosPlus
Fully supported on Matrox GPU processing driver
Fully supported on Matrox GigE Vision driver
Fully supported on Matrox IEEE 1394 IIDC driver
Fully supported on Matrox Iris GT
Fully supported on Matrox Morphis
Fully supported on Matrox Morphis QxT
Fully supported on Matrox Orion HD
Fully supported on Matrox Radient eCL
Fully supported on Matrox Radient eV-CXP
Fully supported on Matrox USB3 Vision driver (requires Update 19)
Fully supported on Matrox Vio

For any information regarding a MIL system added during a MIL Update, see the MIL system’s release note

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
Synopsis
Add a model to, or delete a model from, a Model Finder context.
Syntax
void MmodDefine(
MIL_ID ContextId, //in
MIL_INT64 ModelType, //in
MIL_DOUBLE Param1, //in
MIL_DOUBLE Param2, //in
MIL_DOUBLE Param3, //in
MIL_DOUBLE Param4, //in
MIL_DOUBLE Param5 //in
)
Description

This function allows you to add a model to, or delete a model from, a Model Finder context. For an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context, you can define a model from an image, from a result buffer, from two other models, or you can define a synthetic model. Image-type, result-type, merge-type, and synthetic models can be mixed in the same Model Finder context. For an M_SHAPE_CIRCLE type of Model Finder context, you can only define a single synthetic M_CIRCLE model.

There are two types of image-type models: models for which you manually define their location in the model source image (M_IMAGE), and models that MIL automatically defines from the model source image (M_AUTO_DEFINE). M_AUTO_DEFINE defines a unique model by searching the model source image for unique geometric features. MmodDefine() can define an automatic model based on default settings. To have specified settings taken into account during model definition, you must allocate an empty image-type model using M_AUTO_DEFINE, set the appropriate control types using MmodControl(), and then call MmodControl() with M_AUTO_DEFINE. It can take several seconds to find the best model (or more for large or small images). To be useful, the model source image should be a typical target image; otherwise, the selected area for the model might never be present in the target image. For more information on defining a model automatically, see the Image-type models subsection of the Defining and adding models to your Model Finder context section of Chapter 7: Geometric Model Finder.

There are two types of result-type models: models defined from an Edge Finder result buffer (Edge Finder-type models), and models defined from a Model Finder result buffer (Model Finder-type model).

Merge-type models are composed of the edges of two different models. When you define a merge-type model, the two models from which it is merged are not affected.

There are two types of synthetic models: models of a predefined shape (predefined-shape models) and models defined from a CAD DXF file (CAD-file models). Use MmodDefineFromFile() to define a CAD-file model.

By default, synthetic models are defined to have a 10% margin around the bounding box of their active edges. When finding an occurrence, any extra edges found in this area will reduce the target score. When using an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context, you can change the size of the margins with the MmodControl() M_BOX_MARGIN_... control types.

How you specify the dimensions of synthetic models depends on the type of context. For an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context, specify the dimensions of synthetic models in user-defined units. Then, specify the ratio between model units and pixel units using MmodControl() with M_PIXEL_SCALE. If the target is not calibrated, then M_PIXEL_SCALE is used for the match. If the target is calibrated, the model units should be the same as the calibrated units. If the target is calibrated, M_PIXEL_SCALE will be used for draw operations, but not for the match nor the returned results. If you are searching for a synthetic model in a calibrated target, you must also associate the calibration context of the target with the model, using M_ASSOCIATED_CALIBRATION. MIL needs the calibration context for internal purposes at preprocessing time. MIL will not use the calibration context to compensate for incongruencies between the model and the target, nor will MIL map the model's coordinate system to that of the target. For an M_SHAPE_CIRCLE type of Model Finder context, specify the dimensions of the synthetic models in the units of the target; M_PIXEL_SCALE and M_ASSOCIATED_CALIBRATION are not used.

After you have specified your pixel scale and scale settings, you can verify if your synthetic models are valid, using MmodInquire() with M_VALID. Synthetic models can be invalid if their global size in X or Y (size of the model box * M_PIXEL_SCALE * M_SCALE) is greater than 1024.

If the image or the result buffer used to define the model is calibrated, then that calibration context is automatically associated with the model. Models can use different calibration contexts within the same Model Finder context, provided all calibrations map to the same world. All image-type or result-type models must be either calibrated or not.

When a call to MmodFind() is made, all models that are part of the specified context are searched for simultaneously in the target.

Note, when a model is added or deleted, the Model Finder context must be preprocessed again, using MmodPreprocess().

The search is performed according to the general search settings specified in the Model Finder context (M_CONTEXT), as well as the individual model search settings. Both the context and individual model search settings can be specified using MmodControl().

The model index starts at 0, and each subsequent model added to the Model Finder context is given a sequential index number, in the order that the model was added. If a model is deleted, all entries with higher indices are shifted down one.

For more information on defining models, see the Guidelines for choosing models section of Chapter 7: Geometric Model Finder.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ContextId

Specifies the Model Finder context to which to add, or from which to delete, the model. The Model Finder context must have been previously allocated on the required system using MmodAlloc().

ModelType INQ

Specifies the type of model to define when adding models to the context, or specifies to delete a model from the Model Finder context.

See the Parameter associations section for possible values that can be specified.

Param1

Specifies an attribute of the model to add. Its definition is dependent on the model type chosen.

See the Parameter associations section for possible values that can be specified.

Param2

Specifies an attribute of the model to add. Its definition is dependent on the model type chosen.

Set this parameter to M_DEFAULT if not used.

See the Parameter associations section for possible values that can be specified.

Param3

Specifies an attribute of the model to add. Its definition is dependent on the model type chosen.

Set this parameter to M_DEFAULT if not used.

See the Parameter associations section for possible values that can be specified.

Param4

Specifies an attribute of the model to add. Its definition is dependent on the model type chosen.

Set this parameter to M_DEFAULT if not used.

See the Parameter associations section for possible values that can be specified.

Param5

Specifies an attribute of the model to add. Its definition is dependent on the model type chosen.

Set this parameter to M_DEFAULT if not used.

See the Parameter associations section for possible values that can be specified.

The tables below list possible values for the ModelType, Param1, Param2, Param3, Param4, and Param5 parameters.

To add a model to the context, the ModelType, Param1, Param2, Param3, Param4, and Param5 parameters can be set to the following values. Note that any unused parameters should be set to M_DEFAULT.

function map For adding a model to the context
CollapseModelType Description
MIL system-specific
tooltip (†)
Param1
Param2
Param3
Param4
Param5
Collapse M_AUTO_DEFINE

Defines a unique model whose features are extracted from an automatically selected region of the model source image.

To define a model automatically based on specified control settings, call this function with Param1 set to M_NULL. Then, specify control settings using MmodControl(). Once the controls are set, define the model using MmodControl() with M_AUTO_DEFINE.

To define a model automatically based on default control settings, call this function with Param1 set to the identifier of the model source image.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the identifier of the image buffer or specifies to define an empty model.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_NULL

Specifies that an empty model should be defined.

a b c d e f g h i j k l m n o p q r s
Collapse Source image identifier

Sets the identifier of the image buffer (model source image) from which to extract a unique model. The image buffer must be a 1-band 8-bit unsigned buffer. This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the maximum displacement (shift), in the horizontal direction, expected between the position of the model in the source image and the position of the model when found in the target image. This information is used to select a model that is far enough from the image borders to be present in the target images.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Selects a model from anywhere in the whole width of the image.

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the maximum expected pixel displacement in the horizontal direction.

a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the maximum displacement (shift), in the vertical direction, expected between the position of the model in the source image and the position of the model when found in the target image. This information is used to select a model that is far enough from the image borders to be present in the target images.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Selects a model from anywhere in the whole height of the image.

a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the maximum expected pixel displacement in the verical direction.

a b c d e f g h i j k l m n o p q r s
Collapse M_CIRCLE

Specifies a predefined circle as the model.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the circle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies the default value.

For an M_GEOMETRIC or M_GEOMETRIC_CONTROLLED type of Model Finder context, the default value is M_ANY.

For an M_SHAPE_CIRCLE type of Model Finder context, the default value is M_FOREGROUND_BLACK.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

This setting is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the radius of the circle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_CROSS

Specifies a predefined cross as the model.

You can round the corners of this model using MmodControl() with M_CORNER_RADIUS.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the cross. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width of the cross. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the height of the cross. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param4

Sets the horizontal thickness of the cross. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param5

Sets the vertical thickness of the cross. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DIAMOND

Specifies a predefined diamond as the model.

You can round the corners of this model using MmodControl() with M_CORNER_RADIUS.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the diamond. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width of the diamond. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the height of the diamond. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_EDGE_RESULT

Defines a model from the results of an edge extraction performed using Edge Finder.

To define a model from an Edge Finder result buffer, the buffer must have been previously allocated using MedgeAllocResult(). MedgeCalculate() must have been already called. In addition, the Edge Finder result buffer must be compatible with the Model Finder context. Enable compatibility using MedgeControl() with M_MODEL_FINDER_COMPATIBLE prior to calling MedgeCalculate().

The model is defined to have all currently included edges in the result buffer.

In the case of an Edge Finder-type model, the model source image is the image from which the Edge Finder results were obtained.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the identifier of the Edge Finder result buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
MIL system specific

The Edge Finder result buffer (Param1) must be allocated on the same system as the Model Finder context (ContextId). If it is not, an error will occur.

l m
Collapse Param2

Sets the X-offset of the model origin from the model source image.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the X-offset of the model origin is the origin of the model source image. The X-offset is 0.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the X-offset of the model origin in the model source image, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the Y-offset of the model origin from the model source image.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the Y-offset of the model origin is the origin of the model source image. The Y-offset is 0.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Y-offset of the model origin in the model source image, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param4

Sets the width of the model.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the width of the model is the width of the model source image.

a b c d e f g h i j k l m n o p q r s
Collapse 16.0 <= Value <= 1024.0

Specifies the width of the model (in X), in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param5

Sets the height of the model.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the height of the model is the height of the model source image.

a b c d e f g h i j k l m n o p q r s
Collapse 16.0 <= Value <= 1024.0

Specifies the height of the model (in Y), in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_ELLIPSE

Specifies a predefined ellipse as the model.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the ellipse. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width of the ellipse. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the height of the ellipse. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_IMAGE

Defines a model from the specified model source image. The default settings use the entire image as the model. The minimum and maximum model sizes are 16.0 x 16.0 and 1024.0 x 1024.0 pixels, respectively.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the identifier of the image buffer (model source image) from which to extract the model. The image buffer must be a 1-band 8-bit unsigned buffer. This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the X-offset of the model origin from the model source image. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the X-offset of the model origin is the origin of the model source image. The X-offset is 0.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the X-offset of the model origin in the source image, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the Y-offset of the model origin. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the Y-offset of the model origin is the origin of the model source image. The Y-offset is 0.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Value

Specifies the Y-offset of the model origin in the source image, in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param4

Sets the width of the model. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the width of the model is distance from the origin of the model to the edge of the image in the X-direction.

a b c d e f g h i j k l m n o p q r s
Collapse 16.0 <= Value <= 1024.0

Specifies the width of the model (in X), in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse Param5

Sets the height of the model. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Specifies that the height of the model is distance from the origin of the model to the edge of the image in the Y-direction.

a b c d e f g h i j k l m n o p q r s
Collapse 16.0 <= Value <= 1024.0

Specifies the height of the model (in Y), in pixels.

a b c d e f g h i j k l m n o p q r s
Collapse M_MERGE_MODEL

Defines a model from two other models. These models have to be in the same Model Finder context.

The model is defined with the edges of the first model and the edges of the second model that are not equal to the edges of the first model.

The size of the merge-type model is the size of the first model. To include all of the edges of both models in the new model, set the first parameter to the index of the larger model.

If the models being merged are calibrated, the new merge-type model will be associated with the calibration context of the first model.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the index of the first model. User labels cannot be used as indices; to retrieve the index of a model from its user label, use MmodInquire() with M_INDEX_FROM_LABEL.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the index of the second model. User labels cannot be used as indices; to retrieve the index of a model from its user label, use MmodInquire() with M_INDEX_FROM_LABEL.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_MOD_RESULT

Defines a model from a Model Finder result buffer.

The model is defined with the edges of the target at the position of the specified occurrence.

To define a model from a Model Finder result buffer, enable MmodControl() with M_MOD_DEFINE_COMPATIBLE. In the case of a Model Finder-type model, the model source image is the target from which the results were obtained.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the identifier of the Model Finder result buffer.

(summarize)
a b c d e f g h i j k l m n o p q r s
MIL system specific

The Model Finder result buffer must be allocated on the same system as the Model Finder context (ContextId). If it is not, an error will occur.

l m
Collapse Param2

Sets the index of the occurrence.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_RECTANGLE

Specifies a predefined rectangle as the model.

You can round the corners of this model using MmodControl() with M_CORNER_RADIUS.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the rectangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width of the rectangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the height of the rectangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_RING

Specifies a predefined ring as the model.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the ring. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the radius of the inner ring. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the radius of the outer ring. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_SQUARE

Specifies a predefined square as the model.

You can round the corners of this model using MmodControl() with M_CORNER_RADIUS.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the square. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width and height of the square. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_TRIANGLE

Specifies a predefined triangle as the model.

You can round the corners of this model using MmodControl() with M_CORNER_RADIUS.

This type of model is not supported for an M_SHAPE_CIRCLE type of Model Finder context.

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param1

Sets the foreground color of the triangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse M_DEFAULT

Same as M_ANY.

a b c d e f g h i j k l m n o p q r s
Collapse M_ANY

Specifies that the model has no specific polarity.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_BLACK

Specifies that black is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse M_FOREGROUND_WHITE

Specifies that white is the foreground color of the model.

a b c d e f g h i j k l m n o p q r s
Collapse Param2

Sets the width of the triangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s
Collapse Param3

Sets the height of the triangle. INQ

(summarize)
a b c d e f g h i j k l m n o p q r s

The following ModelType parameter setting can be used to remove a model from the context.

Note that any unused parameters should be set to M_DEFAULT.

function map For removing a model from the context
CollapseModelType Description
Param1
Param2
Param3
Param4
Param5
Collapse M_DELETE

Deletes the specified model from the context.

(summarize)
Collapse Param1

Sets the model index. User labels cannot be used as indices; to retrieve the index of a model from its user label, use MmodInquire() with M_INDEX_FROM_LABEL.

(summarize)
Type-specific versions of the function
void MmodDefineInt64 (MIL_ID ContextId, MIL_INT64 ModelType, MIL_INT64 Param1, MIL_DOUBLE Param2, MIL_DOUBLE Param3, MIL_DOUBLE Param4, MIL_DOUBLE Param5)
Parameters

ContextId

See ContextId of the main function for a description.

ModelType

See ModelType of the main function for a description.

Param1

See Param1 of the main function for a description.

Param2

See Param2 of the main function for a description.

Param3

See Param3 of the main function for a description.

Param4

See Param4 of the main function for a description.

Param5

See Param5 of the main function for a description.

Compilation information
Header Include mil.h.
Library Use mil.lib; milmod.lib.
DLL Requires mil.dll; milmod.dll.
AUTO DEFINE NULL UNSIGNED PROC NONE DEFAULT DEFAULT CIRCLE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE CROSS DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE DIAMOND DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE EDGE RESULT ENABLE DEFAULT DEFAULT DEFAULT DEFAULT ELLIPSE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE IMAGE NONE DEFAULT DEFAULT DEFAULT DEFAULT MERGE MODEL MOD RESULT ENABLE RECTANGLE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE RING DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE SQUARE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE TRIANGLE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE DELETE