MIL_ID List3dgraId, | //in |
MIL_INT64 ParentLabel, | //in |
MIL_INT64 CreationMode, | //in |
MIL_INT64 Symbol, | //in |
MIL_DOUBLE PointX, | //in |
MIL_DOUBLE PointY, | //in |
MIL_DOUBLE PointZ, | //in |
MIL_DOUBLE PointOrVectorX, | //in |
MIL_DOUBLE PointOrVectorY, | //in |
MIL_DOUBLE PointOrVectorZ, | //in |
MIL_DOUBLE Length, | //in |
MIL_INT64 ControlFlag | //in |
This function adds a line graphic to the specified 3D graphics list, allowing you to, for example, view the line graphic on a 3D display.
You must specify the label of the 3D graphic, in the 3D graphics list, to use as the parent of the line graphic. When the line graphic is added to the 3D graphics list's tree structure, it is added as a child under the specified parent. If the 3D graphics list is empty, the line graphic's parent must be the root node. All coordinates are expressed in the coordinate system of the line graphic's parent.
The line graphic has its own coordinate system that represents the line graphic's position and orientation with respect to its parent's coordinate system. The origin of the line graphic's coordinate system is the line graphic's start point, and its Z-axis shares the same direction as the line graphic's direction. You can inquire the line graphic's start point using M3dgraInquire() with M_START_POINT_....
To modify or inquire 3D graphics list settings, use M3dgraControl() or M3dgraInquire(), respectively.
Unlike most other functions that modify a MIL object, you can call this function concurrently from multiple threads on the same MIL 3D graphics list (List3dgraId) without using an M_MUTEX object, as long as all the other parameters of the concurrent calls do not also share data.
Specifies the label of the parent of the line graphic in the 3D graphics list.
For specifying the parent label
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ROOT_NODE. |
||||||||||||||||||||||||||||||||||||||
M_ROOT_NODE |
Specifies the top-most node of the 3D graphics list. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the label of the parent of the line graphic in the 3D graphics list. Label 0 is the 3D graphics list's root node. (summarize)Specifies the label of the parent of the line graphic in the 3D graphics list. (more details...) |
Specifies how the line graphic is defined.
See the Parameter associations section for possible values that can be specified.
Specifies the first parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the second parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the third parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the fourth parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the fifth parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the sixth parameter used to define the line graphic.
See the Parameter associations section for possible values that can be specified.
Specifies to override the default line graphic's length.
For specifying to override the default line graphic's
length
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default length defined by the creation mode. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies an infinite line graphic. The line graphic's size is determined upon creation, using its 3D graphics list's clipping box. (summarize)Specifies an infinite line graphic. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies to override the line graphic's length with a specific value. |
The table below lists possible values for the CreationMode, PointX, PointY, PointZ, PointOrVectorX, PointOrVectorY, and PointOrVectorZ parameters.
For specifying the line graphic
|
|||||||||||||||||||||||||||||||||||||||
CreationMode | Description | ||||||||||||||||||||||||||||||||||||||
PointX | |||||||||||||||||||||||||||||||||||||||
PointY | |||||||||||||||||||||||||||||||||||||||
PointZ | |||||||||||||||||||||||||||||||||||||||
PointOrVectorX | |||||||||||||||||||||||||||||||||||||||
PointOrVectorY | |||||||||||||||||||||||||||||||||||||||
PointOrVectorZ | |||||||||||||||||||||||||||||||||||||||
M_POINT_AND_VECTOR |
Defines the line graphic using a point on the line and a nonzero vector defining the line's direction. By default, the length of the line graphic is finite and is set to the vector's magnitude. The point is at the start of the line graphic. (summarize)Defines the line graphic using a point on the line and a nonzero vector defining the line's direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
PointX |
Specifies the X-coordinate of the point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointY |
Specifies the Y-coordinate of the point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointZ |
Specifies the Z-coordinate of the point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorX |
Specifies the X-component of the vector defining the line graphic's direction. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorY |
Specifies the Y-component of the vector defining the line graphic's direction. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorZ |
Specifies the Z-component of the vector defining the line graphic's direction. |
||||||||||||||||||||||||||||||||||||||
M_TWO_POINTS |
Defines the line graphic using any two non-identical points. By default, the length of the line graphic is finite and is set to the distance between the two specified points. The line graphic starts at the first point, and ends at the second point. (summarize)Defines the line graphic using any two non-identical points. (more details...) |
||||||||||||||||||||||||||||||||||||||
PointX |
Specifies the X-coordinate of the first point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointY |
Specifies the Y-coordinate of the first point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointZ |
Specifies the Z-coordinate of the first point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorX |
Specifies the X-coordinate of the second point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorY |
Specifies the Y-coordinate of the second point on the line graphic. |
||||||||||||||||||||||||||||||||||||||
PointOrVectorZ |
Specifies the Z-coordinate of the second point on the line graphic. |
Header | Include mil.h. |
Library | Use mil.lib; mil3d.lib. |
DLL | Requires mil.dll; mil3d.dll. |