Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID ContextBeadId, | //in |
MIL_INT64 Operation, | //in |
MIL_INT64 BeadType, | //in |
MIL_INT LabelOrIndex, | //in |
MIL_INT GraListIdOrSizeOfArray, | //in |
const MIL_DOUBLE *FirstArrayPtr, | //in |
const MIL_DOUBLE *SecondArrayPtr, | //in |
const MIL_INT *ThirdArrayPtr, | //in |
MIL_INT64 ControlFlag | //in |
This function adds a new bead template to a bead context. This function also performs operations on templates already in a context, such as deleting them, modifying them, or adding, deleting, or modifying their vertices.
By default, MIL interprets certain input settings for a template in pixel units (such as position and dimension). To specify that MIL should interpret these settings in world units, use MbeadControl() with M_TEMPLATE_INPUT_UNITS set to M_WORLD.
Whenever you add, delete, or modify a bead template, you must train it using MbeadTrain(). Once you train the template, you can use it to verify beads with MbeadVerify().
Specifies the identifier of a bead context. The bead context must have been previously allocated on the required system using MbeadAlloc().
Specifies to add a new bead template to a bead context, or specifies another operation to perform with a template that is already in a context.
See the Parameter associations section for possible values that can be specified.
Specifies the type of the new bead template to add to a bead context, or specifies that the type information is not required.
This parameter should be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default type. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to add a new bead template consisting of an edge. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to add a new bead template consisting of a stripe. |
Specifies a unique label for a new bead template to add to a bead context, or specifies the index or label of a template in a context (or all templates in a context) with which to perform the operation. This parameter should be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the index of the bead template. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index, which must be greater than or equal to 0. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the label of the bead template. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label, which must be greater than 0. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies all bead templates. |
Specifies information required for the operation. If this information is not needed, set this parameter to M_NULL.
See the Parameter associations section for possible values that can be specified.
Specifies an attribute of the operation. Its definition is dependent on the Operation parameter setting. If the operation does not require this information, set this parameter to M_NULL.
See the Parameter associations section for possible values that can be specified.
Specifies an attribute of the operation. Its definition is dependent on the Operation parameter setting. If the operation does not require this information, set this parameter to M_NULL.
See the Parameter associations section for possible values that can be specified.
Specifies an attribute of the operation. Its definition is dependent on the Operation parameter setting. If the operation does not require this information, set this parameter to M_NULL.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the Operation, GraListIdOrSizeOfArray, FirstArrayPtr, SecondArrayPtr, and ThirdArrayPtr parameters.
Set unused parameters to M_NULL.
The value in the table below is for adding a new bead template to a bead context. In this case, you must set the LabelOrIndex parameter to M_TEMPLATE_LABEL() and specify a unique label value for the new template.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
GraListIdOrSizeOfArray | |||||||||||||||||||||||||||||||||||||||
FirstArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondArrayPtr | |||||||||||||||||||||||||||||||||||||||
ThirdArrayPtr | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Adds a new bead template, based on the specified vertices or a fixed circle or segment, to a bead context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the size of the first and second source arrays (FirstArrayPtr and SecondArrayPtr). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the X-coordinates of the template's vertices. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the Y-coordinates of the bead template's vertices. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Adds a new bead template, based on the vertices of a polyline (or polygon) from a graphics list, to a bead context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the identifier of a graphics list. |
The values in the table below are for performing an operation with a bead template in a bead context. Unless otherwise specified, you can only perform these operations if the template's path follows a polyline, and you must set the LabelOrIndex parameter to a specific template, using either M_TEMPLATE_INDEX() or M_TEMPLATE_LABEL().
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
GraListIdOrSizeOfArray | |||||||||||||||||||||||||||||||||||||||
FirstArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondArrayPtr | |||||||||||||||||||||||||||||||||||||||
ThirdArrayPtr | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Deletes the specified vertices from the specified template, or deletes the specified template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether to delete vertices or templates. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to delete the templates indicated by the LabelOrIndex parameter. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to delete all vertices from the specified template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the size of the array (ThirdArrayPtr) containing the vertices to delete from the specified bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the indices of the vertices to delete, or specifies that this parameter is ignored. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to ignore this parameter. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the address of the array that indicates the vertices to delete. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Inserts the specified vertices into the specified bead template. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the size of the first and second source arrays (FirstArrayPtr and SecondArrayPtr). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the X-coordinates of the vertices to insert into the bead template. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the Y-coordinates of the vertices to insert into the bead template. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the variable containing the place to insert the vertices. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the vertices will be inserted before the bead template's first vertex. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the vertices will be inserted after the bead template's last vertex. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an index value representing the position in the template after which to insert the specified vertices. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Replaces the specified vertices of the specified bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the size of the first, second, and third source arrays (FirstArrayPtr, SecondArrayPtr, and ThirdArrayPtr). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the X-coordinates of the vertices that will replace the specified vertices of the bead template (ThirdArrayPtr). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the Y-coordinates of the vertices that will replace the specified vertices of the bead template (ThirdArrayPtr). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the indices of the vertices in the bead template that will be replaced by the new vertices. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Rotates the specified bead template around its origin (0,0). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the variable containing the angle by which to rotate the bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Scales the specified bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the variable containing the factor by which to scale the bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the expected width of the specified bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the size of the required source arrays (FirstArrayPtr and ThirdArrayPtr). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the width of the corresponding vertices specified with ThirdArrayPtr. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the array containing the indices of the vertices for which to set the width. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Moves the specified bead template. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the variable containing the amount by which to displace the bead template, in the X-direction. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the address of the variable containing the amount by which to displace the bead template, in the Y-direction. |
Header | Include mil.h. |
Library | Use mil.lib; milbead.lib. |
DLL | Requires mil.dll; milbead.dll. |