Salome HOME
Issue #1854 Recover feature control update
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultGroup.h
index 465218d3b8b251bf49147fd2674fffc2414ef5e9..8e2ac8adabcc20489a236b1f5a894ca347eefee6 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_ResultGroup.hxx
 // Created:     07 Jul 2014
 // Author:      Mikhail PONIKAROV
 class ModelAPI_ResultGroup : public ModelAPI_Result
 {
 public:
+  MODELAPI_EXPORT virtual ~ModelAPI_ResultGroup();
   /// Returns the group identifier of this result
-  virtual std::string groupName()
-  {
-    return group();
-  }
+  MODELAPI_EXPORT virtual std::string groupName();
 
   /// Returns the group identifier of this result
-  static std::string group()
+  inline static std::string group()
   {
     static std::string MY_GROUP = "Groups";
     return MY_GROUP;
   }
 
-  /// Returns the compound of selected entities
-  virtual std::shared_ptr<GeomAPI_Shape> shape() const = 0;
+  /// default color for a result body
+  inline static const std::string& DEFAULT_COLOR()
+  {
+    static const std::string RESULT_GROUP_COLOR("150,150,180");
+    return RESULT_GROUP_COLOR;
+  }
+
 };
 
 //! Pointer on feature object