#include <ModuleBase_Definitions.h>
#include <ModuleBase_ViewerPrs.h>
-#include <ModuleBase_FilterValidated.h>
#include <GeomAPI_ICustomPrs.h>
#include <QString>
#include <QMap>
+#include <QObject>
class ModelAPI_Feature;
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 {
/// \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;
/// A container for selection filters
Handle(SelectMgr_AndFilter) myAndFilter;
- Handle(ModuleBase_FilterValidated) myFilterValidated;
-
/// A default custom presentation, which is used if the displayed feature is not a custom presentation
GeomCustomPrsPtr myCustomPrs;