Salome HOME
Better management of errors.
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.h
index dc7aff38dee85d571fd75bde9b6441de6cd02445..19a84f59a3ee153fda2664759e370a0f28e9bd5c 100644 (file)
@@ -38,13 +38,15 @@ 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)
-  {  Selectable()->HilightOwnerWithColor(aPM, aCol, this); }
+    const Handle(Graphic3d_HighlightStyle)& theStyle, const Standard_Integer aMode = 0)
+  {
+    Selectable()->HilightOwnerWithColor(aPM, theStyle, this);
+  }
 
-  DEFINE_STANDARD_RTTI(ModuleBase_BRepOwner)
+  DEFINE_STANDARD_RTTIEXT(ModuleBase_BRepOwner, StdSelect_BRepOwner)
 };
 
 
@@ -77,8 +79,9 @@ public:
   //! Method which hilight an owner belonging to
   //! this selectable object  ( for fast presentation draw )
   Standard_EXPORT virtual void HilightOwnerWithColor(
-    const Handle(PrsMgr_PresentationManager3d)& thePM,
-    const Quantity_NameOfColor theColor, const Handle(SelectMgr_EntityOwner)& theOwner);
+                                        const Handle(PrsMgr_PresentationManager3d)& thePM,
+                                        const Handle(Graphic3d_HighlightStyle)& theStyle,
+                                        const Handle(SelectMgr_EntityOwner)& theOwner);
 
   /// Returns result object
   Standard_EXPORT ResultPtr getResult() const { return myResult; }
@@ -93,7 +96,7 @@ public:
   /// \param thePriority a new priority value
   Standard_EXPORT void setAdditionalSelectionPriority(const int thePriority);
 
-  DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
+  DEFINE_STANDARD_RTTIEXT(ModuleBase_ResultPrs, ViewerData_AISShape)
 protected:
   /// Redefinition of virtual function
   Standard_EXPORT virtual void Compute(