1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: FeaturesAPI_Group.h
4 // Created: 07 June 2016
5 // Author: Dmitry Bobylev
7 #ifndef FeaturesAPI_Group_H_
8 #define FeaturesAPI_Group_H_
10 #include "FeaturesAPI.h"
12 #include <FeaturesPlugin_Group.h>
14 #include <ModelHighAPI_Interface.h>
15 #include <ModelHighAPI_Macro.h>
17 class ModelHighAPI_Selection;
19 /// \class FeaturesAPI_Group
20 /// \ingroup CPPHighAPI
21 /// \brief Interface for Group feature.
22 class FeaturesAPI_Group: public ModelHighAPI_Interface
25 /// Constructor without values.
27 explicit FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature);
29 /// Constructor with values.
31 FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature,
32 const std::list<ModelHighAPI_Selection>& theGroupList);
36 virtual ~FeaturesAPI_Group();
38 INTERFACE_1(FeaturesPlugin_Group::ID(),
39 groupList, FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList, /** Group list*/)
43 void setGroupList(const std::list<ModelHighAPI_Selection>& theGroupList);
46 /// Pointer on Group object.
47 typedef std::shared_ptr<FeaturesAPI_Group> GroupPtr;
49 /// \ingroup CPPHighAPI
50 /// \brief Create Group feature.
52 GroupPtr addGroup(const std::shared_ptr<ModelAPI_Document>& thePart,
53 const std::list<ModelHighAPI_Selection>& theGroupList);
55 #endif // FeaturesAPI_Group_H_