globalSelection( GEOM_ALLOBJECTS, true );
- delete myDisplayer;
+ if (myDisplayer)
+ delete myDisplayer;
}
//================================================================
}
}
- myDisplayer->LocalSelection( aList, 0 );
+ getDisplayer()->LocalSelection( aList, 0 );
}
//================================================================
aEntry.c_str(), "GEOM", strdup( GEOMBase::GetName( anObj ) ) ) );
}
- myDisplayer->LocalSelection( aListOfIO, theMode );
+ getDisplayer()->LocalSelection( aListOfIO, theMode );
}
//================================================================
{
// If object is null local selection for all objects is activated
if ( obj->_is_nil() ) {
- myDisplayer->LocalSelection( Handle(SALOME_InteractiveObject)(), mode );
+ getDisplayer()->LocalSelection( Handle(SALOME_InteractiveObject)(), mode );
return;
}
//================================================================
void GEOMBase_Helper::globalSelection( const int theMode, const bool update )
{
- myDisplayer->GlobalSelection( theMode, update );
+ getDisplayer()->GlobalSelection( theMode, update );
}
//================================================================
void GEOMBase_Helper::globalSelection( const TColStd_MapOfInteger& theModes,
const bool update )
{
- myDisplayer->GlobalSelection( theModes, update );
+ getDisplayer()->GlobalSelection( theModes, update );
}
//================================================================
QAD_ViewFrame* vf = GetActiveView();
if ( vf )
{
+ if (!theIO.IsNull() && !vf->isVisible(theIO))
+ Display(theIO);
SALOME_Prs* prs = vf->CreatePrs( theIO.IsNull() ? 0 : theIO->getEntry() );
((SALOME_View*)vf)->LocalSelection( prs, theMode );
delete prs; // delete presentation because displayer is its owner