aViewPort->addItem( myPreviewPrs );
aViewPort->fitAll();
-
+
+ if ( myEditedObject ) {
+ size_t aViewId = (size_t)aViewer;
+ module()->setObjectVisible( aViewId, myEditedObject, true );
+ }
+
myPreviewPrs->setIsTransformationPointPreview( true );
}
connect( aViewer, SIGNAL( selectionChanged( GV_SelectionChangeStatus ) ),
if( !aViewPort )
return;
+ size_t aViewId = (size_t)myRefViewManager->getViewer();
+
// Remove the old presentation of the reference image if any
if( myRefPreviewPrs )
{
+ module()->setObjectVisible( aViewId, myRefPreviewPrs->getObject(), false );
+
myRefPreviewPrs->setCaption( QString() );
aViewPort->removeItem( myRefPreviewPrs );
// Add the new reference image presentation to the appropriate view
aViewPort->addItem( myRefPreviewPrs );
+
+ module()->setObjectVisible( aViewId, anImageObj, true );
}
aViewPort->fitAll();