int aMgrId = getViewManagerId(vf);
SalomeApp_Study* aStudy = getStudy();
aStudy->setObjectProperty(aMgrId, theIO->getEntry(), VISIBILITY_PROP, 1 );
-
+
+ setVisibilityState(theIO->getEntry(), Qtx::ShownState);
delete prs; // delete presentation because displayer is its owner
}
int aMgrId = getViewManagerId(vf);
SalomeApp_Study* aStudy = getStudy();
aStudy->setObjectProperty(aMgrId, theIO->getEntry(), VISIBILITY_PROP, 0 );
+
+ setVisibilityState(theIO->getEntry(), Qtx::HiddenState);
}
}
}
myShape = theShape;
}
-bool GEOM_Displayer::canBeDisplayed( const QString& /*entry*/, const QString& viewer_type ) const
+bool GEOM_Displayer::canBeDisplayed( const QString& entry, const QString& viewer_type ) const
{
- return viewer_type==SOCC_Viewer::Type() || viewer_type==SVTK_Viewer::Type();
+ return viewer_type == SOCC_Viewer::Type() || viewer_type == SVTK_Viewer::Type();
}
int GEOM_Displayer::SetDisplayMode( const int theMode )