//=================================================================
void GEOM_Displayer::Erase( GEOM::GEOM_BaseObject_ptr theObj,
const bool forced,
- const bool updateViewer )
+ const bool updateViewer,
+ SALOME_View* theViewFrame)
{
std::string entry = getEntry( theObj );
if ( entry != "" )
{
Erase(new SALOME_InteractiveObject(entry.c_str(), "GEOM", getName(theObj).c_str()),
- forced, updateViewer);
+ forced, updateViewer, theViewFrame);
}
}
void Erase ( GEOM::GEOM_BaseObject_ptr theObj,
const bool forced = false,
- const bool updateViewer = true );
+ const bool updateViewer = true,
+ SALOME_View* theViewFrame = 0);
void EraseWithChildren(const Handle(SALOME_InteractiveObject)& theIO,
const bool eraseOnlyChildren = false);
QListIterator<SALOME_View*> it( views );
while ( it.hasNext() )
if ( SALOME_View* view = it.next() )
- disp->Erase(geomObj, true, view);
+ disp->Erase(geomObj, true, true, view);
// Remove object from Engine
// We can't directly remove object from engine. All we can do is to unpublish the object