1 // File: XGUI_ViewerPrs.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef XGUI_ViewerPrs_H
6 #define XGUI_ViewerPrs_H
10 #include <boost/shared_ptr.hpp>
11 #include <TopoDS_Shape.hxx>
13 class ModelAPI_Feature;
15 /**\class XGUI_ViewerPrs
17 * \brief Presentation. Provides container to have feature and the shape
19 class XGUI_EXPORT XGUI_ViewerPrs
25 XGUI_ViewerPrs(boost::shared_ptr<ModelAPI_Feature> theFeature,
26 const TopoDS_Shape& theShape);
28 virtual ~XGUI_ViewerPrs();
31 /// \param theFeature a feature instance
32 void setFeature(boost::shared_ptr<ModelAPI_Feature> theFeature);
35 /// \param theShape a shape instance
36 void setShape(const TopoDS_Shape& theShape);
38 /// Returns the feature.
39 /// \return a feature instance
40 boost::shared_ptr<ModelAPI_Feature> feature() const;
43 /// \return a shape instance
44 const TopoDS_Shape& shape() const;
47 boost::shared_ptr<ModelAPI_Feature> myFeature; /// the feature
48 TopoDS_Shape myShape; /// the shape