X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Group.h;h=e859d5e89b562a99f87cce07d3dbe053a22143ef;hb=3f19a9c3fb9c6fc844229db1f925a8a2b0b8a96f;hp=12d298704092c61778d7bed1e75818144223dc99;hpb=87c2d038fe6feaae3951850cbfb43313015aa1f7;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Group.h b/src/FeaturesPlugin/FeaturesPlugin_Group.h index 12d298704..e859d5e89 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Group.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Group.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + // File: FeaturesPlugin_Group.h // Created: 08 Oct 2014 // Author: Sergey BELASH @@ -18,18 +20,12 @@ class FeaturesPlugin_Group : public ModelAPI_Feature static const std::string MY_GROUP_ID("Group"); return MY_GROUP_ID; } - /// attribute name of group type - inline static const std::string& NAME_ID() - { - static const std::string MY_GROUP_NAME_ID("group_name"); - return MY_GROUP_NAME_ID; - } - /// attribute name of group type - inline static const std::string& TYPE_ID() - { - static const std::string MY_GROUP_TYPE_ID("group_type"); - return MY_GROUP_TYPE_ID; - } + /// attribute name of group name + //inline static const std::string& NAME_ID() + //{ + // static const std::string MY_GROUP_NAME_ID("group_name"); + // return MY_GROUP_NAME_ID; + //} /// attribute name of selected entities list inline static const std::string& LIST_ID() { @@ -50,6 +46,9 @@ class FeaturesPlugin_Group : public ModelAPI_Feature /// Request for initialization of data model of the feature: adding all attributes FEATURESPLUGIN_EXPORT virtual void initAttributes(); + /// Result of groups is created on the fly and don't stored to the document + FEATURESPLUGIN_EXPORT virtual bool isPersistentResult() {return true;} + /// Use plugin manager for features creation FeaturesPlugin_Group();