|
|
@ -41,7 +41,6 @@ export class ViewChange implements Command
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (vres.Status === PromptStatus.OK)
|
|
|
|
if (vres.Status === PromptStatus.OK)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let vs = vres.SelectSet.SelectEntityList as ViewportEntity[];
|
|
|
|
let vs = vres.SelectSet.SelectEntityList as ViewportEntity[];
|
|
|
@ -53,20 +52,19 @@ export class ViewChange implements Command
|
|
|
|
|
|
|
|
|
|
|
|
app.Viewer.CameraCtrl.LookAt(this.viewDir);
|
|
|
|
app.Viewer.CameraCtrl.LookAt(this.viewDir);
|
|
|
|
this.UcsLookAt(this.viewDir);
|
|
|
|
this.UcsLookAt(this.viewDir);
|
|
|
|
app.Viewer.ZoomAll();
|
|
|
|
|
|
|
|
app.Editor.UpdateScreen();
|
|
|
|
if (app.Editor.SelectCtrl.SelectSet.SelectObjectCount)
|
|
|
|
|
|
|
|
app.Viewer.ZoomtoEntitys(app.Editor.SelectCtrl.SelectSet.SelectEntityList);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
app.Viewer.ZoomAll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UcsLookAt(viewDir: Vector3)
|
|
|
|
UcsLookAt(viewDir: Vector3)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (this.useWCS)
|
|
|
|
if (this.useWCS)
|
|
|
|
{
|
|
|
|
|
|
|
|
app.Editor.UCSMatrix = new Matrix4();
|
|
|
|
app.Editor.UCSMatrix = new Matrix4();
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
|
|
|
|
app.Editor.SetUCSLookAt(viewDir);
|
|
|
|
app.Editor.SetUCSLookAt(viewDir);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private ChangeViewport(vs: ViewportEntity[])
|
|
|
|
private ChangeViewport(vs: ViewportEntity[])
|
|
|
|
{
|
|
|
|
{
|
|
|
|