]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Porting on SALOME 8.2.0
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 22 Dec 2016 08:52:10 +0000 (11:52 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 22 Dec 2016 08:52:10 +0000 (11:52 +0300)
src/ModuleBase/ModuleBase_ResultPrs.h
src/PartSet/PartSet_ResultSketchPrs.cpp

index fe988d3b69573572667707310b9033cf66c5ff5b..19a84f59a3ee153fda2664759e370a0f28e9bd5c 100644 (file)
@@ -38,13 +38,12 @@ public:
 
   /// Highlight the presentation with the given color
   /// \param aPM a presentations manager
-  /// \param aCol a color
+  /// \param theStyle a style of presentation
   /// \param aMode a drawing mode
   virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& aPM,
-    const Quantity_NameOfColor aCol, const Standard_Integer aMode = 0)
+    const Handle(Graphic3d_HighlightStyle)& theStyle, const Standard_Integer aMode = 0)
   {
-    //PORTING_TO_SALOME_8
-    //Selectable()->HilightOwnerWithColor(aPM, aCol, this);
+    Selectable()->HilightOwnerWithColor(aPM, theStyle, this);
   }
 
   DEFINE_STANDARD_RTTIEXT(ModuleBase_BRepOwner, StdSelect_BRepOwner)
index 029c21bb68b6d8477c24b4b899d7ee386c7c7ca7..3a7e52a97b0eb5dec84cdbc3ab16ee68183a0eb8 100755 (executable)
@@ -226,15 +226,13 @@ void PartSet_ResultSketchPrs::setAuxiliaryPresentationStyle(const bool isAuxilia
   if (aDrawer->HasOwnWireAspect()) {
     aLineAspect = aDrawer->WireAspect();
   }
-  Quantity_Color aCurrentColor;
-  Aspect_TypeOfLine aPrevLineType;
-  Standard_Real aCurrentWidth;
-  // PORTING_TO_SALOME_8
-  /*aLineAspect->Aspect()->Values(aCurrentColor, aPrevLineType, aCurrentWidth);
+  Quantity_Color aCurrentColor = aLineAspect->Aspect()->Color();
+  Aspect_TypeOfLine aPrevLineType = aLineAspect->Aspect()->Type();
+  Standard_Real aCurrentWidth = aLineAspect->Aspect()->Width();
   bool isChangedLineType = aType != aPrevLineType;
   if (isChangedLineType) {
     aLineAspect->SetTypeOfLine(aType);
-  }*/
+  }
 }
 
 void PartSet_ResultSketchPrs::fillShapes(TopoDS_Shape& theResultShape,