action(VISU_RENAME )->setEnabled(true); // Rename: Key_F2
((VisuGUI_ClippingPanel*) myPanels[ClippingPlanesPanelId])->init();
-
+ GetVisuGen( this )->GetClippingPlaneMgr().SetStudy(GetCStudy(dynamic_cast<SalomeApp_Study*>(theStudy)),true);
emit moduleActivated();
return aResult;
}
//*************************************************************
-void VISU_ClippingPlaneMgr::SetStudy(_PTR(Study) theStudy)
+void VISU_ClippingPlaneMgr::SetStudy(_PTR(Study) theStudy, bool reinitStudy)
{
- if (myStudy == theStudy) return;
+ if (myStudy == theStudy && !reinitStudy) return;
myStudy = theStudy;
myPlanes->RemoveAllItems();
if (!myStudy) return;
aPlane->setAuto(false);
applyPlaneToAll(aPlane);
- myPlanes->AddItem(aPlane);
+
+ myPlanes->AddItem(aPlane);
}
}
}
VISU_ClippingPlaneMgr();
~VISU_ClippingPlaneMgr();
- void SetStudy(_PTR(Study) theStudy);
+ void SetStudy(_PTR(Study) theStudy, bool reinitStudy = false);
long CreateClippingPlane(double X,double Y, double Z,