| Customize Help
| Save Settings

M3ddispCopy



Function Map
Synopsis
Copy data to or from a 3D display.
Syntax
void M3ddispCopy(
MIL_ID SrcMilObjectId, //in
MIL_ID DstMilObjectId, //in
MIL_INT64 CopyType, //in
MIL_INT64 ControlFlag //in
)
Description

This function copies data (such as a transformation matrix or background image) to or from a 3D display.

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
SrcMilObjectId

Specifies the identifier of the source object. Note that if the source object is not a 3D display, the destination object must be.

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

DstMilObjectId

Specifies the identifier of the destination object. Note that if the destination object is not a 3D display, the source object must be.

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

CopyType

Specifies the type of copy operation to perform.

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

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

The table below lists possible values for the SrcMilObjectId, DstMilObjectId, and CopyType parameters.

function map For specifying the copy type
Click to summarizeCopyType Description
SrcMilObjectId
DstMilObjectId
Click to summarize M_BACKGROUND_IMAGE

Specifies to set the background image of a 3D display, or to copy the background image of a 3D display to an image buffer.

(summarize)
Click to summarize Image buffer identifier from which to copy

Specifies the identifier of the 8-bit unsigned image buffer to copy to the background of the 3D display.

(summarize)
Click to summarize MIL 3D display identifier

Specifies the identifier of the 3D display to which the image buffer is copied. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Click to summarize MIL 3D display identifier from which to copy

Specifies the identifier of the 3D display whose background to copy. The 3D display must have been previously allocated using M3ddispAlloc(). An error is generated if the 3D display does not have a background image.

(summarize)
Click to summarize Image buffer identifier

Specifies the identifier of the 8-bit unsigned image buffer in which to copy the background image. The image buffer must have the same width, height, and number of bands as the background image of the 3D display. You can determine the size and number of bands of the current background image buffer using M3ddispInquire() with M_BACKGROUND_IMAGE_SIZE_....

(summarize)
Click to summarize M_ROTATION_AXIS

Specifies to set the auto-rotation axis of a 3D display, or to copy the auto-rotation axis of a 3D display to a 3D line geometry object. This is the axis that the view of the 3D display rotates around when M_AUTO_ROTATE is set to M_ENABLE.

(summarize)
Click to summarize MIL 3D display identifier from which to copy

Specifies the identifier of the 3D display whose auto-rotation axis to copy. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Click to summarize MIL 3D geometry object identifier

Specifies the identifier of the 3D geometry object to define. The 3D geometry object is defined as an infinite line.

(summarize)
Click to summarize MIL 3D line geometry object identifier

Specifies the identifier of the 3D line geometry object used to set the 3D display's view. The 3D line geometry object must have been previously allocated using M3dgeoAlloc() with M_GEOMETRY, and defined as a line.

(summarize)
Click to summarize MIL 3D display identifier

Specifies the identifier of the 3D display whose view to set. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Click to summarize M_VIEW_MATRIX +

Specifies to copy the view's transformation matrix. If copied before the view of the 3D display is moved, you can use this matrix with M3ddispCopy() or M3ddispSetView() to restore the current position and orientation of the view.

The transformation matrix of a view is relative to a view with the viewpoint at (0,0,1), the interest point at (0,0,0), and an up vector of (0,1,0). This can also be thought of as a direct top-down view, with the up vector aligned with the Y-axis.

(summarize)
Click to summarize M_IDENTITY_MATRIX

Specifies to set the 3D display's view to the identity matrix. This can be used to reset the view's orientation.

(summarize)
Click to summarize MIL 3D display identifier

Specifies the identifier of the 3D display whose view to set. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Click to summarize MIL 3D display identifier from which to copy

Specifies the identifier of a 3D display from which to copy the view's orientation. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Click to summarize MIL transformation matrix object identifier

Specifies the identifier of the transformation matrix object in which to copy the view's orientation. The transformation matrix object must have been previously allocated using M3dgeoAlloc() with M_TRANSFORMATION_MATRIX.

(summarize)
Click to summarize MIL transformation matrix object identifier

Specifies the identifier of the transformation matrix object used to set the orientation of the 3D display's view. The transformation matrix object must have been previously allocated using M3dgeoAlloc() with M_TRANSFORMATION_MATRIX.

(summarize)
Click to summarize MIL 3D display identifier

Specifies the identifier of the 3D display of which to set the view's orientation. The 3D display must have been previously allocated using M3ddispAlloc().

(summarize)
Combination value for M_VIEW_MATRIX.

You can add one or more of the following value to the above-mentioned value to specify to use the current viewpoint as the starting point for the transformation..

function map Specifies the starting position
Click to summarize
Combination value
Description
Click to summarize M_COMPOSE_WITH_CURRENT

Specifies to use the current viewpoint as the starting point for the transformation. This setting can only be used when copying a transformation matrix object to a 3D display.

(summarize)
Compilation information
Header Include mil.h.
Library Use mil.lib; mil3d.lib.
DLL Requires mil.dll; mil3d.dll.
UNSIGNED BACKGROUND IMAGE UNSIGNED UNSIGNED ROTATION AXIS LINE VIEW MATRIX IDENTITY MATRIX COMPOSE WITH CURRENT