Salome HOME
Replace boost::shared_ptr<ModelAPI_Feature> on FeaturePtr
[modules/shaper.git] / src / XGUI / XGUI_ViewerPrs.cpp
1 // File:        XGUI_ViewerPrs.cpp
2 // Created:     20 Apr 2014
3 // Author:      Natalia ERMOLAEVA
4
5 #include "XGUI_ViewerPrs.h"
6
7 #include "SelectMgr_EntityOwner.hxx"
8
9 XGUI_ViewerPrs::XGUI_ViewerPrs()
10 {
11 }
12
13 XGUI_ViewerPrs::XGUI_ViewerPrs(FeaturePtr theFeature,
14                                const TopoDS_Shape& theShape,
15                                Handle(SelectMgr_EntityOwner) theOwner)
16 : myFeature(theFeature), myShape(theShape), myOwner(theOwner)
17 {
18 }
19
20 XGUI_ViewerPrs::~XGUI_ViewerPrs()
21 {
22 }
23
24 void XGUI_ViewerPrs::setFeature(FeaturePtr theFeature)
25 {
26   myFeature = theFeature;
27 }
28
29 FeaturePtr XGUI_ViewerPrs::feature() const
30 {
31   return myFeature;
32 }
33
34 void XGUI_ViewerPrs::setOwner(Handle(SelectMgr_EntityOwner) theOwner)
35 {
36   myOwner = theOwner;
37 }
38
39 Handle(SelectMgr_EntityOwner) XGUI_ViewerPrs::owner() const
40 {
41   return myOwner;
42 }
43
44 void XGUI_ViewerPrs::setShape(const TopoDS_Shape& theShape)
45 {
46   myShape = theShape;
47 }
48
49 const TopoDS_Shape& XGUI_ViewerPrs::shape() const
50 {
51   return myShape;
52 }