Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / XGUI / XGUI_WorkshopListener.h
index 7da355e2e28590fbe222654877a80043ae047947..abc801ec1cdd67f1734cb3bacb74b7735acda377 100755 (executable)
@@ -68,15 +68,23 @@ protected:
   /// Displaus object and fit all viewer if the object is first (update viewer will not be called)
   /// Asks the module whether the object can be displayed
   /// \param theObj an object
-  /// \param theFirstVisualizedBody an output state whether there are not object displayed in the view
-  /// and the displayed object is a body
+  /// \param theFirstVisualizedBody an output state whether there are not object displayed in the
+  /// view and the displayed object is a body
   /// \return true if the object is displayed
-  bool displayObject(ObjectPtr theObj, bool& theFirstVisualizedBody);
+  bool displayObject(ObjectPtr theObj);
+
+  /// Answer if the viewer needed to be fit all after the object visualization
+  /// The condition is there is not shown objects and the object is a group or body result
+  /// \param theObject a shown object
+  /// \param theNbOfShownObjects a count of already shown objects in the viewer
+  /// \return true if fit all should be done
+  bool neededFitAll(ObjectPtr theObject, const int theNbOfShownObjects);
 
   /// Calls the module method of cusomize object for the feature of the current operation
   /// Perform cusomize if the force redisplay flag is true or the list of objects contains the
   /// current operation feature
-  /// \param theObjects a list of objects to find current operation feature if forced redisplay is false
+  /// \param theObjects a list of objects to find current operation feature 
+  ///                   if forced redisplay is false
   /// \param theForceRedisplay a flag to customize object even always
   /// \return true if the object is modified
   bool customizeCurrentObject(const std::set<ObjectPtr>& theObjects, bool theForceRedisplay);