Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / XGUI / XGUI_Displayer.cpp
index 1df32917011497fda656630e3987b3b61bd6ef6f..79abb676fa53a737e597b59bb99447934625abfe 100644 (file)
@@ -45,3 +45,15 @@ void XGUI_Displayer::Display(std::shared_ptr<ModelAPI_Feature> theFeature,
 
   aContext->UpdateCurrentViewer();
 }
+
+/*!
+ * Erase the feature and a shape.
+ * \param theFeature a feature instance
+ * \param theFeature a shape
+ */
+void XGUI_Displayer::Erase(std::shared_ptr<ModelAPI_Feature> theFeature,
+                           const TopoDS_Shape& theShape)
+{
+  Handle(AIS_InteractiveContext) aContext = myViewer->AISContext();
+  aContext->EraseAll();
+}