X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_ResultPrs.h;h=19a84f59a3ee153fda2664759e370a0f28e9bd5c;hb=3e6012473696e5fd94e3c8240e2e1eda8def1743;hp=dc7aff38dee85d571fd75bde9b6441de6cd02445;hpb=423c10234142d14d0d5de89383f2f96a4ec5930f;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ResultPrs.h b/src/ModuleBase/ModuleBase_ResultPrs.h index dc7aff38d..19a84f59a 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.h +++ b/src/ModuleBase/ModuleBase_ResultPrs.h @@ -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(