X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Displayer.h;h=3cd6f9c73d5934e52b435e0b7468e23a97c83815;hb=327f5bbd915fb32d21f2e524a8d97536e0e5dd4b;hp=c4ac99b1cde9cd6a71df4aa90a9fd55eae9379f7;hpb=5b679606e1f5aa81b438efe5f00cead3bfa85859;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index c4ac99b1c..3cd6f9c73 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -118,7 +118,7 @@ class XGUI_EXPORT XGUI_Displayer: public QObject /// \param theUpdateViewer the parameter whether the viewer should be update immediatelly void closeLocalContexts(const bool theUpdateViewer = true); - // Remove default selection filters of the module from the current viewer + /// Remove default selection filters of the module from the current viewer void deactivateSelectionFilters(); /// \brief Add selection filter @@ -141,16 +141,21 @@ class XGUI_EXPORT XGUI_Displayer: public QObject /// \param isEnabled a boolean value bool enableUpdateViewer(const bool isEnabled); + bool isUpdateEnabled() const { return myEnableUpdateViewer; } + /// Updates the viewer void updateViewer() const; /// Activate interactive context - /// \param theIO - /// \param theMode + /// \param theIO an interactive object + /// \param theMode activation mode + /// \param theUpdateViewer update viewer flag void activateAIS(const Handle(AIS_InteractiveObject)& theIO, const int theMode, const bool theUpdateViewer) const; /// Activate interactive context. It is necessary to call ClearOutdatedSelection after deactivation + /// \param theIO an interactive object + /// \param theMode a mode to deactivate. When theMode=-1 then all modes will be deactivated void deactivateAIS(const Handle(AIS_InteractiveObject)& theIO, const int theMode = -1) const; /// Searches the interactive object by feature @@ -186,6 +191,7 @@ class XGUI_EXPORT XGUI_Displayer: public QObject /// Activates in local context displayed outside of the context. /// \param theModes - modes on which it has to be activated (can be empty) /// \param theObjList - list of objects which has to be activated. + /// \param theUpdateViewer an update viewer flag void activateObjects(const QIntList& theModes, const QObjectPtrList& theObjList, const bool theUpdateViewer = true); @@ -303,7 +309,10 @@ private: QIntList myActiveSelectionModes; /// the enable update viewer flag - bool myEnableUpdateViewer; + bool myEnableUpdateViewer; + + /// A flag that update was requested but not done + mutable bool myNeedUpdate; }; #endif