static const std::string MY_REMOVE_KIND("Duplicate");
return MY_REMOVE_KIND;
}
+//LCOV_EXCL_START
/// Returns the kind of a feature
PARTSETPLUGIN_EXPORT virtual const std::string& getKind()
{
static std::string MY_KIND = PartSetPlugin_Duplicate::ID();
return MY_KIND;
}
+//LCOV_EXCL_STOP
/// Returns to which group in the document must be added feature
PARTSETPLUGIN_EXPORT virtual const std::string& getGroup()
}
/// Request for initialization of data model of the feature: adding all attributes
- PARTSETPLUGIN_EXPORT virtual void initAttributes()
- {
- }
+ PARTSETPLUGIN_EXPORT virtual void initAttributes() {}
/// Not normal feature that stored in the tree
PARTSETPLUGIN_EXPORT virtual bool isAction()
return false;
}
-void PartSetPlugin_Part::removeFeature(std::shared_ptr<ModelAPI_Feature> theFeature)
-{
-}
-
void PartSetPlugin_Part::erase() {
ResultPartPtr aResult = std::dynamic_pointer_cast<ModelAPI_ResultPart>(firstResult());
if (aResult.get()) {
return MY_KIND;
}
+//LCOV_EXCL_START
/// Returns to which group in the document must be added feature
PARTSETPLUGIN_EXPORT virtual const std::string& getGroup()
{
static std::string MY_GROUP = "Parts";
return MY_GROUP;
}
+//LCOV_EXCL_STOP
/// Creates a new part document if needed
PARTSETPLUGIN_EXPORT virtual void execute();
/// This method to inform that sub-feature is removed and must be removed from the internal data
/// structures of the owner (the remove from the document will be done outside just after)
- virtual void removeFeature(std::shared_ptr<ModelAPI_Feature> theFeature);
+ virtual void removeFeature(std::shared_ptr<ModelAPI_Feature> theFeature) {}
/// Use plugin manager for features creation
PartSetPlugin_Part();
static const std::string MY_REMOVE_KIND("Remove");
return MY_REMOVE_KIND;
}
+//LCOV_EXCL_START
/// Returns the kind of a feature
PARTSETPLUGIN_EXPORT virtual const std::string& getKind()
{
PARTSETPLUGIN_EXPORT virtual void initAttributes()
{
}
+//LCOV_EXCL_STOP
/// Not normal feature that stored in the tree
PARTSETPLUGIN_EXPORT virtual bool isAction()