X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_ResultPrs.h;h=19a84f59a3ee153fda2664759e370a0f28e9bd5c;hb=39aa2839a4269a2fc87cfe3b4487cce8f3df9a6f;hp=597b3b8e70f067f8c3e31ac78b053fba2223ff50;hpb=30c051954fe28016ee74f7aaf851dbdec4249d8c;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ResultPrs.h b/src/ModuleBase/ModuleBase_ResultPrs.h index 597b3b8e7..19a84f59a 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.h +++ b/src/ModuleBase/ModuleBase_ResultPrs.h @@ -31,20 +31,22 @@ public: /// \param aShape an owner shape /// \param aPriority drawig priority /// \param ComesFromDecomposition decomposition flag - ModuleBase_BRepOwner(const TopoDS_Shape& aShape, - const Standard_Integer aPriority = 0, + ModuleBase_BRepOwner(const TopoDS_Shape& aShape, + const Standard_Integer aPriority = 0, const Standard_Boolean ComesFromDecomposition = Standard_False) : StdSelect_BRepOwner(aShape, aPriority, ComesFromDecomposition) {} /// 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); } + virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& aPM, + 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) }; @@ -73,19 +75,20 @@ public: //! Method which draws selected owners ( for fast presentation draw ) Standard_EXPORT virtual void HilightSelected(const Handle(PrsMgr_PresentationManager3d)& thePM, const SelectMgr_SequenceOfOwner& theOwners); - + //! 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; } /// Returns selection priorities that will be added to created selection owner /// \return integer value - Standard_EXPORT int getAdditionalSelectionPriority() const + Standard_EXPORT int getAdditionalSelectionPriority() const { return myAdditionalSelectionPriority; } /// Appends a special priority for the mode of selection @@ -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( @@ -117,7 +120,7 @@ private: /// Original shape of the result object TopoDS_Shape myOriginalShape; - /// selection priority that will be added to the standard + /// selection priority that will be added to the standard /// selection priority of the selection entity int myAdditionalSelectionPriority; };