Salome HOME
Merge branch 'GeomAPI'
[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 XGUI_ViewerPrs::XGUI_ViewerPrs()
8 {
9 }
10
11 XGUI_ViewerPrs::XGUI_ViewerPrs(boost::shared_ptr<ModelAPI_Feature> theFeature,
12                                const TopoDS_Shape& theShape)
13 : myFeature(theFeature), myShape(theShape)
14 {
15 }
16
17 XGUI_ViewerPrs::~XGUI_ViewerPrs()
18 {
19 }
20
21 void XGUI_ViewerPrs::setFeature(boost::shared_ptr<ModelAPI_Feature> theFeature)
22 {
23   myFeature = theFeature;
24 }
25
26 void XGUI_ViewerPrs::setShape(const TopoDS_Shape& theShape)
27 {
28   myShape = theShape;
29 }
30
31 boost::shared_ptr<ModelAPI_Feature> XGUI_ViewerPrs::feature() const
32 {
33   return myFeature;
34 }
35
36 const TopoDS_Shape& XGUI_ViewerPrs::shape() const
37 {
38   return myShape;
39 }