X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ExternalObjectsMgr.h;h=4cc3696da8008aa11a2dc74ba36ef840544d4ccb;hb=32208dedf0b2b5bd50b5b86c464f37a8e0eb07d0;hp=3d292afceeb485e31d89aaeb0e5c3a8039c7a460;hpb=fbe45f3815d4221bb530f373ba1f87af5ebf63db;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ExternalObjectsMgr.h b/src/PartSet/PartSet_ExternalObjectsMgr.h index 3d292afce..4cc3696da 100755 --- a/src/PartSet/PartSet_ExternalObjectsMgr.h +++ b/src/PartSet/PartSet_ExternalObjectsMgr.h @@ -31,14 +31,24 @@ class PARTSET_EXPORT PartSet_ExternalObjectsMgr public: /// Constructor /// \param theExternal the external state + /// \param theCanCreateExternal the state if it can and should create external features /// \param theDefaultValue the default value for the external object using - PartSet_ExternalObjectsMgr(const std::string& theExternal, const bool theDefaultValue); + PartSet_ExternalObjectsMgr(const std::string& theExternal, + const std::string& theCanCreateExternal, + const bool theDefaultValue); virtual ~PartSet_ExternalObjectsMgr() {} /// Returns the state whether the external object is used bool useExternal() const { return myUseExternal; } + /// Returns if new external objects can be created + /// \return boolean value + bool canCreateExternal() { return myCanCreateExternal;} + + /// Checks validity of the given object + /// \param theObject an object to check + /// \return valid or not valid bool isValidObject(const ObjectPtr& theObject); /// Finds or create and external object @@ -81,6 +91,8 @@ protected: /// Boolean value about the neccessity of the external object use bool myUseExternal; + /// Boolean value about the necessity of a new external object creation + bool myCanCreateExternal; }; #endif \ No newline at end of file