Salome HOME
Issue #394 Undo-ing a Sketch element
[modules/shaper.git] / src / XGUI / XGUI_Displayer.h
index 75f424311721f4573a9f8535fe50b70e80a5a66d..85900ddb30cd44942786e9f49e8ce58083b0da35 100644 (file)
@@ -35,11 +35,14 @@ class XGUI_Workshop;
 class XGUI_EXPORT XGUI_Displayer
 {
  public:
-   /// Enumeration of possible display mode
+   /// \enum DisplayMode display mode
    enum DisplayMode { 
-     NoMode = -1, /// Mode is not defined
-     Wireframe,   /// Wireframe display mode
-     Shading      /// Shading display mode
+     /// Mode is not defined
+     NoMode = -1, 
+     /// Wireframe display mode
+     Wireframe, 
+     /// Shading display mode
+     Shading      
    };
 
   /// Constructor
@@ -136,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
@@ -145,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
@@ -203,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();