MIL_ID SystemId, | //in |
MIL_INT64 Attribute, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContainerBufIdPtr | //out |
This function allocates a container on the specified system. A container is a data object that stores related buffers, referred to as the container's buffer components. By default, a container is empty. Components are automatically added to a container, when you grab into it or use it as a destination of a supported function. You can also add components to a container using MbufAllocComponent().
A buffer component can be any type of buffer that can be allocated using MbufAlloc...(). The component type indicates what type of data is stored in that component. For example, a component with the component type M_COMPONENT_INTENSITY contains an intensity map.
After allocating a container, we recommend that you check if the operation was successful, using MappGetError(), or by verifying that the container identifier returned is not M_NULL.
When a container is no longer required, release it, using MbufFree(). This will also release all components of the container.
Specifies the MIL system on which to allocate the container. This parameter should be set to one of the following values:
For specifying the MIL system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the container usage.
This attribute is one of the factors used to determine whether a container can be used for a specific purpose. This attribute will also be automatically applied to all image buffer components added to the container.
The values in the tables below can be added together to specify multiple attributes. For example, to allocate a container for both grabbing and display, specify M_GRAB + M_DISP.
For specifying the container usage
|
|||||||||||||||||||||||||||||||||||||||
Value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_DISP |
Specifies that image buffer components of the container can be displayed, and that the container can become 3D-displayable. You can inquire whether a container is currently 3D-displayable using MbufInquireContainer() with M_3D_DISPLAYABLE. (summarize)Specifies that image buffer components of the container can be displayed, and that the container can become 3D-displayable. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_GRAB |
Specifies that the image buffer components of the container can be used to grab data, and that the container itself can be used to grab data. |
‡ | a | c U85 |
o | ||||||||||||||||||||||||||||||||||
M_PROC |
Specifies that image buffer components of the container can be processed, and that the container can become 3D-processable. You can inquire whether a container is currently 3D-processable using MbufInquireContainer() with M_3D_PROCESSABLE. (summarize)Specifies that image buffer components of the container can be processed, and that the container can become 3D-processable. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |