0027818: Visualization - provide an interface to define highlight presentation properties
[occt.git] / src / AIS / AIS_MultipleConnectedInteractive.cxx
index 0aa8061..69de42e 100644 (file)
@@ -52,11 +52,9 @@ namespace
 
     Standard_Boolean IsHilighted (const Handle(PrsMgr_PresentationManager)& PM,const Standard_Integer aMode) const;
 
-    void Hilight (const Handle(PrsMgr_PresentationManager)& PM,const Standard_Integer aMode);
-
-    void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& PM,
-                           const Quantity_NameOfColor aColor,
-                           const Standard_Integer aMode);
+    void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
+                           const Handle(Graphic3d_HighlightStyle)& theStyle,
+                           const Standard_Integer theMode);
 
     void Unhilight (const Handle(PrsMgr_PresentationManager)& PM, const Standard_Integer aMode);
 
@@ -103,36 +101,23 @@ Standard_Boolean SelectMgr_AssemblyEntityOwner::IsHilighted (const Handle(PrsMgr
   return Standard_False;
 }
 
-//=======================================================================
-//function : Hilight
-//purpose  : 
-//=======================================================================
-void SelectMgr_AssemblyEntityOwner::Hilight (const Handle(PrsMgr_PresentationManager)& PM,
-                                             const Standard_Integer aMode)
-{
-  if (HasSelectable())
-  {
-   PM->Highlight (myAssembly, aMode);
-  }
-}
-
 //=======================================================================
 //function : HilightWithColor
 //purpose  : 
 //=======================================================================
-void SelectMgr_AssemblyEntityOwner::HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& PM,
-                                                      const Quantity_NameOfColor aColor,
-                                                      const Standard_Integer aMode)
+void SelectMgr_AssemblyEntityOwner::HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
+                                                      const Handle(Graphic3d_HighlightStyle)& theStyle,
+                                                      const Standard_Integer theMode)
 {
   if (HasSelectable())
   {
     if (IsAutoHilight())
     {
-      PM->Color (myAssembly, aColor, aMode);
+      thePM->Color (myAssembly, theStyle, theMode);
     }
     else
     {
-      myAssembly->HilightOwnerWithColor (PM, aColor, this);
+      myAssembly->HilightOwnerWithColor (thePM, theStyle, this);
     }
   }
 }