OCCViewer_ViewWindow* aMainView = myMainView->getView( OCCViewer_ViewFrame::MAIN_VIEW );
connect( aMainView, SIGNAL( vpTransformationFinished( OCCViewer_ViewWindow::OperationType ) ),
- this, SLOT( OnTransformation() ) );
+ this, SLOT( OnTransformationAfterOp( OCCViewer_ViewWindow::OperationType ) ) );
connect( aMainView->getViewPort(), SIGNAL( vpResizeEvent( QResizeEvent* ) ),
this, SLOT( OnResizeEvent( QResizeEvent* ) ) );
connect( aMainView->getViewPort(), SIGNAL( vpTransformed( OCCViewer_ViewPort* ) ),
myBand->update( true );
}
+void HYDROGUI_Overview::OnTransformationAfterOp( OCCViewer_ViewWindow::OperationType theOp )
+{
+ if( theOp>=OCCViewer_ViewWindow::WINDOWFIT )
+ {
+ myViewPort->fitAll();
+ }
+ OnTransformation();
+}
+
void HYDROGUI_Overview::OnTransformation()
{
if( myBand )
#define HYDROGUI_OVERVIEW_H
#include <QFrame>
+#include <OCCViewer_ViewWindow.h>
class OCCViewer_ViewPort3d;
class OCCViewer_ViewFrame;
virtual bool eventFilter( QObject*, QEvent* );
private slots:
+ void OnTransformationAfterOp( OCCViewer_ViewWindow::OperationType );
void OnTransformation();
void OnMouseEvent( QMouseEvent* );
void OnResizeEvent( QResizeEvent* );