X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.h;h=7bfa796942d8053b4f72f03188bf3a114222444a;hb=d11d4ba5e291b60c458d15e11081515990cc27fe;hp=0dc35bdcfb25cf1bb685daa339fc326f543a9501;hpb=93390904f99935a117856d9777d1bb542b1b38bd;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.h b/src/Model/Model_ResultGroup.h index 0dc35bdcf..7bfa79694 100644 --- a/src/Model/Model_ResultGroup.h +++ b/src/Model/Model_ResultGroup.h @@ -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 -/**\class ModelAPI_ResultGroup +/**\class Model_ResultGroup * \ingroup DataModel * \brief The groups result. * @@ -18,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("#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 std::shared_ptr shape();