Handle(AIS_InteractiveContext) aContext = AISContext();
if (!aContext.IsNull()) {
Handle(V3d_Viewer) aViewer = aContext->CurrentViewer();
- Handle(V3d_View) aView;
- for (aViewer->InitActiveViews(); aViewer->MoreActiveViews(); aViewer->NextActiveViews()) {
- aView = aViewer->ActiveView();
- break;
- }
+ Handle(V3d_View) aView = aViewer->ActiveViews().First();
if (!aView.IsNull()) {
double aEyeX, aEyeY, aEyeZ;
aView->Eye(aEyeX, aEyeY, aEyeZ);
Handle(AIS_InteractiveContext) aContext = AISContext();
if (!aContext.IsNull()) {
Handle(V3d_Viewer) aViewer = aContext->CurrentViewer();
- Handle(V3d_View) aView;
- for (aViewer->InitActiveViews(); aViewer->MoreActiveViews(); aViewer->NextActiveViews()) {
- aView = aViewer->ActiveView();
- break;
- }
+ Handle(V3d_View) aView = aViewer->ActiveViews().First();
return aView->Camera()->Scale();
}
return 1;