MIL_ID Disp3dId,  //in 
MIL_INT64 Mode,  //in 
MIL_DOUBLE *Param1Ptr,  //out 
MIL_DOUBLE *Param2Ptr,  //out 
MIL_DOUBLE *Param3Ptr,  //out 
MIL_INT64 ControlFlag  //in 
This function gets information about the current view of the specified 3D display.
All settings of the view of a 3D display are based on the viewpoint, interest point, and/or up vector, as shown in the image below:
You can get the position of the viewpoint using M_VIEWPOINT, the position of the interest point using M_INTEREST_POINT and the direction of the upvector using M_UP_VECTOR. The results of all other modes are derived from these modes. For example, the M_ROLL setting of the view is derived from the M_UP_VECTOR setting.
All results are returned with respect to the working coordinate system of the 3D display.
Specifies which aspect of the view to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address of the variable in which to write either the Xcoordinate, distance, azimuth, elevation, or roll.
See the Parameter associations section for possible values that can be returned.
Specifies the address of the variable in which to write either the Ycoordinate or elevation.
Set this parameter to M_NULL if not used.
See the Parameter associations section for possible values that can be returned.
Specifies the address of the variable in which to write either the Zcoordinate or roll.
Set this parameter to M_NULL if not used.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the Mode parameter and possible values returned to the Param1Ptr, Param2Ptr, and Param3Ptr parameters.
For determining the position and orientation of the
viewpoint.


Mode  Description  
Param1Ptr  Possible values returned 

Param2Ptr  Possible values returned 

Param3Ptr  Possible values returned 

M_AZIM_ELEV_ROLL 
Gets the azimuth and elevation of the viewpoint relative to the interest point, and the roll of the view. 

Param1Ptr 
Returns the azimuth of the view, specified in degrees. 

Param2Ptr 
Returns the elevation of the view, specified in degrees. 

Param3Ptr 
Returns the roll of the view, specified in degrees. 

M_AZIMUTH 
Gets the azimuth of the viewpoint relative to the interest point. 

Param1Ptr 
Returns the azimuth of the viewpoint relative to the interest point. 

M_DISTANCE 
Gets the distance of the viewpoint from the interest point. 

Param1Ptr 
Returns the distance of the viewpoint from the interest point. 

M_ELEVATION 
Gets the elevation of the viewpoint relative to the interest point. 

Param1Ptr 
Returns the elevation of the viewpoint relative to the interest point. 

M_INTEREST_POINT 
Gets the position of the interest point. 

Param1Ptr 
Returns the Xcoordinate of the interest point. 

Param2Ptr 
Returns the Ycoordinate of the interest point. 

Param3Ptr 
Returns the Zcoordinate of the interest point. 

M_ROLL 
Gets the roll of the view. 

Param1Ptr 
Returns the roll of the view, specified in degrees. 

M_UP_VECTOR 
Gets the vector which defines what direction the top of the view is pointing. 

Param1Ptr 
Returns the Xcomponent of the up vector. 

Param2Ptr 
Returns the Ycomponent of the up vector. 

Param3Ptr 
Returns the Zcomponent of the up vector. 

M_VIEW_ORIENTATION 
Gets the unit vector that describes the direction from the viewpoint to the interest point. 

Param1Ptr 
Returns the Xcomponent of the view orientation. 

Param2Ptr 
Returns the Ycomponent of the view orientation. 

Param3Ptr 
Returns the Zcomponent of the view orientation. 

M_VIEWPOINT 
Gets the position of the viewpoint. 

Param1Ptr 
Returns the Xcoordinate of the position of the viewpoint. 

Param2Ptr 
Returns the Ycoordinate of the position of the viewpoint. 

Param3Ptr 
Returns the Zcoordinate of the position of the viewpoint. 
Header  Include mil.h. 
Library  Use mil.lib; mil3d.lib. 
DLL  Requires mil.dll; mil3d.dll. 