Salome HOME
Put dimensions presentations on a layer 1
[modules/shaper.git] / src / XGUI / XGUI_Displayer.h
index da11c4d8ef6f65ba1ca039fe7f9c208d41c92a43..dc3dd6cba29d18d7ef282b5e29c90a3a441e5774 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <QString>
 #include <QMap>
+#include <QObject>
 
 class ModelAPI_Feature;
 class XGUI_Workshop;
@@ -34,8 +35,9 @@ class XGUI_Workshop;
  * \ingroup GUI
  * \brief Displayer. Provides mechanizm of display/erase of objects in the viewer
  */
-class XGUI_EXPORT XGUI_Displayer
+class XGUI_EXPORT XGUI_Displayer: public QObject
 {
+  Q_OBJECT
  public:
    /// \enum DisplayMode display mode
    enum DisplayMode { 
@@ -185,6 +187,18 @@ class XGUI_EXPORT XGUI_Displayer
   /// \param theObject object to check
   bool canBeShaded(ObjectPtr theObject) const;
 
+
+signals:
+  /// Signal on object display
+  /// \param theObject a data object
+  /// \param theAIS a presentation object
+  void objectDisplayed(ObjectPtr theObject, AISObjectPtr theAIS);
+
+  /// Signal on before object erase
+  /// \param theObject a data object
+  /// \param theAIS a presentation object
+  void beforeObjectErase(ObjectPtr theObject, AISObjectPtr theAIS);
+
  protected:
   /// Returns currently installed AIS_InteractiveContext
   Handle(AIS_InteractiveContext) AISContext() const;