//---------------------------------------------------------------
void
-VisuGUI_Module::
-OnEditGaussPoints()
+VisuGUI_Module
+::OnEditGaussPoints()
{
Handle(SALOME_InteractiveObject) anIO;
if(VISU::Prs3d_i* aPrs3d = GetPrsToModify(this,&anIO)){
//---------------------------------------------------------------
void
-VisuGUI_Module::
-OnDisplayPrs()
+VisuGUI_Module
+::OnDisplayPrs()
{
if(MYDEBUG) MESSAGE("VisuGUI_Module::OnDisplayPrs");
//---------------------------------------------------------------
void
-VisuGUI_Module::
-OnErasePrs()
+VisuGUI_Module
+::OnDisplayOnlyPrs()
+{
+ if(SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this)){
+ SALOME_ListIO aList;
+ aSelectionMgr->selectedObjects(aList);
+ for(SALOME_ListIteratorOfListIO it( aList ); it.More(); it.Next()){
+ Handle(SALOME_InteractiveObject) anIO = it.Value();
+ CORBA::Object_var anObject = GetSelectedObj( GetAppStudy(this), anIO->getEntry() );
+
+ if(!CORBA::is_nil(anObject)){
+ if(VISU::Prs3d_i* aPrs3d = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(anObject).in())){
+ if(aPrs3d->GetType() != VISU::TGAUSSPOINTS)
+ VISU::OnEraseAll<SVTK_Viewer>(this);
+ else
+ VISU::OnEraseAll<VVTK_Viewer>(this);
+ break;
+ }
+ }
+ }
+ }
+ OnDisplayPrs();
+}
+
+
+//---------------------------------------------------------------
+void
+VisuGUI_Module
+::OnErasePrs()
{
QApplication::setOverrideCursor(Qt::waitCursor);