poI3DViewCtrl SetOrtho

Changes the current view when in the orthographic projection mode.

Syntax

viewControl_handle SetOrthoMinX, MaxX, MinY, MaxY, MinZ, MaxZ

Application

HyperView Tcl Modify

Description

Redefines the view when in the orthogonal projection mode.

Inputs

MinX, MaxX
Min and max clipping planes for X.
MinY, MaxY
Min and max clipping planes for Y.
MinZ, MaxZ
Min and max clipping planes for Z.

Example

To copy the model orientation and view from one window to another:
Note: This example assumes that the same model is loaded in two side-by-side windows, and that both displays are in the orthographic projection mode.
hwi OpenStack;
set t [::post::GetT];

catch {
hwi GetSessionHandle sess$t;
sess$t GetProjectHandle proj$t;
proj$t GetPageHandle page$t [proj$t GetActivePage];
page$t GetWindowHandle win1$t 1;
page$t GetWindowHandle win2$t 2;
win1$t GetViewControlHandle vc1$t;
win1$t GetClientHandle post1$t;
win2$t GetViewControlHandle vc2$t;
win2$t GetClientHandle post2$t;

set orientation [vc1$t GetOrientation];
set ortho [vc1$t GetOrtho];

vc2$t SetOrientation "$orientation";
puts stdout {Orientation Set}
vc2$t SetOrtho “$ortho”;
purts stdout {Ortho Set}

post2$t Draw;
}
hwi CloseStack;

Errors

This command will return an error if the view control handle is invalid. It may return a warning if the current projection mode is perspective.