X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.h;h=be220052fb987e89b2da637c0ed06c1289a91417;hb=2e39226506e4b82f6ae5dcc26e776571801b1555;hp=46a453de348b2f92fe2d495eabc5eb4dec269235;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.h b/src/Model/Model_ResultGroup.h index 46a453de3..be220052f 100644 --- a/src/Model/Model_ResultGroup.h +++ b/src/Model/Model_ResultGroup.h @@ -10,7 +10,7 @@ #include "Model.h" #include -/**\class ModelAPI_ResultGroup +/**\class Model_ResultGroup * \ingroup DataModel * \brief The groups result. * @@ -20,6 +20,19 @@ class Model_ResultGroup : public ModelAPI_ResultGroup { std::shared_ptr 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("150,150,180"); + 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 std::shared_ptr shape(); @@ -30,7 +43,7 @@ protected: /// Makes a body on the given feature data Model_ResultGroup(std::shared_ptr theOwnerData); - friend class Model_Document; + friend class Model_Objects; }; #endif