]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Temporarily comment out code dedicated to visibility of origin point selection
authorvsv <vsv@opencascade.com>
Fri, 15 Nov 2019 12:18:53 +0000 (15:18 +0300)
committervsv <vsv@opencascade.com>
Fri, 15 Nov 2019 12:19:25 +0000 (15:19 +0300)
src/SHAPERGUI/SHAPERGUI.cpp
src/XGUI/XGUI_Displayer.cpp

index 53e372458ba3f0d2f40090438e2965b62a5e30ff..2bd9679175c2f647abcccb8b69b6fb114edae79c 100644 (file)
@@ -322,11 +322,11 @@ bool SHAPERGUI::activateModule(SUIT_Study* theStudy)
     XGUI_Displayer* aDisp = myWorkshop->displayer();
     QObjectPtrList aObjList = aDisp->displayedObjects();
 
-    if (myHighlightPointAspect.IsNull()) {
-      Handle(AIS_Trihedron) aTrihedron = mySelector->viewer()->getTrihedron();
-      myHighlightPointAspect =
-        new Graphic3d_AspectMarker3d(aTrihedron->getHighlightPointAspect()->Aspect().operator*());
-    }
+    //if (myHighlightPointAspect.IsNull()) {
+    //  Handle(AIS_Trihedron) aTrihedron = mySelector->viewer()->getTrihedron();
+    //  myHighlightPointAspect =
+    //    new Graphic3d_AspectMarker3d(aTrihedron->getHighlightPointAspect()->Aspect().operator*());
+    //}
     if (myOldSelectionColor.size() == 0)
       myOldSelectionColor = aDisp->selectionColor();
 
@@ -408,11 +408,11 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy)
   }
   // Delete selector because it has to be redefined on next activation
   if (mySelector) {
-    if (!myHighlightPointAspect.IsNull()) {
-      Handle(AIS_Trihedron) aTrihedron = mySelector->viewer()->getTrihedron();
-      aTrihedron->getHighlightPointAspect()->SetAspect(myHighlightPointAspect);
-      myHighlightPointAspect.Nullify();
-    }
+    //if (!myHighlightPointAspect.IsNull()) {
+    //  Handle(AIS_Trihedron) aTrihedron = mySelector->viewer()->getTrihedron();
+    //  aTrihedron->getHighlightPointAspect()->SetAspect(myHighlightPointAspect);
+    //  myHighlightPointAspect.Nullify();
+    //}
     myWorkshop->displayer()->setSelectionColor(myOldSelectionColor);
     myProxyViewer->setSelector(0);
     delete mySelector;
@@ -548,11 +548,11 @@ SHAPERGUI_OCCSelector* SHAPERGUI::createSelector(SUIT_ViewManager* theMgr)
   if (theMgr->getType() == OCCViewer_Viewer::Type()) {
     OCCViewer_Viewer* aViewer = static_cast<OCCViewer_Viewer*>(theMgr->getViewModel());
 
-    if (myHighlightPointAspect.IsNull()) {
-      Handle(AIS_Trihedron) aTrihedron = aViewer->getTrihedron();
-      myHighlightPointAspect =
-        new Graphic3d_AspectMarker3d(aTrihedron->getHighlightPointAspect()->Aspect().operator*());
-    }
+    //if (myHighlightPointAspect.IsNull()) {
+    //  Handle(AIS_Trihedron) aTrihedron = aViewer->getTrihedron();
+    //  myHighlightPointAspect =
+    //    new Graphic3d_AspectMarker3d(aTrihedron->getHighlightPointAspect()->Aspect().operator*());
+    //}
     SHAPERGUI_OCCSelector* aSelector = new SHAPERGUI_OCCSelector(aViewer,
                                                                  getApp()->selectionMgr());
 #ifdef SALOME_PATCH_FOR_CTRL_WHEEL
index 0cad0a338282492468c158ccff18a4955f5b6283..b9ff21eefa4bbcc88479a762e9d66a510cdca11b 100644 (file)
@@ -647,9 +647,9 @@ Handle(AIS_InteractiveContext) XGUI_Displayer::AISContext() const
     aContext->DefaultDrawer()->VIsoAspect()->SetNumber(0);
     aContext->DefaultDrawer()->UIsoAspect()->SetNumber(0);
 
-    Handle(AIS_Trihedron) aTrihedron = myWorkshop->viewer()->trihedron();
-    aTrihedron->getHighlightPointAspect()->SetScale(2.0);
-    aTrihedron->getHighlightPointAspect()->SetTypeOfMarker(Aspect_TOM_O_STAR);
+    //Handle(AIS_Trihedron) aTrihedron = myWorkshop->viewer()->trihedron();
+    //aTrihedron->getHighlightPointAspect()->SetScale(2.0);
+    //aTrihedron->getHighlightPointAspect()->SetTypeOfMarker(Aspect_TOM_O_STAR);
 
     // Commented out according to discussion in bug #2825
     //ModuleBase_IViewer::DefaultHighlightDrawer = aContext->HighlightStyle();