X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ExternalObjectsMgr.h;h=45f89a84c90eaab6b444b03a124948ab44c498a5;hb=aea15db62bec148b6bfd5db468c682b1695c3449;hp=6451751dee3dda3e01d0e659f079de9f3583d918;hpb=9d9ff3badaec1d230a701582d588b1e75c0fc09c;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ExternalObjectsMgr.h b/src/PartSet/PartSet_ExternalObjectsMgr.h index 6451751de..45f89a84c 100644 --- a/src/PartSet/PartSet_ExternalObjectsMgr.h +++ b/src/PartSet/PartSet_ExternalObjectsMgr.h @@ -44,16 +44,35 @@ class PARTSET_EXPORT PartSet_ExternalObjectsMgr ObjectPtr externalObject(const ObjectPtr& theSelectedObject, const GeomShapePtr& theShape, const CompositeFeaturePtr& theSketch); + ObjectPtr externalObjectValidated(const ObjectPtr& theSelectedObject, const GeomShapePtr& theShape, + const CompositeFeaturePtr& theSketch); + + // Removes the external presentation from the model /// \param theSketch a current sketch /// \param theFeature a current feature void removeExternal(const CompositeFeaturePtr& theSketch, const FeaturePtr& theFeature); + void removeExternalValidated(const CompositeFeaturePtr& theSketch, + const FeaturePtr& theFeature); + + void removeUnusedExternalObjects(const QObjectPtrList& theIgnoreObjects, + const CompositeFeaturePtr& theSketch, + const FeaturePtr& theFeature); + +protected: + void removeExternalObject(const ObjectPtr& theObject, + const CompositeFeaturePtr& theSketch, + const FeaturePtr& theFeature); + protected: /// An external object QObjectPtrList myExternalObjects; + /// An external object + ObjectPtr myExternalObjectValidated; + /// Boolean value about the neccessity of the external object use bool myUseExternal; };