#include <LightApp_UpdateFlags.h>
#include <OCCViewer_ViewModel.h>
-#include <OCCViewer_ViewManager.h>
+#include <OCCViewer_ViewPort3d.h>
#include <OCCViewer_ViewWindow.h>
+#include <OCCViewer_ViewManager.h>
#include <OCCViewer_AISSelector.h>
#include <AIS_ListOfInteractive.hxx>
{
myPreview = new AIS_Shape( aShape );
myPreview->SetColor( Quantity_NOC_RED );
- aCtx->Display( myPreview, 0, -1, false );
+ aCtx->Display( myPreview, 1, -1, false );
}
}
}
Handle(AIS_Shape) aPrs = new AIS_Shape( aProfile->GetShape3D() );
aPrs->SetOwner( aProfile );
aPrs->SetColor( Quantity_NOC_BLACK );
- aCtx->Display( aPrs, 0, 0, false );
+ aCtx->Display( aPrs, 1, 0, false );
+ }
+ }
+ OCCViewer_ViewManager* vm = aDlg->viewManager();
+ if ( vm )
+ {
+ QVector<SUIT_ViewWindow*> winList = vm->getViews();
+ for ( QVector<SUIT_ViewWindow*>::iterator it = winList.begin(); it != winList.end(); ++it )
+ {
+ OCCViewer_ViewWindow* occWin = ::qobject_cast<OCCViewer_ViewWindow*>( *it );
+ if ( occWin )
+ {
+ OCCViewer_ViewPort3d* vp = occWin->getViewPort();
+ if ( vp )
+ vp->fitAll();
+ }
}
}
}
Handle(AIS_InteractiveContext) getAISContext();
- virtual bool event( QEvent* );
- virtual bool eventFilter( QObject*, QEvent* );
-
-protected:
OCCViewer_Viewer* viewer() const;
OCCViewer_ViewManager* viewManager() const;
SUIT_SelectionMgr* selectionMgr() const;
+ virtual bool event( QEvent* );
+ virtual bool eventFilter( QObject*, QEvent* );
+
+protected:
virtual Handle(AIS_Trihedron) trihedron();
protected slots: