1 // File: XGUI_Displayer.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef XGUI_Displayer_H
6 #define XGUI_Displayer_H
11 #include <boost/shared_ptr.hpp>
13 #include <TopoDS_Shape.hxx>
16 class ModelAPI_Feature;
18 /**\class XGUI_Displayer
20 * \brief Displayer. Provides mechanizm of display/erase of objects in the viewer
22 class XGUI_EXPORT XGUI_Displayer
26 /// \param theViewer the viewer
27 XGUI_Displayer(XGUI_Viewer* theViewer);
29 virtual ~XGUI_Displayer();
31 /// Display the feature. Obtain the visualized object from the feature.
32 /// \param theFeature a feature instance
33 void Display(boost::shared_ptr<ModelAPI_Feature> theFeature);
35 /// Display the feature and a shape. This shape would be associated to the given feature
36 /// \param theFeature a feature instance
37 /// \param theFeature a shape
38 void Display(boost::shared_ptr<ModelAPI_Feature> theFeature, const TopoDS_Shape& theShape);
40 /// Erase the feature and a shape.
41 /// \param theFeature a feature instance
42 /// \param theFeature a shape
43 void Erase(boost::shared_ptr<ModelAPI_Feature> theFeature, const TopoDS_Shape& theShape);
46 XGUI_Viewer* myViewer; ///< the viewer where the objects should be visualized