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 |
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.
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().
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.
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.
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.
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.
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.
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.
For adding a model to the
context
|
|||||||||||||||||||||||||||||||||||||||
ModelType | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Param3 | |||||||||||||||||||||||||||||||||||||||
Param4 | |||||||||||||||||||||||||||||||||||||||
Param5 | |||||||||||||||||||||||||||||||||||||||
M_AUTO_DEFINE |
Defines a unique model whose features are extracted from an automatically selected region of the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the identifier of the image buffer or specifies to define an empty model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
Source image identifier |
Sets the identifier of the image buffer (model source image) from which to extract a unique model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
M_CIRCLE |
Specifies a predefined circle as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the circle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_ANY |
Specifies that the model has no specific polarity. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the radius of the circle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_CROSS |
Specifies a predefined cross as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the cross. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width of the cross. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the height of the cross. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param4 |
Sets the horizontal thickness of the cross. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param5 |
Sets the vertical thickness of the cross. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DIAMOND |
Specifies a predefined diamond as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the diamond. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width of the diamond. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the height of the diamond. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_EDGE_RESULT |
Defines a model from the results of an edge extraction performed using Edge Finder. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the identifier of the Edge Finder result buffer. (more details...) |
† | 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 | ||||||||||||||||||||||||||||||||||||
Param2 |
Sets the X-offset of the model origin from the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies that the X-offset of the model origin is the origin of the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
Param3 |
Sets the Y-offset of the model origin from the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies that the Y-offset of the model origin is the origin of the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
Param4 |
Sets the width of the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param5 |
Sets the height of the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
M_ELLIPSE |
Specifies a predefined ellipse as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the ellipse. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width of the ellipse. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the height of the ellipse. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_IMAGE |
Defines a model from the specified model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the identifier of the image buffer (model source image) from which to extract the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param2 |
Sets the X-offset of the model origin from the model source image. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies that the X-offset of the model origin is the origin of the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
Param3 |
Sets the Y-offset of the model origin. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEFAULT |
Specifies that the Y-offset of the model origin is the origin of the model source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
Param4 |
Sets the width of the model. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param5 |
Sets the height of the model. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
M_MERGE_MODEL |
Defines a model from two other models. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the index of the first model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param2 |
Sets the index of the second model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_MOD_RESULT |
Defines a model from a Model Finder result buffer. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the identifier of the Model Finder result buffer. (more details...) |
† | 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 | ||||||||||||||||||||||||||||||||||||
Param2 |
Sets the index of the occurrence. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_RECTANGLE |
Specifies a predefined rectangle as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the rectangle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width of the rectangle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the height of the rectangle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_RING |
Specifies a predefined ring as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the ring. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the radius of the inner ring. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the radius of the outer ring. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_SQUARE |
Specifies a predefined square as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the square. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width and height of the square. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_TRIANGLE |
Specifies a predefined triangle as the model. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param1 |
Sets the foreground color of the triangle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
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 | ||||||||||||||||||
Param2 |
Sets the width of the triangle. INQ (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Param3 |
Sets the height of the triangle. INQ (more details...) |
† | 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.
For removing a model from the
context
|
|||||||||||||||||||||||||||||||||||||||
ModelType |
Description
|
||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Param3 | |||||||||||||||||||||||||||||||||||||||
Param4 | |||||||||||||||||||||||||||||||||||||||
Param5 | |||||||||||||||||||||||||||||||||||||||
M_DELETE |
Deletes the specified model from the context. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Sets the model index. (more details...) |
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. |
Header | Include mil.h. |
Library | Use mil.lib; milmod.lib. |
DLL | Requires mil.dll; milmod.dll. |