X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.h;h=dc60142d54ae2938f37410f093de0e93681842d6;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=30e3588985df75aa18e674e1e648f2748410846b;hpb=4b378265f0b502fe00e8af93ce9f2c5739acfc1c;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.h b/src/Model/Model_ResultGroup.h index 30e358898..dc60142d5 100644 --- a/src/Model/Model_ResultGroup.h +++ b/src/Model/Model_ResultGroup.h @@ -1,6 +1,21 @@ -// File: Model_ResultGroup.h -// Created: 08 Jul 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2023 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_ @@ -8,7 +23,7 @@ #include "Model.h" #include -/**\class ModelAPI_ResultGroup +/**\class Model_ResultGroup * \ingroup DataModel * \brief The groups result. * @@ -16,19 +31,29 @@ */ class Model_ResultGroup : public ModelAPI_ResultGroup { - boost::shared_ptr myOwnerData; ///< data of owner of this result + std::shared_ptr myOwnerData; ///< data of owner of this result public: + + /// 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 shape() const; + MODEL_EXPORT virtual std::shared_ptr shape(); + + /// \brief Stores the result of operation made on groups. + /// Cleans the storage if empty shape is given. + /// param[in] theShape shape to store. + MODEL_EXPORT virtual void store(const GeomShapePtr& theShape); /// Removes the stored builders MODEL_EXPORT virtual ~Model_ResultGroup() {} protected: /// Makes a body on the given feature data - Model_ResultGroup(boost::shared_ptr theOwnerData); + Model_ResultGroup(std::shared_ptr theOwnerData); - friend class Model_Document; + friend class Model_Objects; }; #endif