X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Displayer.h;h=85900ddb30cd44942786e9f49e8ce58083b0da35;hb=9c54fb01877c455abb5b5ff22e384468f795b328;hp=09a880ecf0221e25cddb3ff9271bf71dc05d2e40;hpb=5c531a300242bee57bdb1f54cbcb945c97ae2855;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index 09a880ecf..85900ddb3 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -35,7 +35,7 @@ class XGUI_Workshop; class XGUI_EXPORT XGUI_Displayer { public: - /// \enum display mode + /// \enum DisplayMode display mode enum DisplayMode { /// Mode is not defined NoMode = -1, @@ -139,7 +139,7 @@ class XGUI_EXPORT XGUI_Displayer /// Activates the given object (it can be selected) /// \param theObject object to activate /// \param theModes - modes on which it has to be activated (can be empty) - void activate(ObjectPtr theObject, const QIntList& theModes); + //void activate(ObjectPtr theObject, const QIntList& theModes); /// Returns the modes of activation /// \param theObject the feature or NULL if it not visualized @@ -148,7 +148,7 @@ class XGUI_EXPORT XGUI_Displayer /// Activates the given object with default modes /// \param theObject object to activate - void activate(ObjectPtr theObject); + //void activate(ObjectPtr theObject); /// Returns true if the given object can be selected /// \param theObject object to check @@ -206,6 +206,11 @@ class XGUI_EXPORT XGUI_Displayer */ void redisplay(ObjectPtr theObject, bool isUpdateViewer = true); + /// Activates the interactive object in the local context. + /// \param theIO an interactive object + /// \param theModes - modes on which it has to be activated (can be empty) + void activate(const Handle(AIS_InteractiveObject)& theIO, const QIntList& theModes) const; + /// Opens local context. Does nothing if it is already opened. void openLocalContext();