Solid Orientation
 
Functions Introduced:
Each graphics window in solid (Part or Assembly) mode has two transformation matrices associated with it—the view matrix and the window matrix. The view matrix describes the transformation between solid coordinates and screen coordinates. Therefore, the view matrix describes the orientation of the solid in the window.
The window matrix is the transformation between screen coordinates and window coordinates. The window matrix describes the pan and zoom factors. The screen coordinate at which a particular point on a solid is displayed is not affected by pans and zooms—this affects window coordinates only.
The view matrix is important because the mouse input functions and some of the graphics drawing functions use screen coordinates, while all solid geometry uses solid coordinates. The view matrix enables you to transform between the two systems. The function ProWindowCurrentMatrixGet() provides the window matrix for the current window.
The function ProWindowPanZoomMatrixSet() enables you to set the pan and zoom matrix (window matrix) for the current window.
The function ProViewRefit() zooms and pans the view to display the specified object in the window. The input arguments are:
model—Handle to the object. The supported object types are drawing, part, and assembly.
view—Handle to the view, which is used to display the object. If the object is a solid model, and is displayed in the current window, you can pass the argument as NULL.
If the object is a drawing, pass the handle to the background view. Use the function ProDrawingBackgroundViewGet() to get the handle to the background view.
¿Fue esto útil?