Salome HOME
using a better solution to do compare doubles for shape physical properties
[modules/shaper.git] / src / PartSet / PartSet_SketcherMgr.h
index defc3465b54fc4de24a16549679d8635f7d88b42..12b9f4fce1b1ed8e69b7e931e40e2d64e17c6fc4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -55,6 +55,7 @@
 #include <QObject>
 #include <QList>
 #include <QMap>
+#include <QPoint>
 
 #include <set>
 
@@ -82,6 +83,8 @@ public:
   PartSet_Fitter(PartSet_SketcherMgr* theSketchMgr):
     mySketchMgr(theSketchMgr) {}
 
+  virtual ~PartSet_Fitter() {}
+
   /// A method which has top be reimplemented to provide alterantive implementation FitAll command
   /// \param theView - a view which has to be fit
   virtual void fitAll(Handle(V3d_View) theView);
@@ -220,7 +223,7 @@ public:
 
   /// Starts sketch operation, connects to the opeation property panel
   /// \param theOperation a committed operation
-  //void startNestedSketch(ModuleBase_Operation* theOperation);
+  void startNestedSketch(ModuleBase_Operation* theOperation);
 
   /// Stop sketch operation, disconnects from the opeation property panel
   /// \param theOperation a stopped operation
@@ -381,6 +384,9 @@ public:
   */
   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
 
+  /// Returns true if current mode of objects creation is by drag mouse
+  bool isDragModeCreation() const;
+
 
 public slots:
   /// Process sketch plane selected event
@@ -510,6 +516,8 @@ private:
   QMap<ResultPtr, Handle(AIS_Shape)> myPointsHighlight;
 
   bool myNoDragMoving;
+
+  QPoint myMousePoint;
 };