X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.h;h=baa004d29a8f158e21e2853459920b47c78c3836;hb=8ca1067287eaaad921a6e08e7d10b875778f8457;hp=33c0e17a74ba47245741359e4e8c9d50653826c7;hpb=31e91a8d11e03ddce87e8c2aa04695961a266a97;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.h b/src/Model/Model_ResultGroup.h index 33c0e17a7..baa004d29 100644 --- a/src/Model/Model_ResultGroup.h +++ b/src/Model/Model_ResultGroup.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: Model_ResultGroup.h -// Created: 08 Jul 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef Model_ResultGroup_H_ #define Model_ResultGroup_H_ @@ -20,14 +34,10 @@ 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(); @@ -39,7 +49,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