Table: | For specifying the copy type |
+ combination: | Specifies the starting position |
MIL_ID SrcMilObjectId, | //in |
MIL_ID DstMilObjectId, | //in |
MIL_INT64 CopyType, | //in |
MIL_INT64 ControlFlag | //in |
This function copies data (such as a transformation matrix or background image) to or from a 3D display.
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.
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.
Specifies the type of copy operation to perform.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the SrcMilObjectId, DstMilObjectId, and CopyType parameters.
For specifying the copy type
|
|||||||||||||||||||||||||||||||||||||||
CopyType | Description | ||||||||||||||||||||||||||||||||||||||
SrcMilObjectId | |||||||||||||||||||||||||||||||||||||||
DstMilObjectId | |||||||||||||||||||||||||||||||||||||||
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)Specifies to set the background image of a 3D display, or to copy the background image of a 3D display to an image buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 8-bit unsigned image buffer to copy to the background of the 3D display. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display to which the image buffer is copied. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display whose background to copy. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 8-bit unsigned image buffer in which to copy the background image. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)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. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display whose auto-rotation axis to copy. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D geometry object to define. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D line geometry object used to set the 3D display's view. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display whose view to set. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies to copy the view's transformation matrix. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies to set the 3D display's view to the identity matrix. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display whose view to set. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of a 3D display from which to copy the view's orientation. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the transformation matrix object in which to copy the view's orientation. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the transformation matrix object used to set the orientation of the 3D display's view. (more details...) |
||||||||||||||||||||||||||||||||||||||
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)Specifies the identifier of the 3D display of which to set the view's orientation. (more details...) |
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..
Specifies the starting position
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
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)Specifies to use the current viewpoint as the starting point for the transformation. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; mil3d.lib. |
DLL | Requires mil.dll; mil3d.dll. |