X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Trim.h;h=610ae1e1c7800e3405496f93ffcc4a2a085fd0ba;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=5791ff690c450125bc1588654bb7bd0cade6ada8;hpb=a87ec82289d152ffd66b1cb7133bfb5cbfe92281;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Trim.h b/src/SketchPlugin/SketchPlugin_Trim.h index 5791ff690..610ae1e1c 100644 --- a/src/SketchPlugin/SketchPlugin_Trim.h +++ b/src/SketchPlugin/SketchPlugin_Trim.h @@ -126,7 +126,9 @@ private: /// Obtains those constraints of the feature that should be modified. output maps contain /// point of coincidence and attribute id to be modified after split /// \param theFeaturesToDelete [out] constrains that will be deleted after split - void getConstraints(std::set>& theFeaturesToDelete); + /// \param theFeaturesToUpdate [out] constrains that will be updated after split + void getConstraints(std::set>& theFeaturesToDelete, + std::set& theFeaturesToUpdate); /// Obtains references to feature point attributes and to feature, /// e.g. for feature line: 1st container is @@ -161,6 +163,10 @@ private: void removeReferencesToAttribute(const AttributePtr& theAttribute, std::map >& theBaseRefAttributes); + /// Updates line length if it exist in the list + /// \param theFeaturesToUpdate a constraints container + void updateFeaturesAfterTrim(const std::set& theFeaturesToUpdate); + /// Make the base object is splitted by the point attributes /// \param theBaseRefAttributes container of references to the attributes of base feature /// \param thePoints a list of points where coincidences will be build