Vizard 7 » Command Index » Vizard objects » window » <window>.setProjectionMatrix
7.7

<window>.setProjectionMatrix

Set the projection matrix of the window

<window>.setProjectionMatrix(  
matrix  
eye = viz.BOTH_EYE  
preserveClip = False  
)  
matrix
viz.Matrix object
eye = viz.BOTH_EYE
The eye to apply the projection matrix to. Can be one of the following:
viz.BOTH_EYE
viz.LEFT_EYE
viz.RIGHT_EYE

If the value is viz.LEFT_EYE or viz.RIGHT_EYE, then Vizard will NOT automatically adjust the projection marix in stereo mode.
preserveClip = False
If True, the clip planes of the specified projection matrix are ignored and the existing clip planes are preserved.

Remarks

This command will set the projection matrix of the window to the specified viz.Matrix object.

Auto-compute of aspect ratio will be disabled when using this command.

Return Value

None

Example

viz.MainWindow.setProjectionMatrix( viz.Matrix.frustum(-1,1,-1,1,0.1,100) )

See also

<window>.clip
<window>.fov
<window>.frustum
<window>.ortho