1 // File: XGUI_ViewerPrs.cpp
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #include "XGUI_ViewerPrs.h"
7 #include "SelectMgr_EntityOwner.hxx"
9 XGUI_ViewerPrs::XGUI_ViewerPrs()
13 XGUI_ViewerPrs::XGUI_ViewerPrs(FeaturePtr theFeature,
14 const TopoDS_Shape& theShape,
15 Handle(SelectMgr_EntityOwner) theOwner)
16 : myFeature(theFeature), myShape(theShape), myOwner(theOwner)
20 XGUI_ViewerPrs::~XGUI_ViewerPrs()
24 void XGUI_ViewerPrs::setFeature(FeaturePtr theFeature)
26 myFeature = theFeature;
29 FeaturePtr XGUI_ViewerPrs::feature() const
34 void XGUI_ViewerPrs::setOwner(Handle(SelectMgr_EntityOwner) theOwner)
39 Handle(SelectMgr_EntityOwner) XGUI_ViewerPrs::owner() const
44 void XGUI_ViewerPrs::setShape(const TopoDS_Shape& theShape)
49 const TopoDS_Shape& XGUI_ViewerPrs::shape() const
54 bool XGUI_ViewerPrs::operator==(const XGUI_ViewerPrs& thePrs)
56 bool aFeature = (myFeature.get() == thePrs.feature().get());
57 bool aOwner = (myOwner.Access() == thePrs.owner().Access());
58 bool aShape = myShape.IsEqual(thePrs.shape());
59 return aFeature && aOwner && aShape;