Salome HOME
Merge branch 'BR_internationalization'
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultGroup.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_ResultGroup.hxx
4 // Created:     07 Jul 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef ModelAPI_ResultGroup_H_
8 #define ModelAPI_ResultGroup_H_
9
10 #include "ModelAPI_Result.h"
11 #include <GeomAPI_Shape.h>
12 #include <memory>
13 #include <string>
14
15 /**\class ModelAPI_ResultGroup
16  * \ingroup DataModel
17  * \brief The groups result.
18  *
19  * Provides a compound of selected elements, without storage, one the fly.
20  */
21 class ModelAPI_ResultGroup : public ModelAPI_Result
22 {
23 public:
24   MODELAPI_EXPORT virtual ~ModelAPI_ResultGroup();
25   /// Returns the group identifier of this result
26   MODELAPI_EXPORT virtual std::string groupName();
27
28   /// Returns the group identifier of this result
29   inline static std::string group()
30   {
31     static std::string MY_GROUP = "Groups";
32     return MY_GROUP;
33   }
34
35   /// default color for a result body
36   inline static const std::string& DEFAULT_COLOR()
37   {
38     static const std::string RESULT_GROUP_COLOR("150,150,180");
39     return RESULT_GROUP_COLOR;
40   }
41
42 };
43
44 //! Pointer on feature object
45 typedef std::shared_ptr<ModelAPI_ResultGroup> ResultGroupPtr;
46
47 #endif