SVTK_ViewWindow(theDesktop),
myMainWindow1(NULL),
myMainWindow2(NULL),
- myView2(NULL)
+ myView2(NULL),
+ myDumpImage(QImage())
{}
//----------------------------------------------------------------------------
bool theIsHighlight,
bool theIsUpdate )
{
+ if(GetSelector()->AddIObject(theIO))
+ GetSelector()->EndPickCallback();
myView1->highlight( theIO, theIsHighlight, theIsUpdate );
myView2->highlight( theIO, theIsHighlight, theIsUpdate );
}
::dumpView()
{
if( myMainWindow1->GetInteractor()->hasFocus() )
- return myMainWindow1->dumpView();
+ {
+ if ( myMainWindow1->getToolBar()->hasMouse() || myDumpImage.isNull() )
+ return myMainWindow1->dumpView();
+ else
+ return myDumpImage;
+ }
if( myMainWindow2->GetInteractor()->hasFocus() )
- return myMainWindow2->dumpView();
+ {
+ if ( myMainWindow1->getToolBar()->hasMouse() || myDumpImage.isNull() )
+ return myMainWindow2->dumpView();
+ else
+ return myDumpImage;
+ }
return QImage();
}
myMainWindow2->SetBackgroundColor( theColor );
}
+
+//----------------------------------------------------------------------------
+void
+VVTK_ViewWindow
+::RefreshDumpImage()
+{
+ if( myMainWindow1->GetInteractor()->hasFocus() )
+ myDumpImage = myMainWindow1->dumpView();
+ else if ( myMainWindow2->GetInteractor()->hasFocus() )
+ myDumpImage = myMainWindow2->dumpView();
+}