]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_ExternalPointsMgr.h
Salome HOME
Implementation of a task "Show centers of external circular objects in current sketcher"
[modules/shaper.git] / src / PartSet / PartSet_ExternalPointsMgr.h
index 718902afb71f95ad002764696baefc6f64cc9d4f..8ced4b40386d3501826245f08756d9ec58d88271 100644 (file)
@@ -33,7 +33,7 @@ public:
 
   virtual ~PartSet_ExternalPointsMgr();
 
-private slots:
+public slots:
   /**
   * A slot which processes display of object
   * \param theObj the displayed object
@@ -48,6 +48,9 @@ private slots:
   */
   void onEraseObject(ObjectPtr theObj, AISObjectPtr theAIS);
 
+  // Called on selection changed
+  void onSelectionChanged();
+
 private:
   /**
   * Returns list of presentations which have displayed shapes with circular edges
@@ -62,14 +65,24 @@ private:
   /// Returns plane of the current sketch
   GeomPlanePtr plane() const;
 
+  /**
+  * Checks that the given object is an object of the current sketch
+  * \param theRes an object to check
+  * \return True if the given object is a sub-object of the current sketch
+  */
   bool isSketchObject(const ObjectPtr& theRes) const;
 
 private:
+  /// Workshop
   ModuleBase_IWorkshop* myWorkshop;
+
+  /// Current sketch
   CompositeFeaturePtr mySketch;
 
+  /// Type for list of created AIS objects
   typedef QList<AISObjectPtr> ListOfAIS;
 
+  /// Map of created AIS objects
   QMap<ObjectPtr, ListOfAIS> myPresentations;
 };