painter.drawPolygon( myPoints );
}
-
-
-
-
+//////////////
HYDROGUI_Overview::HYDROGUI_Overview( const QString& theTitle, int theMargin, QWidget* theParent )
: QFrame( theParent ), myMargin( theMargin ),
HYDROGUI_Overview::~HYDROGUI_Overview()
{
+ //delete myViewPort;
}
QImage HYDROGUI_Overview::dump() const
this, SLOT( OnTransformation() ) );
connect( myMainView, SIGNAL(destroyed()), this, SLOT( onMainViewDestr() ) );
+ connect( myViewPort, SIGNAL(destroyed()), this, SLOT( onViewPortDestr() ) );
if( !myViewPort )
{
return;
Handle(V3d_View) ov = myViewPort->getView();
ov->View()->Deactivate();
- delete myViewPort;
+ delete myViewPort; //this will delete myBand
+ myViewPort = NULL;
+ myBand = NULL;
+}
+
+void HYDROGUI_Overview::onViewPortDestr()
+{
myViewPort = NULL;
}