]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_ResultGroup.h
Salome HOME
Merge branch 'master' into Dev_1.1.0
[modules/shaper.git] / src / Model / Model_ResultGroup.h
index 7703dd4360c6f90bcdfccb3ce1c6fa9e1eeefdc7..7bfa796942d8053b4f72f03188bf3a114222444a 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        Model_ResultGroup.h
 // Created:     08 Jul 2014
 // Author:      Mikhail PONIKAROV
@@ -8,7 +10,7 @@
 #include "Model.h"
 #include <ModelAPI_ResultGroup.h>
 
-/**\class ModelAPI_ResultGroup
+/**\class Model_ResultGroup
  * \ingroup DataModel
  * \brief The groups result.
  *
  */
 class Model_ResultGroup : public ModelAPI_ResultGroup
 {
-  boost::shared_ptr<ModelAPI_Data> myOwnerData;  ///< data of owner of this result
+  std::shared_ptr<ModelAPI_Data> myOwnerData;  ///< data of owner of this result
 public:
+  /// default color for a result body
+  inline static const std::string& DEFAULT_COLOR()
+  {
+    static const std::string RESULT_GROUP_COLOR("#E0A01B");
+    return RESULT_GROUP_COLOR;
+  }
+  /// Request for initialization of data model of the result: adding all attributes
+  virtual void initAttributes();
+
+  // Retuns the parameters of color definition in the resources config manager
+  MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
+                                            std::string& theDefault);
+
   /// Returns the compound of selected entities
-  MODEL_EXPORT virtual boost::shared_ptr<GeomAPI_Shape> shape();
+  MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Shape> shape();
 
   /// Removes the stored builders
   MODEL_EXPORT virtual ~Model_ResultGroup() {}
 
 protected:
   /// Makes a body on the given feature data
-  Model_ResultGroup(boost::shared_ptr<ModelAPI_Data> theOwnerData);
+  Model_ResultGroup(std::shared_ptr<ModelAPI_Data> theOwnerData);
 
   friend class Model_Document;
 };