X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewerPrs.cpp;h=e0958f76fc6417fd2cbf50bbb543b8b4000882c2;hb=f8d51abf2ab6024a974d42c139f7650ccf0ef774;hp=4ab8801aa1f124151bff9b5aa9edbc13267e57af;hpb=a47345a30a1050d55ff9bdf3864578ecfc71554f;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewerPrs.cpp b/src/XGUI/XGUI_ViewerPrs.cpp index 4ab8801aa..e0958f76f 100644 --- a/src/XGUI/XGUI_ViewerPrs.cpp +++ b/src/XGUI/XGUI_ViewerPrs.cpp @@ -4,13 +4,16 @@ #include "XGUI_ViewerPrs.h" +#include "SelectMgr_EntityOwner.hxx" + XGUI_ViewerPrs::XGUI_ViewerPrs() { } -XGUI_ViewerPrs::XGUI_ViewerPrs(boost::shared_ptr theFeature, - const TopoDS_Shape& theShape) -: myFeature(theFeature), myShape(theShape) +XGUI_ViewerPrs::XGUI_ViewerPrs(FeaturePtr theFeature, + const TopoDS_Shape& theShape, + Handle(SelectMgr_EntityOwner) theOwner) +: myFeature(theFeature), myShape(theShape), myOwner(theOwner) { } @@ -18,19 +21,29 @@ XGUI_ViewerPrs::~XGUI_ViewerPrs() { } -void XGUI_ViewerPrs::setFeature(boost::shared_ptr theFeature) +void XGUI_ViewerPrs::setFeature(FeaturePtr theFeature) { myFeature = theFeature; } -void XGUI_ViewerPrs::setShape(const TopoDS_Shape& theShape) +FeaturePtr XGUI_ViewerPrs::feature() const { - myShape = theShape; + return myFeature; } -boost::shared_ptr XGUI_ViewerPrs::feature() const +void XGUI_ViewerPrs::setOwner(Handle(SelectMgr_EntityOwner) theOwner) { - return myFeature; + myOwner = theOwner; +} + +Handle(SelectMgr_EntityOwner) XGUI_ViewerPrs::owner() const +{ + return myOwner; +} + +void XGUI_ViewerPrs::setShape(const TopoDS_Shape& theShape) +{ + myShape = theShape; } const TopoDS_Shape& XGUI_ViewerPrs::shape() const